Catchall on a single domain seems to be catching all for all domains

SYSTEM INFORMATION
OS type and version Almalinux 9.4
Webmin version 2.202
Virtualmin version 7.20.2 Pro
Webserver version Apache version 2.4.57
Related packages Postfix version 3.5.9 & Dovecot Version 2.3.16

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

@ssdnodes.dualarrow.com default-ssdnodes.dualarrow.com

which is a catchall. However the virtual file also has the following entry in it

sales@rusticraiders.com.au sales@rusticraiders.com.au

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.

In main.cf the mydestinations entry looks like

mydestination = $myhostname, localhost.$mydomain, localhost

and the machines host name is ssdnodes.dualarrow.com

Is there anything else I have missed or can anyone see an issue in the config details ?

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.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.