On 28/09/2021 14:41, post...@ptld.com wrote:
I have been reading the documentation for smtpd_sender_login_maps and
for what i understood I must create a db of the form

@domain user1,user2....

From the docs:

"In all cases the result of table lookup must be either "not found" or
a list of SASL login names separated by comma and/or whitespace"

Thats not manageble in some scenarios.

Since that list could be a LDAP lookup I'm going to research that option.


@domain user1,user2....

I don't believe this is valid format. It would be more like
I used the ... as example for list of users
user1@domain,user2@domain
or
   user1,user2
or
   user1@domain,user2,@domain


Since that list could be a LDAP lookup I'm going to research that option.

Yes, you don't have to use flat files. It works for any "lookup table" such as
   CDB
   Berkeley DB
   LDAP
   LMDB
   Memcache
   MySql / MariaDB
   PCRE
   PostgreSQL
   SQLite

SQLite is a good idea. Since I use both alias and usernames I think that I can hack something with it. From what I read in the meantime for LDAP queries I possibly had the alter the LDAP tree and that is out of question.

Thanks for the help.


http://www.postfix.org/DATABASE_README.html

Reply via email to