problem with sender_access ; can't reject domains

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

problem with sender_access ; can't reject domains

patg

hello,

i use postfix since years, there was no problem, but since some weeks, we receive mails from bad domains.

i don' t find solution in postfix. i use "sender_access" to reject some domains, but domains are always coming even if i postmap sender_access and i restart postfix. what can be the solution ? i use  : check_sender_access hash:/etc/postfix/sender_access

here my postconf -n : http://paste.debian.net/971113/

thx for your help,

Pat.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: problem with sender_access ; can't reject domains

Dominic Raferd


On 12 June 2017 at 10:04, pat G <[hidden email]> wrote:

hello,

i use postfix since years, there was no problem, but since some weeks, we receive mails from bad domains.

i don' t find solution in postfix. i use "sender_access" to reject some domains, but domains are always coming even if i postmap sender_access and i restart postfix. what can be the solution ? i use  : check_sender_access hash:/etc/postfix/sender_access

here my postconf -n : http://paste.debian.net/971113/ 


​Maybe you trying to reject based on the domain in the 'From' header not the domain in the envelope sender. sender_access works off the envelope sender only, if you want to reject based on the address in the 'From' header you need to use header_checks.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: problem with sender_access ; can't reject domains

Benny Pedersen-2
In reply to this post by patg
pat G skrev den 2017-06-12 11:04:

> here my postconf -n : [1]http://paste.debian.net/971113/

smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender,
reject_unknown_sender_domain, reject_rbl_client domain-name,
reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net,
permit

reject_rbl_client is not domain names but ips

example:

reject_rhsbl_client host.rhsbl-domain.com,
reject_rhsbl_sender host.rhsbl-domain.com,

https://posluns.com/guides/rhsbl/

http://multirbl.valli.org/detail/dbl.spamhaus.org.html
Loading...