Re: [exim] Strange system filter behaviour.

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Molly Fletcher
Ημερομηνία:  
Προς: Ian Eiloart
Υ/ο: <exim-users@exim.org>
Αντικείμενο: Re: [exim] Strange system filter behaviour.
On 10/10/12 10:38, Ian Eiloart wrote:
> On 1 Oct 2012, at 15:34, Molly Fletcher <molly.fletcher@???> wrote:
>
>> That is the mail back to the user is sent to ">user.name@???" rather than "user.name@???" which is then rejected by our exchange server when exim passes the message to it for local delivery generating a bounce. The only change to the main exim configuration related to this filter was to set "message_body_visible = 32768" so the filter scans enough message body to catch all numeric URLs.
>>
>> Does anyone have any suggestions where the extra ">" on the start of the address might be coming from or why it only seems to happen some of the time and not all?
>>
>> This is with exim4-daemon-heavy 4.76-3ubuntu3 running on ubuntu 12.04 LTS server amd64.
>>
>> The exim configuration is monolithic I'll post any bits if necessary but it's a bit big to put in the initial post.
> I think the address for Mail is taken from the "From" header, not the envelope. So do check that that's not inaccurate.


I added a save clause to the filter so I could see what headers exim is
getting and they look fine:

>From molly.fletcher@??? Wed Oct 10 15:29:26 2012

Return-path: <molly.fletcher@???>
Envelope-to: system-filter
Delivery-date: Wed, 10 Oct 2012 15:29:26 +0100
Received: from exmail.redembedded.com ([10.82.128.38]:16845)
    by mail1.redembedded.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
    (Exim 4.76)
    (envelope-from <molly.fletcher@???>)
    id 1TLxHq-00084u-75
    for fakeuser@???; Wed, 10 Oct 2012 15:29:26 +0100
Received: from winky.red.redembedded.com ([10.82.128.38]) by
 winky.red.redembedded.com ([10.82.128.38]) with mapi id 14.01.0289.001;
Wed,
 10 Oct 2012 15:29:25 +0100
From: Molly Fletcher <molly.fletcher@???>


but when the filter is processed:

2012-10-10 15:29:26 [31056] 1TLxHq-00084u-75 <=
molly.fletcher@??? H=exmail.redembedded.com
[10.82.128.38]:16845 I=[10.82.1.26]:25 P=esmtps
X=TLS1.0:RSA_AES_128_CBC_SHA1:16 CV=no S=5825
id=91BD0F59ED5FBE44976D1A3644BF2E3A5D5990@???
T="Filter test please ignore" from <molly.fletcher@
redembedded.com> for fakeuser@???
2012-10-10 15:29:26 [31056] SMTP connection from exmail.redembedded.com
[10.82.128.38]:16845 I=[10.82.1.26]:25 closed by QUIT
2012-10-10 15:29:26 [31058] cwd=/var/spool/exim4 3 args: /usr/sbin/exim4
-Mc 1TLxHq-00084u-75
2012-10-10 15:29:26 [31058] 1TLxHq-00084u-75 original recipients ignored
(system filter)
2012-10-10 15:29:26 [31058] 1TLxHq-00084u-75 =>
/var/log/exim4/filtertest <system-filter>
F=<molly.fletcher@???> P=<molly.fletcher@???>
T=address_file S=6007 QT=0s DT=0s
2012-10-10 15:29:26 [31058] 1TLxHq-00084u-75 **
>molly.fletcher@??? <system-filter>

F=<molly.fletcher@???> P=<molly.fletcher@???>
T=local_delivery: SMTP error from remote mail server after RCPT
TO:<>molly.fletcher@???>: host exmail.redembedded.com
[10.82.128.38]: 501 5
.1.3 Invalid address
2012-10-10 15:29:26 [31062] cwd=/var/spool/exim4 7 args: /usr/sbin/exim4
-t -oem -oi -f <> -E1TLxHq-00084u-75
2012-10-10 15:29:26 [31062] 1TLxHq-000850-Pt <= <> R=1TLxHq-00084u-75
U=Debian-exim P=local S=6864 T="Mail delivery failed: returning message
to sender" from <> for molly.fletcher@???
2012-10-10 15:29:26 [31058] 1TLxHq-00084u-75 Completed QT=0s

I've also tried with:

mail to $sender_address

and the result is the same.

-- 
Molly Fletcher, IT System Administrator    <molly.fletcher@???>
Red Embedded Design            www.redembedded.com
Tel: +44 (0)1274 287724


This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return and delete the message.

You must not disclose, forward or copy this E-mail or attachments to any third party without the prior consent of the sender.

Red Embedded Design Registered in England, Company Number: 06688253
Registered Office: The Waterfront, Salts Mill Road, Saltaire, West Yorkshire, BD17 7EZ