[exim] Rewrite To field by mask.

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Henry Pootel
Datum:  
To: exim-users
Betreff: [exim] Rewrite To field by mask.
Hello,

I've got messages with strange "To:" field. For example:

To: Undisclosed Recipients

and my exim reject it with log:

rejected after DATA: header syntax (missing or malformed local part (expected word or "<"): failing address in "To:" header is: Undisclosed Recipients): missing or malformed local part (expected word or "<"): failing address in "To:" header is: Undisclosed Recipients

I need that Messages, it's legal messages. I think there is wrong forming of header (field To:)? but I can't to correct a sender MTA.

Please help me to rewrite field To: to 'undisclosed-recipients:;' (I think the problem is a lost colon character at the end of the field).

But, I would like to rewrite To: field for special sender only.

Rule:

If the sender is 'henry@???' and To: = Undisclosed Recipients
   then rewrite To field
   \N^(Undisclosed Recipients)$\N 'undisclosed-recipients:;' t      (Is it right?)



Thanks.

--
=== Henry Pootel ===