Postfix: can only receive outside mail for a single virtual user
I set up postfix/dovecot/mysql following:
I can send mail from both users OK. I can receive mail from an outside server for A@dom1.com but I cannot receive mail from an outside server for B@dom2.com. However I can receive a mail for B@dom2.com if I send it from A@dom1.com.
This makes no sense at all to me. I thought maybe postfix only picks the first record in virtual_users so I changed the order but it has not helped.
My main.cf is:
smtpdbanner = $myhostname ESMTP $mailname (Ubuntu)
biff = no
appenddotmydomain = no
readmedirectory = no
smtpdtlsauthonly = yes
smtpdsasltype = dovecot
smtpdsaslpath = private/auth
smtpdsaslauthenable = yes
myhostname = dsb303
aliasmaps = hash:/etc/aliases
aliasdatabase = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailboxsizelimit = 0
recipientdelimiter = +
inetinterfaces = all
virtualtransport = lmtp:unix:private/dovecot-lmtp
virtualmailboxdomains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtualmailboxmaps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtualalias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
All the referred virtual files are exactly as per the article.
I can connect to the mailbox for B@dom2.com and the log shows the connection but the mailbox contains no mail. I can also connect with Squirrelmail which confirms the empty mailbox.
Would appreciate any ideas on how to solve this.