On 28/09/2021 15:42, Matus UHLAR - fantomas wrote:
On 28.09.21 14:31, João Silva 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.

note that postfix compares envelope senders to those in database, so you
must make sure that the envelope sender matches address in From:

I'm using one alias file. I'm going to parse that to get the possible From: fields and work from there, after that I can get the rest of the cases with a getent passwd.

That way I can build a hash table and don't need to mess with LDAP.

It would be nice to have a option to specify a list of allowed domains.



On 28/09/2021 12:46, Max-Julian Pogner wrote:
did you already ctrl+f for 'reject_sender_login_mismatch' and 'smtpd_sender_login_maps' in http://www.postfix.org/postconf.5.html
?

On 28/09/2021 13:36, João Silva wrote:
I need to limit the domains in "mail from" for autenticated users to prevent sending emails with a "third party" domain. I have read the documentation and did not reached any conclusion.

My best guess is that is some configuration that may be passed as an option to submission and smtps.

What is the proper way to do something like that?

Reply via email to