I am trying to figure out, why my postfix is ignoring my login maps completely without any errors in the log files.
Return of command postconf -m displays that pcre is supported.
btree cidr environ fail hash internal memcache nis pcre proxy regexp sdbm sqlite static tcp texthash unix
This is the contents of my main.cf
smtpd_recipient_restrictions = reject_non_fqdn_recipient, reject_non_fqdn_sender, reject_unlisted_recipient permit_mynetworks, permit_sasl_authenticated, reject_unverified_sender, reject_unauth_destination, reject_sender_login_mismatch, reject_invalid_hostname, reject_unknown_sender_domain, reject_unknown_recipient_domain reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client list.dsbl.org, reject_rbl_client rbl.mail-abuse.org, reject_rbl_client spamsources.fabel.dk smtpd_sender_login_maps = pcre:/etc/postfix/login_maps.pcre
So i am authenticating as email@example.com, but i am able to change my sender email for firstname.lastname@example.org and the e-mail is accepted.
What i am doing wrong or how is the syntax for preventing this?