I was facing a peculiar issue where I need to send mail to [email protected] eyrie.in was one of the virtual servers enabled in Virtualmin. So when I tested email from command line (mutt/postfix), I got this in /var/log/mail.info:
tac /var/log/mail.info | less:
May 6 07:49:55 server postfix/bounce: 26C8F41C45: sender non-delivery notification: 4D37341CD0
May 6 07:49:55 server postfix/cleanup: 4D37341CD0: message-id=<[email protected]>
May 6 07:49:55 server postfix/error: 26C8F41C45: to=
May 6 07:49:55 server postfix/qmgr: 26C8F41C45: from=
After a variety of tests, I found that the reason was because virtualmin enabled user aliases lists for all domains configured in it. There was an option hidden in to disable mail for those domains from within virtualmin. So go here:
Virtualmin > Domain > Edit virtualserver > Enabled features
Untick the following:
Mail for domain enabled?
Virus filtering enabled?
Spam filtering enabled?
Unless the latter two are disabled, you wont be able to disable mail for that domain. Once this is done, reload postfix with:
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.