Allow me to pose a slightly different scenario then, but still related
to my original doubt:
I separate smtp and submission, and prevent using my domain through
smtp. However somehow someones's PC gets compromised and sends mail
modifying the From header in the data section.
Even if the envelope-from is not forged (using
reject_sender_login_mismatch and so), email clients often display only
the descriptive From.
Is there a way to prevent this forging of descriptive From using
postfix itself?
No. For checking validity of From: header, you must use external
application.
On 30.09.19 11:40, Christos Chatzaras wrote:
Add this line to main.cf :
smtpd_sender_login_maps = hash:/usr/local/etc/postfix/smtpd_sender_login_maps
And then add to smtpd_sender_login_maps :
[email protected] [email protected]
This only validates envelope from headers according to SASL login names.
It's good to check, though.
--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Boost your system's speed by 500% - DEL C:\WINDOWS\*.*