|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Wietse Venema (wietse_at_porcupine.org)
Date: Tue Feb 25 2003 - 06:17:34 CST
Staff di Netribe - ReggioNET:
> Hello,
> We have recently migrate from Sendmail to Postfix using standard RedHat
> 8.0 package (1.1.11).
> We host an old application that use the "From:" header to parse some
> application parameter (yes, we know, it's very bad, but we must go on
> with that!).
> That application connect to a mailbox using POP3 and search for a sender
> address (From: header) in the form:
>
> PARAM1;PARAM2;PARAM3;PARAM4 <user
mail.server.domain>
That is invalid syntax!
> (yes, we know, the semicolon is a character that has a particular
> meaning defined by RFCs, but we must go on with that!).
> The problem is that Postfix rewrite the address in the form:
>
> PARAM1;, PARAM2;, PARAM3;PARAM4 <user
mail.server.domain>
>
> and our bad application does not recognize its parameter any more.
>
> I tried to add the following line to the main.cf:
> resolve_dequoted_address = no
> but it didn't work.
It works as documented. It does not affect HEADER addresses.
> In attachment it is the "postconf -n" output for our server.
>
> Sendmail didn't modify the From: header, it is possible to obtain this
> behaviour in Postfix too?
I will not mess up Postfix because people adopt procedures that
"work with Sendmail" without understanding why those procedures
work.
If you must keep using this invalid form, then put the text between
double quotes, like:
From: "PARAM1;PARAM2;PARAM3;PARAM4" <user
mail.server.domain>
and teach your application to understand this format.
Wietse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]