[Exim] "senders= :" in router not recognizing mail bounced b…

Top Page
Delete this message
Reply to this message
Author: Marc Sherman
Date:  
To: Exim List
Subject: [Exim] "senders= :" in router not recognizing mail bounced by user filter?
From: "Philip Hazel" <ph10@???>
>
> On Thu, 22 Feb 2001, Marc Sherman wrote:
>
> > Is it possible to configure exim so that most messages are sent
> > via a smarthost, but some messages (specifically, bounce messages
> > generate by my system) are sent directly?
>
> Use a "senders= :" setting on an appropriate router.


Hi Philip. This solution is working for genuine bounce messages,
but it's not working for mail bounced by a user filter using the
"mail" command.

Any ideas?

Here's the user filter:
root@projectile:/home/user# more .forward
# Exim filter
if $sender_address is "msherman@???"
then
        unseen pipe "/home/user/postupdate"
else
        seen mail
                bcc "msherman@???"
                reply_to "msherman@???"
                subject "Bounce: $h_subject"
                text "Sorry, but you do not have permission to send mail to user@???."
                return message
endif



Here's the mainlog entry - note that the bounce message was sent via
the smarthost router, not the lookuphost router:

2001-02-24 10:20:44 14WgV2-00077P-00 <= msherman@??? H=mail.myrealbox.
com (myrealbox.com) [192.108.102.201] P=esmtp S=681 id=983027951.594msherman@myr
ealbox.com
2001-02-24 10:20:44 14WgV2-00077S-00 <= user@??? R=14WgV2-00077P
-00 U=user P=local S=1284
2001-02-24 10:20:44 14WgV2-00077P-00 => >Marc Sherman <msherman@???> <
user@???> D=userforward T=address_reply
2001-02-24 10:20:44 14WgV2-00077P-00 Completed
2001-02-24 10:20:44 14WgV2-00077S-00 => msherman <msherman@???> D=loca
luser T=local_delivery
2001-02-24 10:20:45 14WgV2-00077S-00 ** msherman@??? R=smarthost T=rem
ote_smtp: SMTP error from remote mailer after RCPT TO:<msherman@???>:
host smtp1.sympatico.ca [209.226.175.80]: 550 relaying mail to myrealbox.com is
not allowed
2001-02-24 10:20:45 14WgV2-00077S-00 Frozen (message created with -f <>)


Here's the queue:
root@projectile:/home/msherman# exim -bp
 0m  1.3K 14WgV2-00077S-00 <> (user@???) *** frozen ***
          msherman@???
        D msherman@???


And here's the relevant routers from exim.conf:
lookuphost:
driver = lookuphost
transport = remote_smtp
senders= :

smarthost:
driver = domainlist
transport = remote_smtp
route_list = "* smtp1.sympatico.ca bydns_a"

Thanks for the help,
- Marc