Joshua Kordani a écrit :
> On 3/3/2010 4:11 PM, Noel Jones wrote:
>>
>> You can't enforce the From: header. The From: header in your spam
>> probably looked something like
>> From: Word Word
>> which is invalid, so postfix rewrote to
>> From: w...@example.com w...@example.com
>>
>> Postfix rewriting controls are described here:
>> http://www.postfix.org/ADDRESS_REWRITING_README.html#william
>>
>> Postfix doesn't normally rewrite headers in remote mail, but rewriting
>> can still happen, such as if you have a content_filter. It may help to
>> set in main.cf
>> remote_header_rewrite_domain = domain.invalid
>> to use @domain.invalid instead of your own domain in headers.
>>
>> http://www.postfix.org/postconf.5.html#remote_header_rewrite_domain
>>
>> -- Noel Jones
>>
> 
> That is exactly what is going on!  Thanks everyone!
> Is such rewriting desirable in the general case?  Or only when there is
> a specific need?
> 

the "purist" view is that you should not rewrite the message, including
headers. This is the job of the client mail agent. trying to rewrite/fix
will generally cause problems, because it is hard to guess what the user
wanted to write. and if there's a problem, the general principle
applies: fix problems at the source.

on the other hand, if you know what you're doing, it's ok to fix things.
 but think twice before you think it's all right. and think 7 times
before fixing inbound mail.

Reply via email to