Hello,

This is perhaps old news, but couldn’t find anything related in the archives 
nor in the release notes.
So, just in case… ;-)

Up to now, I had :

        main.cf:

                smtpd_sender_login_maps = sqlite:db_sender_login_map
                db_sender_login_map_dbpath = […]
                db_sender_login_map_query = […]

                submission_sender_restrictions =
                        […]
                        reject_sender_login_mismatch
                        […]

        master.cf:

                submission inet n       -       n       -       -       smtpd
                        […]
                        -o 
smtpd_sender_restrictions=$submission_sender_restrictions
                        […]

and everything seemed to be working as expected (Postfix 2.11.0 - 20140115).

I then had to make provisions for a few exceptions (i.e. enveloppe sender 
addresses outside of the overall logics), which I tried to implement with the 
help of a hash table:

        smtpd_sender_login_maps =
                sqlite:db_sender_login_map
                hash:$config_directory/maps/sender_login_exceptions

No matter whatever I put in sender_login_exceptions, it was never taken into 
account.

While trying to debug the problem, I tried:

        smtpd_sender_login_maps =
                hash:$config_directory/maps/sender_login_exceptions
                sqlite:db_sender_login_map

And… it worked: both sources (hash and db) now seem to be correctly parsed and 
interpreted.

Am I doing something wrong, or could there some bug be at play?

Axel


Reply via email to