Postfix ignoring /etc/aliases under Debian ?


So you are running Debian, you added some aliases into /etc/aliases, ran newaliases, but Postfix won’t take aliases into account despite what seems to be a correct configuration :

/etc/postfix/ : alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases

/etc/aliases : account:

Check the myorigin parameter : # postconf myorigin myorigin = /etc/mailname

Now if you check the content of /etc/mailname : # cat /etc/mailname

Change that to “” either in the file or directly under the myorigin setting.

It should not try to deliver locally anymore.

Before : Apr 5 14:59:36 srv postfix/local[15144]: DD454425A7: to=, orig_to=, relay=local, delay=0.21, delays=0.14/0.02/0/0.05, dsn=2.0.0, status=sent (forwarded as 5258A425B7)

After : Apr 5 14:59:39 srv postfix/smtp[15145]: F151D42469: to=, orig_to=,[]:587, delay=3.4, delay s=0.05/0.03/1.5/1.8, dsn=2.0.0, status=sent (250 2.0.0 OK 1302008379 t72sm2756613wei.44)

Link :

Thanks for reading this post!

Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!