Re: [exim] ACL question

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Always Learning
Ημερομηνία:  
Προς: Exim
Αντικείμενο: Re: [exim] ACL question

On Sun, 2016-02-21 at 16:33 -0500, DAN EGLI wrote:
> Basically what I want is if they are both a particular domain, reject
> the message. I.e. if it's from user1@??? AND addressed to
> user2@???, then block the message.


--------
Untested guesses
--------

acl_smtp_rcpt    = acl_check_rcpt
....
....
....


acl_check_rcpt:

drop   recipients    = user2@???
       senders       = user1@???
       message       = We do not want your spam. Bye, bye.


---or----

drop   recipients    = *@example.com
       senders       = *@example.com
       message       = We do not want your spam. Bye, bye.


---or----

drop   domains               = example.com
       sender_address_domain = *@example.com
       message               = We do not want your spam. Bye, bye.


---or----

drop   domains      = example.com    # recipient domain name
       condition    = ${if match{$sender_address_domain}{example.com}}
       message       = We do not want your spam. Bye, bye.






--
Regards,

Paul.
England, EU.      England's place is in the European Union.