Re: [Exim] ACL to reject mail from MAILER-DAEMON to anyone b…

Top Page
Delete this message
Reply to this message
Author: Brian Kendig
Date:  
To: Giuliano Gavazzi
CC: Exim-Users
Subject: Re: [Exim] ACL to reject mail from MAILER-DAEMON to anyone but me?
On Apr 30, 2004, at 1:27 PM, Giuliano Gavazzi wrote:

> no, exim -bh wants an ip address. You use it like this:
> exim -bh 127.0.0.1


Whups, I misspoke - I was giving it an IP address, but "mail from:" was
requiring me to give it something. Thanks for your example; using
"mail from: <>" made the right thing happen:

 >>> processing "deny"
 >>> check condition = ${if eq{$sender_address}{}{yes}{no}}
 >>>                 = yes
 >>> check condition = ${if eq{$local_part}{brian}{no}{yes}}
 >>>                 = yes
 >>> deny: condition test succeeded

550 The original message did not come from this site.
LOG: H=(mydomain.com) [1.2.3.4] F=<> rejected RCPT
rfeerf@???: Refused a bounce message

But if this works, then I still don't understand how an email from
MAILER-DAEMON@??? with a sender envelope of "<>" passed my rule.
Is there any way to turn on this level of verbose logging for regular
SMTP traffic so that I can see what happens when other bounce messages
trigger my rule?