[exim] trusted_senders question

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Stephen Gran
Dátum:  
Címzett: exim-users
Tárgy: [exim] trusted_senders question
Hello all,

I have a strangeness I'd like to resolve, but I'm not sure how to start
debugging. We use a webmail app on one of our systems, and it can only
inject email via the binary. It does use -f at least, and we have added
the user that apache runs as to trusted_users.

So, this what we have:
/usr/sbin/exim4 -bP | grep trusted
trusted_groups =
trusted_users = uucp:www-data:list
untrusted_set_sender =

And a typical log line:
2004-11-19 12:41:29 1CVClF-0007kK-4c <= spatton@??? U=www-data P=local S=1710 id=1100886089.419e3049199cc@??? from <spatton@???> forKPATTON@???
2004-11-19 12:41:34 1CVClF-0007kK-4c => kpatton@??? <KPATTON@???> R=dnslookup T=remote_smtp S=1757 H=mailgate.wcasd.k12.pa.us [204.108.148.211] C="250 Ok: queued as E61A58C8EB" QT=5s DT=5s
2004-11-19 12:41:34 1CVClF-0007kK-4c Completed

Looks right to me, and the headers look reasonable:
> From testuser@??? Fri Nov 19 12:46:47 2004
> Return-path: <testuser@???>
> Received: from saturn.ccil.org ([192.190.237.112] ident=Debian-exim)
>         by mail.lobefin.net with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16)
>         (Exim 4.34)
>         id 1CVCph-0001iF-Im
>         for steve@???; Fri, 19 Nov 2004 12:46:05 -0500
> Received: from www-data by saturn.ccil.org with local (Exim 4.34)
>         id 1CVCpg-0007m0-94
>         for steve@???; Fri, 19 Nov 2004 12:46:04 -0500


However, when a user makes a typo sending an email, and ends up with an
invalid address in the to: we get the following behavior:

2004-11-19 12:46:34 1CVCqA-0007mJ-Jx <= www-data@??? U=www-data P=local S=8548 id=1100886394.419e317a6c896@??? from <www-data@???> for jusjoken@???
2004-11-19 12:46:37 1CVCqA-0007mJ-Jx => jusjoken@??? R=dnslookup T=remote_smtp S=8822 H=mail.lincsatmail.com [207.179.143.254] C="250 2.0.0 iAJHka6w015326 Message accepted for delivery" QT=3s DT=2s
2004-11-19 12:46:37 1CVCqA-0007mJ-Jx Completed

2004-11-19 12:46:34 1CVCqA-0007mK-Ld <= <> R=1CVCqA-0007mJ-Jx U=Debian-exim P=local S=9210 from <> for www-data@???
2004-11-19 12:46:34 1CVCqA-0007mK-Ld => linforce (root@???) <www-data@???> R=procmail T=procmail_pipe S=9356 QT=0s DT=0s
2004-11-19 12:46:34 1CVCqA-0007mK-Ld Completed

So, the first address in his To: line was fine, and got routed and sent
appropriately, but the second address had a typo (in this case it had a
comma instead of a period in the domain, IIRC). So exim couldn't route
the message, and sent it back to the ident sender, rather than the
envelope sender.

Note that regular DSN's (remote MTA gave 5xx or whatever) go back to the
envelope sender appropriately. Is there a way to change this so that
users also get the DSN for errors encountered in routing the message?
Set errors_to, I am guessing, but not sure where, since this is locally
injected. It's just tiresome getting user's DSN when they make a typo,
and not helpful to the users, I would think.

Thanks all,
--
--------------------------------------------------------------------------
|  Stephen Gran                  | If we men married the women we          |
|  steve@???             | deserved, we should have a very bad     |
|  http://www.lobefin.net/~steve | time of it.   -- Oscar Wilde            |

--------------------------------------------------------------------------