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[19314]: 26C8F41C45: sender non-delivery notification: 4D37341CD0
May 6 07:49:55 server postfix/cleanup[19312]: 4D37341CD0: message-id=<[email protected]>
May 6 07:49:55 server postfix/error[19313]: 26C8F41C45: to=
May 6 07:49:55 server postfix/qmgr[19274]: 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:
/etc/init.d/postfix reload
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
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.