postfix-users

Echoing back offending address on error

Subject: Echoing back offending address on error
From: Dick Visser <visser AT terena DOT org>
To: Postfix User List <postfix-users AT postfix DOT org>
Date: Wed, 08 Aug 2007 14:44:33 +0200
Hi all

I have got the following in my smtpd_recipient_restrictions:

        reject_unknown_recipient_domain
        permit_sasl_authenticated
        permit_mynetworks
        reject_unauth_destination
        pcre:/etc/postfix/majordomo_nospam
        check_policy_service unix:private/policy
        reject_unverified_recipient


If people sent mail to <dick+96 AT te8766rena DOT nl> their mailer will display 
the actual
offending address plus the reason:

4.1.2 <dick+96 AT te8766rena DOT nl>: Recipient address rejected: Domain not 
found

If they sent mail to stuff like <dick+96@> you only get back the reason, and 
not the
offending address:

5.1.3 Bad recipient address syntax

This is not a problem when you send mail to one or two recipients, but my dear 
users
sometimes send mail to tens or even hundreds of addresses at once.
When they get a "5.1.3 Bad recipient address syntax", they have to check all 
the addresses
in their MUA one by one to find the offending one.

Is it possible to configure postfix to display the offending address in case of 
"bad
recipient syntax" (and maybe other cases)?

Running postfix-2.3.3 here.

Thanks,

-- 
Dick Visser
TERENA IT Support Officer

TERENA Secretariat
Singel 468 D, 1017 AW Amsterdam
The Netherlands
T +31 20 530 44 88 F +31 20 530 44 99
visser AT terena DOT org | www.terena.org

<Prev in Thread] Current Thread [Next in Thread>