2017-05-03 76 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

相關問題