Computer Tips - Postfix: discard mail to one user

Date: 2020mar11
OS: Linux

Q.  Postfix: discard mail to one user

A.  Use /etc/aliases, its better than trying to match something in the header.

In /etc/aliases

jsmith: /dev/null
That will discard mail to user jsmith Run:
newaliases
to update the compiled /etc/aliases.db Restart Postfix:
systemctl restart postfix