LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-03-2020, 11:32 AM   #1
mstjohn1974
Member
 
Registered: Sep 2005
Location: Albuquerque
Distribution: Ubuntu
Posts: 33

Rep: Reputation: 5
Question 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.
 
Old 08-04-2020, 05:33 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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
 
  


Reply

Tags
postfix



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I configure iredmail to allow sending to a certain external domains only? mstjohn1974 Linux - Server 0 07-25-2020 10:45 PM
Issue sending email to certain internal domains using Mailx on REHL version 7 Double_AA Linux - Server 1 05-18-2018 10:50 AM
Multiple emails accounts(with different from domains) on multiple domains on 1 server locoputo Linux - Server 0 04-12-2009 06:29 PM
SMTP--direct deliver for most and SMART_HOST when sending to certain domains andrewstr Linux - Server 2 11-22-2006 04:58 PM
Prevent Cron from sending emails carmeng Linux - Software 3 11-10-2003 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration