custom reject message for reject_sender_login_mismatch

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

custom reject message for reject_sender_login_mismatch

Stefan Bauer-2
Hi,

using

smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
smtpd_sender_login_maps = hash:/etc/postfix/login_maps

rejects user with invalid mail from domain with

<[hidden email]>: Sender address rejected: not owned by user abc; from=<[hidden email]> to=<[hidden email]> proto=ESMTP helo=<[192.168.0.173]>

How can i customize this reject message?

Thank you.

Stefan
Reply | Threaded
Open this post in threaded view
|

Re: custom reject message for reject_sender_login_mismatch

Kacper
Looks like you would have to recompile postfix with changes to
smtpd_check.c, https://github.com/vdukhovni/postfix/blob/c8e31ae510e006127934ce54413a829933ccae9d/postfix/src/smtpd/smtpd_check.c#L3818
On Sat, Sep 8, 2018 at 3:18 PM Stefan Bauer <[hidden email]> wrote:

>
> Hi,
>
> using
>
> smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
> smtpd_sender_login_maps = hash:/etc/postfix/login_maps
>
> rejects user with invalid mail from domain with
>
> <[hidden email]>: Sender address rejected: not owned by user abc; from=<[hidden email]> to=<[hidden email]> proto=ESMTP helo=<[192.168.0.173]>
>
> How can i customize this reject message?
>
> Thank you.
>
> Stefan
Reply | Threaded
Open this post in threaded view
|

Re: custom reject message for reject_sender_login_mismatch

Stefan Bauer-2
Thanks, I'll check it out.

Am Sa., 8. Sep. 2018 um 19:01 Uhr schrieb Kacper <[hidden email]>:
Looks like you would have to recompile postfix with changes to
smtpd_check.c, https://github.com/vdukhovni/postfix/blob/c8e31ae510e006127934ce54413a829933ccae9d/postfix/src/smtpd/smtpd_check.c#L3818
On Sat, Sep 8, 2018 at 3:18 PM Stefan Bauer <[hidden email]> wrote:
>
> Hi,
>
> using
>
> smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
> smtpd_sender_login_maps = hash:/etc/postfix/login_maps
>
> rejects user with invalid mail from domain with
>
> <[hidden email]>: Sender address rejected: not owned by user abc; from=<[hidden email]> to=<[hidden email]> proto=ESMTP helo=<[192.168.0.173]>
>
> How can i customize this reject message?
>
> Thank you.
>
> Stefan