On 10/10/12 10:38, Ian Eiloart wrote: > On 1 Oct 2012, at 15:34, Molly Fletcher <[email protected]> > wrote: > >> That is the mail back to the user is sent to ">[email protected]" >> rather than "[email protected]" 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 [email protected] Wed Oct 10 15:29:26 2012 Return-path: <[email protected]> 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 <[email protected]>) id 1TLxHq-00084u-75 for [email protected]; 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 <[email protected]> but when the filter is processed: 2012-10-10 15:29:26 [31056] 1TLxHq-00084u-75 <= [email protected] 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=91bd0f59ed5fbe44976d1a3644bf2e3a5d5...@winky.red.redembedded.com T="Filter test please ignore" from <molly.fletcher@ redembedded.com> for [email protected] 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=<[email protected]> P=<[email protected]> T=address_file S=6007 QT=0s DT=0s 2012-10-10 15:29:26 [31058] 1TLxHq-00084u-75 ** >[email protected] <system-filter> F=<[email protected]> P=<[email protected]> T=local_delivery: SMTP error from remote mail server after RCPT TO:<>[email protected]>: 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 [email protected] 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 <[email protected]> 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 -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
