LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2018, 07:33 AM   #1
mpoloq
LQ Newbie
 
Registered: Aug 2018
Posts: 1

Rep: Reputation: Disabled
Postfix - multiple access policies


Hi Guys,
I am trying to setup mail relay running on postfix on RHEL 7.5. Our old postfix infra is running on RHEL 6.9, for the ACL we are using apolicy which unfortunately is no longer available in 7.5

Server is running only as a mail relay, we are not receiving any emails. The goals are:

- send emails only from selected subnets (only emails from production vlans are allowed to be send) others should be rejected
- send emails only from specific @domains, not defined domains should be rejected

I was reading about the smtpd_sender_restrictions - easy to understand but the problem which i have is 'first rule wins' so i cannot use both below options as if it will match first rule it will not proceed with the second one....

smtpd_sender_restrictions =
check_sender_a_access hash:/etc/postfix/sender_IP_checks,
check_sender_access hash:/etc/postfix/sender_checks,
reject

Thanks a lot !
 
Old 08-02-2018, 02:02 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
I think if you set DUNNO instead of OK as the reponse to the first rule it should work as you want.
 
  


Reply



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
Implement password/account policies across multiple servers NoRearView Linux - Security 3 08-10-2016 08:58 AM
Postfix - Multiple ports and multiple relayhost saraza Linux - Server 1 10-02-2011 06:11 PM
Can one associate a wireless interface with multiple access points?Get multiple IP's? kopatops Linux - Software 1 06-16-2010 04:56 PM
Postfix - how to restrict access by telnet to postfix ? dlugasx Linux - Server 4 01-29-2009 03:55 PM
Postfix relay access denied multiple domains metalenkist Linux - Server 16 02-21-2008 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:58 PM.

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