Hi folks, I'm updating the configuration of my mail server and having problems with a regexp table. This is the relevant configuration in main.cf:
smtpd_recipient_restrictions = check_sender_access regexp:/etc/postfix/db/sender_access_table ... And /etc/postfix/db/sender_access_table: /^jcornell\.net$/ reject_sender_login_mismatch, permit /^m\.acorn\.ignorelist\.com$/ reject_sender_login_mismatch, permit With this configuration when I attempt to send a test email from ja...@jcornell.net to an external address I see in the logs that the regexp lookup fails: Feb 12 01:18:01 server postfix/smtpd[26577]: dict_regexp_lookup: /etc/postfix/db/sender_access_table: ja...@jcornell.net Feb 12 01:18:01 server postfix/smtpd[26577]: maps_find: regexp:/etc/postfix/db/sender_access_table: ja...@jcornell.net: not found Feb 12 01:18:01 server postfix/smtpd[26577]: maps_find: regexp:/etc/postfix/db/sender_access_table: jcornell.net: not found Feb 12 01:18:01 server postfix/smtpd[26577]: maps_find: regexp:/etc/postfix/db/sender_access_table: net: not found Feb 12 01:18:01 server postfix/smtpd[26577]: maps_find: regexp:/etc/postfix/db/sender_access_table: jakob@: not found Feb 12 01:18:01 server postfix/smtpd[26577]: mail_addr_find: ja...@jcornell.net -> (not found) Notice that I've used domain names in the table patterns, and one of the attempted lookups is with the domain from the address, as intended, but the lookup fails. However, the same lookup apparently succeeds when done using 'postmap': # postmap -q jcornell.net regexp:/etc/postfix/db/sender_access_table reject_sender_login_mismatch, permit My temporary workaround is to use an inline table instead: check_sender_access inline:{ { jcornell.net=reject_sender_login_mismatch, permit }, { m.acorn.ignorelist.com=reject_sender_login_mismatch, permit } } This works fine for ja...@jcornell.net, but my ultimate goal is to configure delivery for *.m.acorn.ignorelist.com too (arbitrary subdomain), and an inline table won't work for that. Could this be a bug in regexp table lookup? Thanks, Jakob _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org