LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to prevent Postfix from sending emails to certain domains (https://www.linuxquestions.org/questions/linux-server-73/how-to-prevent-postfix-from-sending-emails-to-certain-domains-4175679839/)

mstjohn1974 08-03-2020 11:32 AM

How to prevent Postfix from sending emails to certain domains
 
I set up an postfix email server for internal communication purposes only and I am able now to send email back and forth between our two internal email servers. So my question now is how can I prevent postfix from emailing to for example gmail.com, yahoo.com, aol.com and other mail domains?

Thank you for any help.

descendant_command 08-04-2020 05:33 AM

http://www.postfix.org/postconf.5.ht...t_restrictions

check_recipient_access type:table
Search the specified access(5) database for the resolved RCPT TO address, domain, parent domains, or localpart@, and execute the corresponding action


All times are GMT -5. The time now is 03:23 AM.