I may not be understanding this but it does seem that the SMTP dialogue
from the mail command in the system filter is doing something I do not
expect.
I'm using Exim 4.71 and with the following stanza in the message filter
if "${if def:header_X-Attachment: {there}}" is there
then
mail to $recipients
from "[email protected]"
subject "Small attachment detected"
text "A message from $sender_address with subject $h_subject:
contained a small attachment"
logwrite "Detected: Small attachment detected for $recipients"
seen finish
endif
fails with an error message containing
mail to [email protected]
generated by system-filter
SMTP error from remote mail server after RCPT
TO:<>[email protected]>:
The log entry is
2010-08-11 10:48:34 1Oj7vE-0004Ce-G9 <= [email protected]
H=daitonix.insrv.cf.ac.uk [10.224.1.209] P=esmtp S=1456
id=1281548914.13596.26.ca...@ubuntu T="Attachment test"
Detected: Small attachment detected for [email protected] <--
logwrite indicates $recipients is correct
2010-08-11 10:48:34 1Oj7vE-0004Ce-G9 original recipients ignored (system
filter)
2010-08-11 10:48:34 1Oj7vE-0004Ce-G9 ** >[email protected]
<system-filter> T=small_transport: SMTP error from remote mail server
after RCPT TO:<>[email protected]>: host mdomsmp01.cf.ac.uk
[10.255.228.22]: 501 Syntax error, parameters in command "RCPT
TO:<>[email protected]>" unrecognized or missing
2010-08-11 10:48:34 1Oj7vE-0004Ce-G9 Completed QT=2s
The recipient address appears to be correct ($recipients output to the log
correctly), but the RCPT TO has an extra > in front of the address.
So where is that extra > coming from?
Ken
----------------------------------------------------------------
Ken Tucker BA MBCS CITP
Senior Engineer - Mail Team
Information Services
Cardiff University
----------------------------------------------------------------
--
## List details at http://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/