如何在debian服务器上configuration默认的电子邮件发件人属性?

如何在debian服务器上configuration默认的邮件发送者属性(如果有问题,使用exim4的邮件传输代理)?

背景

我正在运行一个由rackspace托pipe的服务器(debian 5,mta是exim4)。 Rackspace邮件使用传出发件人地址authentication,这样我只能从审核的“发件人”地址发送电子邮件。

作为一个本地用户发送会导致拒绝:

SMTP<< 550 5.1.0 <[email protected]>: Sender address rejected: User unknown in relay recipient table SMTP<< 554 5.5.1 Error: no valid recipients SMTP>> QUIT LOG: MAIN ** [email protected] R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after RCPT TO:<[email protected]>: host smtp.emailsrvr.com [xxxxxxx]: 550 5.1.0 <[email protected]>: Sender address rejected: User unknown in relay recipient table 

问题是,我正在使用一个非常简单的应用程序(logcheck, http ://packages.debian.org/unstable/logcheck)试图简单地将日志发送给我自己。 Logcheck没有任何邮件发送地点的内置configuration。

所以无论默认设置是什么,通过系统,我需要configuration它,以确保它是一个审查地址。 我从哪说起呢?

有一个/etc/email-addresses将外出的电子邮件地址与本地用户帐户相关联(这是Debian Exim的默认重写configuration的一部分)。 我认为这是您的问题更好的解决scheme。

此外,在dpkg-reconfigure exim4-config有一个选项在传出名称中隐藏本地邮件名称 ,看看它是否可以帮助你。