Dear Viktor,

Thank you for the quick reply with a solution.


Am 21.01.24 um 16:55 schrieb Viktor Dukhovni via Postfix-users:
On Sun, Jan 21, 2024 at 09:39:06AM +0100, Paul Menzel wrote:

pg.de is currently a parked domain, so our users will not going to
email there, and I would like to reject such messages submitted to us,
that the email client shows an error as it’s done, when, for example,
users submit a message to a colleague at our institute, and we now
that address does not exist, because the account was closed or it does
not exist.

Could you recommend a way how to best set this up, best with a custom error
message per domain? For example:

     Reject: Address has a typo: Should .pg.de .mpg.de?

`master.cf` currently contains:

     141.14.17.8:submission  inet    n       -       n       -       - smtpd
         -o myhostname=mx.molgen.mpg.de
         -o smtpd_recipient_restrictions=$mx_smtpd_recipient_restrictions
         -o smtpd_client_recipient_rate_limit=50

     main.cf:
         indexed = ${default_database_type}:${config_directory}/
         transport_maps = ${indexed}transport

     transport:
         .pg.de   error:5.1.2 Typo domain .pg.de should be .mpg.de

Thank you. Indeed. I added it to our existing transport map:

    # postconf transport_maps
    transport_maps = hash:/project/mx/etc/transport
    # grep -E ^.?pg\.de /project/mx/etc/transport
pg.de error:5.1.2 Typo in domain pg.de -- should be mpg.de .pg.de error:5.1.2 Typo in domain .pg.de -- should be .mpg.de


Thank you again and kind regards,

Paul
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to