我试图转发系统电子邮件(来自apt,cron等)地址“根”到我的个人电子邮件地址使用最聪明。我正在使用Debian 9。首先,我运行了sudo dpkg-reconfigure exim4-config。这是/etc/exim4/update-exim4.conf.conf的内容(我用“example.com”替换了所有出现的域名):
dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost='example.com'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='mail.messagingengine.com::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'我还设置了正确的密码在/etc/exim4/passwd.client,我现在可以成功地发送邮件到任何电子邮件地址与sendmail,mailx等。
其次,我编辑了/etc/aliases以包含以下内容:
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: my-email-address@example.com但是,当我试图用echo Hi | mailx root向"root“发送电子邮件时,我在/etc/exim4/mainlog中看到了以下错误:
RCPT后远程邮件服务器的
中未知的用户
我想我告诉Exim4把根的电子邮件重定向到“my address@example.com”。相反,它正在将其重定向到"root@example.com“。为什么Exim4不尊重我的/etc/aliases?我应该如何设置Exim4将根的电子邮件重定向到我的个人电子邮件地址?
发布于 2018-04-16 09:43:28
satellite配置将所有电子邮件发送到指定的智能中心。不考虑本地传递,因此不查阅/etc/aliases文件。
如果希望考虑本地传递,则应将配置类型从satellite更改为smarthost。
发布于 2023-01-22 10:23:56
https://serverfault.com/questions/734773
复制相似问题