LMTP bounces with invalid chars in MAIL FROM adress

Simon Matter simon.matter at invoca.ch
Thu Feb 17 08:39:07 EST 2011


>> Hi,
>>
>> I've seen a growing number of bounced mails from Cyrus LMTP where
>> Postfix
>> logs "501 5.5.4 Syntax error in parameters (in reply to MAIL FROM
>> command))"
>>
>> The problem is that those messages really have invalid from adresses,
>> like
>> "RosaSánchez at something.com", but Postfix still accepts them. Later,
>> Cyrus
>> runs parseaddr() on it ans correctly refuses to accept the mail.
>>
>> Now, I'm interested to hear how others handle this case, if possible how
>> they handle it with postfix. I know that enabling
>> strict_rfc821_envelopes
>> would possibly help but that seem to be a bad idea.
>
> I've searched the postfix-users list and as expected I'm not the only one
> to see this issue:
>
> http://marc.info/?l=postfix-users&m=120168533827364&w=2
>
> Since postfix (and I think also other MTA's) are a bit relaxed on what
> they accept as "MAIL FROM:" addresses, is there a very good reason for
> Cyrus to be so strict?

I've just added this

http://bugzilla.cyrusimap.org/bugzilla3/show_bug.cgi?id=3402

May I ask for a quick review of the attached patch? It works but I'm not
sure what it breaks :)

Thanks,
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cyrus-imapd-2.4.6-lmtp_backscatter.patch
Type: text/x-patch
Size: 639 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20110217/19da9836/attachment.bin 


More information about the Info-cyrus mailing list