我正在configuration一个debian服务器,我需要一个邮件服务器来处理所有的通知(fail2ban,logwatch等)。 我需要这些通知发送到一个特定的电子邮件地址。 我有一个我可以使用的域的smtp帐户。
我成功configurationexim使用这个smtp服务器通过使用“ 卫星 ”模式这里是我的/etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='satellite' dc_other_hostnames='' dc_local_interfaces='127.0.0.1' dc_readhost='mydomain.com' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='mysmtp-server:587' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='true' dc_mailname_in_oh='true' dc_localdelivery='maildir_home'
这适用于发送邮件,但是当我发送邮件到@localhost邮件发送到我的smtp服务器,并丢失。
我想要exim将邮件存储到本地用户家中的Maildir的@localhost中。
如果需要,我也可以使用postfix。
你想要智能主机,而不是卫星configuration。 卫星是发送所有邮件的另一主机,没有本地邮件(除/ etc /别名中指定)。 Smarthost将所有非本地邮件发送到其他主机。
只是改变:
dc_eximconfig_configtype='smarthost' dc_other_hostnames='localhost;myhost.mydomain'