On 12/7/2009 4:10 AM, Raffael Schmid wrote:
Hi list
Do you know whether there is a possibility to reject invalid return
paths in postfix?
The problem is, that we get spam with a header-line like the following
and would like to reject those messages:
Return-Path:<MAILER-DEAMON>
AFAIK the return-path above is invalid, as there is only the following
formats allowed:
Return-Path:<john....@example.org>
Return-Path:<>
As I did not find a option in postfix to reject those mails, i could
write a header check with pcre. But before I will do this, I'd like to
verify whether there is really no option in postfix to set this?
Regards
raf
You can use reject_non_fqdn_sender in your smtpd_*_restrictions.
http://www.postfix.org/postconf.5.html#reject_non_fqdn_sender
You can use reject_unverified_sender, but note that some
admins will consider this abuse. If you use it, best applied
selectively. Here's an example:
http://www.postfix.org/ADDRESS_VERIFICATION_README.html#forged_sender
-- Noel Jones