Mailman/Postfix 配置协助

Mailman/Postfix 配置协助

我正在写信寻求有关 Postfix 配置的一些帮助。

我似乎无法正确配置 Postfix 以将邮件传输到安装在同一服务器上的邮件列表。在过去的几天里,我遵循了许多步骤,我遵循的最后一个步骤是http://www.postfix.org/VIRTUAL_README.html在邮件列表部分下。

有人可以看看这个并让我知道我错过了什么吗?

基本上,Postfix 已配置为要发送到的基本电子邮件[email protected],我希望使用邮件列表[email protected]

**DYN-DNS** 
listtest.company.org        A   216.111.222.85   
listtest.company.org        MX  216.111.222.85   
listtest.company.org        TXT     "v=spf1 a ptr mx ip4:216.111.222.85 mx:mail-test.company.org -all"

mail-test.company.org       A   216.111.222.85   
mail-test.company.org       MX  216.111.222.85   
mail-test.company.org       TXT     "v=spf1 a ptr mx ip4:216.111.222.85 mx:mail-test.company.org -all"

**main.cf**
myhostname = mail-test.company.org
mydomain = company.org
myorigin = $hostname
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
alias_database = hash:/etc/aliases, hash:/etc/mailman/aliases 
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual 
mydestination = $myhostname, listtest.$mydomain

/etc/postfix/virtual:
    [email protected]   listname-request
    [email protected]               listname
    [email protected]     owner-listname

/etc/aliases:
    listname: "/usr/lib/mailman/mail/mailman post mailman"
    owner-listname: ...
    listname-request: ...

**mm_cfg.py**
DEFAULT_URL_HOST   = 'listtest.company.org'
DEFAULT_EMAIL_HOST = 'listtest.company.org'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
MTA = 'Postfix'

日志的第一部分显示 listtest.company.org 被拒绝 - 而第二部分显示成功传输到 mail-test.company.org

/var/log/邮件日志

Aug 17 15:46:50 listserv postfix/smtpd[19870]: NOQUEUE: reject: RCPT from
Mail1.company.org[66.173.196.101]: 554 5.7.1 <[email protected]>: 
Relay access denied; from=<[email protected]> to=<[email protected]> 
proto=SMTP helo=<MAIL1.company.ORG>
Aug 17 15:46:50 listserv postfix/cleanup[19877]: D3F93209F1: message-
id=<[email protected]>
Aug 17 15:46:50 listserv postfix/smtpd[19870]: disconnect from 
Mail1.company.org[66.173.196.101]

Aug 17 15:46:50 listserv postfix/qmgr[19197]: D3F93209F1: 
from=<[email protected]>, size=6670, nrcpt=1 (queue active)
Aug 17 15:46:50 listserv postfix/cleanup[19877]: F37B120A3B: message-
id=<[email protected]>
Aug 17 15:46:51 listserv postfix/qmgr[19197]: F37B120A3B: 
from=<[email protected]>, size=6819, nrcpt=1 (queue active)
Aug 17 15:46:51 listserv postfix/local[19878]: D3F93209F1:
to=<[email protected]>, relay=local, delay=0.18,
delays=0.17/0.01/0/0, dsn=2.0.0, status=sent (forwarded as F37B120A3B)
Aug 17 15:46:51 app02-listserv postfix/qmgr[19197]: D3F93209F1: removed

任何帮助将不胜感激。

答案1

这是虚拟别名表的 mm_cfg.py 配置问题。更正并运行 POSTALIAS 后,它现在可以正确转发电子邮件。

答案2

我按照此处的说明将 mailman 添加到我的工作后缀设置中:http://sharealike.org/index.php/2011/02/04/adding-mailman-to-postfix-with-virtual-domains/我认为这对您来说会很有效,因为我还为lists.example.com 使用与主域不同的子域。

相关内容