On 04/13/2011 03:40 PM, Márcio Luciano Donada wrote:
Hi,
Got an interesting case today and would like to share an idea with
you. IN case the link [1]. what happens is that from has a name but
that name is an e-mail has just passed and another staff automatically
is not really from. Is there a way to be blocking email like this?
Not natively.
Postfix implements the SMTP protocol, as specified in RFC 5321.
It accepts and produces messages in standard internet message format, as
defined in RFC 5322.
Neither mandates that the envelope sender must bear any resemblance to
the From: header in the message, and there are many cases where this is
undesirable.
That said, there are plenty of options to apply external processing to
messages, such as milters, content filters, and policy daemons.
One or more of those will surely allow you to match the From: header to
the sender address.
[1]. http://paste.ubuntu.com/593564/
Please don't do that - it's annoying to have to reference something
off-list when answering a (potentially simple) question.
Just follow the instructions for help as shown in the welcome message
you received when you subscribed to this list, repeated here:
http://www.postfix.org/DEBUG_README.html#mail
With regards to your question:
envelope-from=advbacaltc...@terra.com.br; helo=MGMSP02;
From: "jferre...@mgmoperadora.com.br"<advbacaltc...@terra.com.br>
They *are* identical.
The friendly name is ignored/irrelevant, as long as there is also a
valid address.
If you want to force the /friendly name/ to the sender address that's
*also* in the From: header - remove it, so that:
From: "jferre...@mgmoperadora.com.br"<advbacaltc...@terra.com.br>
becomes:
From:<advbacaltc...@terra.com.br>
But this has limited practical use.
Any decent mail client knows the difference and will indicate which part
is the name, and which part is the address.
--
J.