在过去的几天里,我一直试图设置Exim4来处理从web应用程序发送的所有邮件。
它似乎正在工作,但我还没有找到如何硬编码将与EHLO一起发送的主机名?(我不想设置/etc/hostname
)
已经找到了配置中提到的变量MAIN_HARDCODE_PRIMARY_HOSTNAME
,但是没有找到设置它的方法。这个变量是设置主机名的最简单方法,还是有更好的方法?
下面是完整的安装/配置。我是不是遗漏了什么?
Exim version 4.92
Debian Buster 10
apt-get install exim4-daemon-light
dpkg-reconfigure exim4-config
Type: internet site
FQDN: smtp.mydomain.com
SMTP listener: (empty)
Mail destinations: (empty)
Domain relay: (empty)
Machine relay: (empty)
DNS queries minimal: No
Delivery method: Maildir
Split conf files: No
printf "MAIN_TLS_ENABLE = true\n" >> /etc/exim4/exim4.conf.localmacros
/usr/share/doc/exim4-base/examples/exim-gencert
https://mxtoolbox.com/ReverseLookup.aspx
ip -6 addr | grep inet6 | awk -F '[ \t]+|/' '{print $3}' | grep -v ^::1 | grep -v ^fe80
[ipv4] smtp.mydomain.com
[ipv6] smtp.mydomain.com
'/etc/exim4/exim4.conf.template'中的
/usr/share/doc/exim4-base/examples/exim-adduser
我在服务器上设置了DKIM键,在DNS上设置了DKIM/SPF,两者都能工作。
发布于 2019-09-29 12:36:56
将REMOTE_SMTP_HELO_DATA = whatever.you.want
设置为/etc/exim4/exim4.conf.localmacros
。从4.69-10开始,Debian软件包就支持它。来自/usr/share/doc/exim4/changelog.Debian.gz
:
Debian配置模板使用此宏填充helo_data
SMTP传输选项。
https://unix.stackexchange.com/questions/543607
复制相似问题