最近用postfix/mysql/dropmail等搭建了一个邮件系统,各个模块都运行的很流畅。但是,当我要安装mailman 进行邮件列表配置时,问题就出现了。
我已经建立了几个电子邮件地址的邮件列表(让它成为 maillist@mydomain.com),但是当我想在那里发送邮件时,它出现了:
Apr 16 20:06:26 mail postfix/smtpd[1107]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <maillist@mydomain.com>: Recipient address rejected: User unknown; from=<wangjingfei@mydomain.com> to=<maillist@mydomain.com> proto=ESMTP helo=<localhost.localdomain>
我一整天都想不通。下面是mailman相关的配置:
后缀:/etc/postfix/mail.cf
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/aliases, hash:/etc/postfix/aliases, hash:/etc/mailman/aliases
# Configuration for mailman
#virtual_alias_domain = mydomain.com
luser_relay =
recipient_delimiter = +
owner_request_special = no
virtual_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, hash:/etc/mailman/virtual-mailman
virtual_alias_maps = $virtual_maps
transport_maps = hash:/etc/postfix/transport
relay_domains = mail.mydomain.com
mailman_destination_recipient_limit = 1
后缀:/etc/postfix/master.cf
mailman unix - n n - - pipe
flags=FR user=mailman:mailman argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
邮递员:/etc/mailman/aliases
## maillist mailing list
maillist: "|/var/www/mailman/mail/mailman post maillist"
maillist-admin: "|/var/www/mailman/mail/mailman admin maillist"
maillist-bounces: "|/var/www/mailman/mail/mailman bounces maillist"
maillist-confirm: "|/var/www/mailman/mail/mailman confirm maillist"
maillist-join: "|/var/www/mailman/mail/mailman join maillist"
maillist-leave: "|/var/www/mailman/mail/mailman leave maillist"
maillist-owner: "|/var/www/mailman/mail/mailman owner maillist"
maillist-request: "|/var/www/mailman/mail/mailman request maillist"
maillist-subscribe: "|/var/www/mailman/mail/mailman subscribe maillist"
maillist-unsubscribe: "|/var/www/mailman/mail/mailman unsubscribe maillist"
邮递员:/var/www/mailman/Mailman/mm_cfg.py
from socket import *
try:
fqdn = getfqdn()
except:
fqdn = 'mm_cfg_has_unknown_host_domains'
DEFAULT_URL_HOST = 'mail.software.ict.ac.cn'
DEFAULT_EMAIL_HOST = 'software.ict.ac.cn'
MAT = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS= ['software.ict.ac.cn', 'software.ict.ac.cn']
# Because we've overriden the virtual hosts above add_virtualhost
# MUST be called after they have been defined.
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
如果有人可以提供帮助,我将不胜感激。谢谢!