1
0
James Ketrenos 0b2de4c8d0 Update main.cf based on chat-gpt comments
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
2024-05-21 10:58:57 -07:00
..
2023-10-10 18:14:54 -07:00

To blacklist an alias:

echo "alias@ketrenos.com reject" | sudo tee -a recipient_restrictions
sudo postmap hash:/etc/postfix/recipient_restrictions
sudo systemctl restart postfix

To black list a sender:

echo "name@address.com" | sudo tee -a sender_access
sudo postmap hash:/etc/postfix/sender_access
sudo systemctl restart postfix

To add a sender (eg firsttechfed.com) to the whitelist of sender DNS:

echo "firsttechfed.com OK" | sudo tee -a sender_access
sudo postmap hash:/etc/postfix/sender_access
sudo systemctl restart postfix

To add a new list, append entries to /etc/aliases and run:

echo "alias" | sudo tee -a /etc/aliases
sudo postalias /etc/aliases
sudo systemctl restart postfix