postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: hide (do not disclose) reject reason to clien

Re: hide (do not disclose) reject reason to client but log as usual

From: Wietse Venema <wietse_at_nospam>
Date: Wed Oct 13 2010 - 00:12:53 GMT
To: Postfix users <postfix-users@postfix.org>

Costin Gusa:
> for example: I don't want the text "helo command rejected" to be
> prepended to my custom "REJECT internal code 123"

Postfix will "reveal" both the name and the value of the element
(client, helo, sender, recipient) that triggers a reject, because
down over here in the real world, Postfix rules will occasionally
reject legitimate mail.

I doubt that it is worthwhile to complicate Postfix source code
with the output equivalent of the smtpd_command_filter feature,
but you are welcome to give it a stab.

        Wietse