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 
[email protected] 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: [email protected]
Feb 12 01:18:01 server postfix/smtpd[26577]: maps_find: 
regexp:/etc/postfix/db/sender_access_table: [email protected]: 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: [email protected] 
-> (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 [email protected], 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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to