After many tests I found that this is working :

in main.cf :
-----------
smtpd_sender_restrictions =
        reject_non_fqdn_sender,
        reject_unknown_sender_domain,
        reject_sender_login_mismatch

smtpd_sender_login_maps = pcre:/etc/postfix/sasl_default_sender.pcre

in /etc/postfix/sasl_default_sender.pcre
--------------------------------------
/^\@/           510 Invalid address format.

/[!%\@].*\@/    511 This server disallows weird address syntax.

/^([a-zA-Z0-9.\-_]+)@my_domain.com$/            ${1}@my_domain.com

!/^([a-zA-Z0-9.\-_]+)@my_domain.com$/   550 Invalid address







-----
Thank you for helping
________
Opensuse Leap 15
--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html

Reply via email to