2017-05-03 25 views

回答

0

使用发件人地址来确定收件人是不寻常的。我只是一个别名文件。你可以基地将它从系统别名路由器:

exim.conf

system_aliases: 

    driver = redirect 
    allow_fail 
    allow_defer 
    data = ${lookup{$local_part}lsearch{/etc/aliases}} 
    file_transport = address_file 
    pipe_transport = address_pipe 

/etc/aliases中

mailinglist: [email protected], [email protected], [email protected] 
+0

莫非你解释一下在这更多一点?这是如何允许给定的贡献者名单? – u003f

+0

使用别名文件将伪地址映射到收件人列表 –

+0

贡献者呢? - 人们(这里是eric和graham)允许将**发布到**通讯? – u003f

0

使用此配置,以保持你的邮件列表中的一个文件,每行一个地址。

exim.conf

# append "mailinglist" to local domains so that "mailinglist" is 
# recognized as a domain we handle. Alternatively, you could just 
# use your own domain and not bother with this 

domainlist local_domains = @ : localhost : localhost.localdomain : mydomain.com : mailinglist 

... 

begin routers 

... 

mailing_lists: 
    driver = redirect 
    domains = mailinglist 
    no_more 
    file = /etc/exim/mailinglists/$local_part 
    no_check_local_user 
    forbid_pipe 
    forbid_file 
    errors_to = [email protected] 

的/ etc /进出口/邮件列表/ list01

[email protected] 
[email protected] 
[email protected] 

发送测试消息,邮件列表 “list01”

echo body | mail -s Test [email protected] 
+0

如上所述:那些贡献者呢? - 人们(这里是eric和graham)允许发布**到通讯? – u003f