这个configuration用于工作,但在更新到Dovecot 2(Ubuntu 12.04)邮件后邮件不能发送:
而不是交付给邮递员,我得到了一个不存在的用户[email protected]反弹
postconf -n :
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix dovecot_destination_recipient_limit = 1 inet_interfaces = all inet_protocols = ipv4 mailbox_command = /usr/lib/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT" mailbox_size_limit = 0 mydestination = $myhostname myhostname = host.domain.tld mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 141.xxx myorigin = /etc/mailname owner_request_special = no readme_directory = /usr/share/doc/postfix recipient_delimiter = + relayhost = smarthost.domain.tld smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP smtpd_recipient_restrictions = reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_tls_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_tls_CAfile = /etc/postfix/cacert.pem smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key smtpd_tls_loglevel = 3 smtpd_tls_received_header = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, hash:/var/lib/mailman/data/virtual-mailman, hash:/etc/postfix/virtual virtual_gid_maps = static:1002 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_limit = 51200000 virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_transport = dovecot virtual_uid_maps = static:1002
master.cf :
#postfix主进程configuration文件。 有关格式的详细信息
文件#参见master(5)手册页(命令:“man 5 master”)。
#
编辑这个文件后不要忘记执行“postfix reload”。
#
#================================================= =========================
#服务typesprivate unpriv chroot唤醒maxproc命令+ args
(是)(是)(是)(从不)(100)
#================================================= =========================
smtp inet n - - - - smtpd
提交inet n - - - - smtpd
-o smtpd_tls_security_level =encryption
-o smtpd_sasl_auth_enable =是
-o smtpd_client_restrictions = permit_sasl_authenticated,拒绝
-o milter_macro_daemon_name = ORIGINATING
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode =是
-o smtpd_sasl_auth_enable =是
-o smtpd_client_restrictions = permit_sasl_authenticated,拒绝
-o milter_macro_daemon_name = ORIGINATING
#628 inet n - - - - qmqpd
皮卡fifo n - - 60 1皮卡
清理unix n - - - 0清理
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
重写unix - - - - - 平凡重写
反弹unix - - - - 0反弹
推迟unix - - - - 0反弹
跟踪unix - - - - 0反弹
validationunix - - - - 1validation
flush unix n - - 1000? 0冲水
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1代理映射
smtp unix - - - - - smtp
#将邮件转发为备份MX时,禁用fallback_relay以避免MX循环
中继unix - - - - - smtp
-o smtp_fallback_relay =
#-o smtp_helo_timeout = 5 -o smtp_connect_timeout = 5
showq unix n - - - - showq
错误unix - - - - - 错误
重试unix - - - - - 错误
丢弃unix - - - - - 丢弃
本地unix - nn - - 本地
虚拟的unix - nn - - 虚拟的
lmtp unix - - - - - lmtp
铁砧unix - - - - 1铁砧
scache unix - - - - 1 scache
#
#================================================= ===================
#接口到非Postfix软件。 一定要检查手册
find非Postfix软件的#页来找出它想要的选项。
#
#以下许多服务使用Postfixpipe道(8)交付
#代理。 有关$ {recipient}的信息,请参阅pipe(8)手册页
#和其他邮件信封选项。
#================================================= ===================
#
#maildrop。 有关详细信息,请参阅Postfix MAILDROP_README文件。
#还要在main.cf中指定:maildrop_destination_recipient_limit = 1
#
maildrop unix - nn - - pipe道
flags = DRhu user = vmail argv = / usr / bin / maildrop -d $ {recipient}
#
#查看Postfix的UUCP_README文件获取configuration细节。
#
uucp unix - nn - - pipe道
flags = Fqhu user = uucp argv = uux -r -n -z -a $ sender - $ nexthop!rmail($ recipient)
#
#其他外部交付方式。
#
ifmail unix - nn - - pipe道
flags = F user = ftn argv = / usr / lib / ifmail / ifmail -r $ nexthop($ recipient)
bsmtp unix - nn - - pipe道
标志= Fq中。 user = bsmtp argv = / usr / lib / bsmtp / bsmtp -t $ nexthop -f $ sender $ recipient
scalemail-backend unix -nn-2pipe道
flags = R user = scalemail argv = / usr / lib / scalemail / bin / scalemail-store $ {nexthop} $ {user} $ {extension}
mailman unix - nn - - pipe道
flags = FR user = list argv = / usr / lib / mailman / bin / postfix-tomailman.py
$ {nexthop} $ {user}
#Dovecot LDA
dovecot unix - nn - - pipe道
flags = DRhu user = vmail:vmail argv = / usr / lib / dovecot / deliver -d $ {recipient}
#smtp inet n - n - 1 postscreen
#smtpd pass - - n - - smtpd
#dnsblog unix - - n - 0 dnsblog
#tlsproxy unix - - n - 0 tlsproxy
mm.cfg也很简单:
MTA = '后缀' POSTFIX_STYLE_VIRTUAL_DOMAINS = ['my.host.tld']
Dovecot被configuration为仅通过mysqlauthentication用户 – 但邮件别名是相同的。 该域是一个后缀的虚拟域。
任何提示在哪里看? 要testing什么? 它曾经工作在相同的configuration,但现在我使用dovecot 2.0的dovecot-lda,它不再工作,但它也可能是另一个问题,一些configuration更改。
这不是一个dovecot问题或Postfix问题。 这是一个与邮递员传递邮件有关的问题。 我仍然不确定为什么曾经工作,但我现在正在工作:
Mailman Doc Entry这个问题
如果我遵循所有这些步骤,并将新生成的传输邮件文件添加到Postfix,它的工作原理。
/usr/lib/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT"在您的域中使用真实的电子邮件地址。 如果(2)或(3)失败,那么它是鸽子的问题。