jcdole: > 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
The lookup result of the smtpd_sender_login_maps table is either "not found" or a list of SASL login names separated by comma and/or whitespace. See http://www.postfix.org/postconf.html#smtpd_sender_login_maps > in /etc/postfix/sasl_default_sender.pcre > -------------------------------------- > /^\@/ 510 Invalid address format. That is not the format required by smtpd_sender_login_maps. Also, 510 is not an SMTP reply code. You may be confused with the 5.1.0 enhanced status code (Other address status). > /[!%\@].*\@/ 511 This server disallows weird address syntax. That is not the format required by smtpd_sender_login_maps. Also, 511 is not an SMTP reply code. You may be confused with the 5.1.1 enhanced status code (Bad destination mailbox address). > /^([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 >