Advanced Postfix Troubleshooting using -vv flags in master.conf

Synopsis

Client’s Virtualmin server failing perpetually with:

dsn=5.1.1, status=bounced (User unknown in virtual alias table)

Client mucked about with the standard config.

mc -e /etc/postfix/virtual show correct mappings, e.g.

[email protected] [email protected]

However, after much testing, it appears this is the way:

[email protected] name-example.com

Solution was partially obtained by:

Enable verbose for Postfix SMTP server

Add -v or -vv flags to master.cf

smtp      inet  n       -       y       -       -       smtpd -v

You can also add -v or -vv to pickup or cleanup services if testing sendmail-style commands.

pickup made a lot of difference

Now the log file is extremely detailed!

More testing commands

postmap -q [email protected] hash:/etc/postfix/virtual
postconf virtual_alias_maps

Do this on the server to see a bounce:

echo test | mail -s "Test" [email protected]

 

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top