我有一个使用exim4作为mta和courier-imap的debian服务器允许用户读取主。 邮件通常在本地交付,或者使用别名文件将邮件转发到其他地址。 例如
# Local account: foo receives mail for [email protected] somealias: [email protected] otheralias: foo, [email protected] # Deliver both locally and remote
我们现在有一个emailadres,我们希望通过imap访问,但也被转发到另一个电子邮件地址。 这可以通过重命名账户和使用别名文件来实现,但是这也可以通过本地账户具有相同的名称来实现。 重命名账户需要在几个系统中进行一些重新configuration。
# [email protected] needs to be de delivered to both [email protected] and the "buz" local account # Possible solution, rename buz account to buzdummy, but this would case other problems buz: [email protected], buzdummy
只要做你开始在别名文件 – 不重命名:-)
buz: [email protected], buz
如果别名扩展为自我,那么它不会在循环中再次展开,而是被跳过,所以邮件被转发到外部并在本地传递。 (见Exim 文档 )。