大网数据广告活动
服务器运维问答

how to configure sendmail with multiple ssl certificates for multiple domains

· 52CE 我爱测

I need to configure a server to host multiple email domains on a single IP, and thus install multiple ssl certificates. Miraculously, I have been able to get apache and dovecot to work with multiple certificates/domains on a sing…

问题原文

原帖链接 · xivix · CC BY-SA 3.0

I need to configure a server to host multiple email domains on a single IP, and thus install multiple ssl certificates.
Miraculously, I have been able to get apache and dovecot to work with multiple certificates/domains on a single IP, but I can't find any recent info on sendmail. So I can receive emails on the second domain, but when I go to send, I get a certificate error unless I send as the first domain which is the one sendmail has configured. I have a lot of customizations so would like to stick with sendmail if possible. But if the only option is to go with postfix, then I may have to (if postfix will do multiple domains on a single IP). Or, if I have to do multiple IPs, that would use up a lot of IPs and I'm not sure I can do that.
Thanks in advance.

已采纳解答

原帖链接 · HBruijn · CC BY-SA 3.0

Not a real answer but too long for a comment...

1 IP-address, multiple certificates --> that sounds like you want support for server name indication and I can't find any conclusive evidence that sendmail supports that (or not for that matter).

If indeed you can only configure a single certificate and you can't invest in a UCC/SAN certificate:

A potential work-around is to use a single hostname as the primary MX record for all your domains and get a TLS certificate with that hostname i.e. smtp.example.com is the primary MX for not only example.com but for example.org and and example.net as well.

That is a not such a bad idea as sendmail will normally only identify itself by a single hostname anyway and that hostname ought to match with reverse DNS record for your IP-address. And your reverse DNS can also only point to a single hostname.

Related as well: Is enforcing encryption for SMTP a good idea (yet)?

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-01-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。