30.4.24

WHITELISTING OF DOMAINS IN POSTFIX MAIL SERVER

POSTFIX:

  1. Access your Postfix configuration file (usually located at /etc/postfix/main.cf).
  2. Add our sender domain to the "smtpd_sender_restrictions" parameter as follows:
  3. smtpd_sender_restrictions = permit_mynetworks, check_sender_access hash:/etc/postfix/sender_whitelist, reject_unauth_destination
  4. Create a new file named "sender_whitelist" in the /etc/postfix/ directory.
  5. Add the following line to the "
  6. sender_whitelist" file: welso.in OK
  7. Save the file and run the following command to create a lookup table: postmap /etc/postfix/sender_whitelist
  8. Reload the Postfix configuration with the command: postfix reload