我有一个虚拟的postfix / dovecot / procmail服务器设置了一段时间,并且大多数情况下一切正常。我无法弄清楚的唯一的怪癖是一些虚拟别名似乎落入虚拟域的catchall邮箱而不是传递给预期的虚拟用户。不确定它是我的postfix还是procmail设置。
我在下面列出了我认为相关配置文件的相关部分。如果您需要更多,请告诉我。
发生的事情是发送到troy@example2.com.au的邮件被正确发送到/var/mail/vhosts/example2.com.au/troy 但发送到其中一个别名的邮件,如info@example2.com.au,不会转到/var/mail/vhosts/example2.com.au/troy,而是发送到/ var / mail / vhosts
我错过了什么?
### /etc/postfix/main.cf extract ####
mailbox_command = /usr/bin/procmail -a "${EXTENSION}"
home_mailbox = Maildir/
mydestination = dove.example1.local, dove, dove.example1.com, localhost.localdomain, localhost, example1.dyndns.org
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/22
inet_interfaces = all
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
transport_maps = hash:/etc/postfix/transport
relay_domains = $mydestination
virtual_mailbox_domains = example1.com example2.com.au
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_transport = procmail
procmail_destination_recipient_limit = 1
transport_maps = hash:/etc/postfix/transport
########################
### /etc/postfix/vmailbox extract ####
troy@example2.com.au example2.com.au/troy/
info@example2.com.au example2.com.au/troy/
accounts@example2.com.au example2.com.au/troy/
linkedin@example2.com.au example2.com.au/troy/
facebook@example2.com.au example2.com.au/troy/
office@example2.com.au example2.com.au/troy/
sysadmin@example2.com.au example2.com.au/troy/
webmaster@example2.com.au example2.com.au/troy/
dc@example2.com.au example2.com.au/jeevan/
jeevan@example2.com.au example2.com.au/jeevan/
########################
### /etc/postfix/transport extract ####
example1.com procmail
example2.com.au procmail
########################
### /etc/postfix/master.cf extract ####
procmail unix - n n - - pipe
flags=DROhu user=vmail argv=/usr/bin/procmail -t -m USER=${user}
EXTENSION=${extension} NEXTHOP=${nexthop} /etc/postfix/procmailrc.common
########################
### /etc/postfix/procmailrc.common extract ####
MAILDIR=${HOME}/${NEXTHOP}/${USER}
DEFAULT=${MAILDIR}/
########################
答案 0 :(得分:0)
info@example2.com.au
重定向到troy@example2.com.au
。
另外,你应该带着这个问题前往ServerFault - 这里有点偏离主题。