SYSTEM INFORMATION | |
---|---|
OS type and version | RedHat 8 |
Webmin version | 2.001 |
Virtualmin version | 7.3 gpl |
added a new user to an existing virtual server that I recently migrated from an older RedHat server to a newer one; the old server used sendmail while the new one uses postfix.
After adding the new user, I wanted to verify that all was good, so I sent a test msg, and it bounced back with No Such User … aka User unknown in virtual alias table.
But when I looked at /etc/postfix/virtual, and its DB file, they had today’s date AND had the new user in them !! So I put on my trusty sysadmin hat and did
systemctl reload postfix
and then it started working
I did change the IP address on this server in the last few days, but other than that, I cannot think of anything that would interfere with this — that is, anything that would somehow make Virtualmin think it does not need to reload postfix.
I could be missing something in the bigger picture — does postfix itself somehow monitor /etc/postfix/virtual and will re-read that config file, or do a more general reload ?
In /var/log/maillog I do see
Feb 9 13:23:56 vhost89 postfix/postfix-script[3669373]: refreshing the Postfix mail system
from my own systemctl command.
And to complicate things, on the same new server, in a brand new test domain I created, when I add a new user it not only shows up in the virtual file but I see this in /var/log/maillog:
Feb 9 15:56:40 vhost89 postfix/trivial-rewrite[3683017]: table hash:/etc/postfix/virtual(0,lock|utf8_request) has changed – restarting
AND that user is receiving mail !! I have no idea what exactly triggers that, and why I do not see the same thing in my other domain (again its on the same new RedHat server).
thoughts anyone?
Verne