About a month ago I performed a backup of my AlmaLinux 8 version, then installed AlmaLinux 9 and VirtualMin. I then restored a backup made from the AlmaLinux 8 version onto the now fresh Almalinux 9.
In one domain (rusticraiders.com.au) I have 2 users setup (sales and admin) and in the other domain (ssdnodes.dualarrow.com) I have 1 user and a catchall in the edit mail alias that has the “All Users” checked. If I send email to sales@rusticraiders.com.au it ends up in the the catchall for ssdnodes. If I change the “All Users” to “Mailbox” and enter “xxx” so it will only divert email for that address, then when I send email to sales@dualarrow.com it gets placed into the correct mailbox (ie NOT the ssdnodes one).
Any suggestions on what might be wrong and is there a wildcard I can use in the “Mailbox” entry ? (I tried * but it says I cant include an @ even though I didn’t include one).
After looking through logs and checking config files, the only issue I can see is in the maillog file which has the following 2 lines
Oct 31 00:20:36 ssdnodes postfix/trivial-rewrite[192688]: warning: do not list domain ssdnodes.dualarrow.com in BOTH mydestination and virtual_alias_domains
Oct 31 00:20:36 ssdnodes postfix/trivial-rewrite[192688]: warning: do not list domain ssdnodes.dualarrow.com in BOTH mydestination and virtual_alias_domains
As this was all done from a restore from a backup done by virtualmin, it would appear that either virtualmin has messed up the backup or the restore didnt work fully,
the last entry in the /etc/postfix/virtual file is
Any mail I send to sales@rusticraiders.com.au ends up being sent to the catchall mentioned above. There are no other catchalls in the file and removing the catchall delivers the mail to the correct recipient.
I think I just found a solution (don’t know if its a clean fix) but renaming the host using
host xxx
seems to have fixed the problem. It seems that with the host named as ssdnodes.dualarrow.com it must be redirecting everything it sees. If someone has an explanation for this behavior it would be much appreciated.