Lucas, > I'm running the stock configuration of amavisd-new (version 2.5.1, > 20070531) under Mac OS X Server 10.5.6 for virus and spam filtering. > I'm getting this weird issue with users putting colons in their From/ > To/Cc/Subject lines. Here's the headers from the message that gets sent: > [...] > To: Lucas Wagner :: Colon Test <[email protected]> > Subject: test > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > > Notice the double colons in the To line. Here's the results after > running through amavis: > [...] > To: [email protected], > "Wagner:"@robocop.gateway.ualberta.ca:Colon Test > <[email protected]
> The To line gets horribly mangled. When I turn amavis off, no such > mangling occurs. Is there any way I can avoid this, other than telling > my users not to use the double colons? That is Postfix doing it, not amavisd. See http://www.postfix.org/postconf.5.html#local_header_rewrite_clients and related Postfix settings. > To: Lucas Wagner :: Colon Test <[email protected]> What you think is a 'display name' in the To header field, is actually not. You are breaking rfc2822/5322 syntax: address = mailbox / group mailbox = name-addr / addr-spec name-addr = [display-name] angle-addr display-name = phrase phrase = 1*word / obs-phrase word = atom / quoted-string atom = [CFWS] 1*atext [CFWS] atext = ALPHA / DIGIT / ; Printable US-ASCII "!" / "#" / ; characters not including "$" / "%" / ; specials. Used for atoms. "&" / "'" / "*" / "+" / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{" / "|" / "}" / "~" Your display name should either not include colons and other specials, or be enclosed in double quotes (the quoted-string syntax). Mark ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
