Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread João Silva
On 28/09/2021 17:24, Wietse Venema wrote: Jo?o Silva: A table with the format alias@domain alias_owner is allowed? You can stick anything in there, but for meaningful results, - alias@domain must be an envelope sender address, and - alias_owner must be a SASL login name. Wietse E

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread Wietse Venema
Jo?o Silva: > A table with the format > > alias@domain alias_owner > > is allowed? You can stick anything in there, but for meaningful results, - alias@domain must be an envelope sender address, and - alias_owner must be a SASL login name. Wietse

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread João Silva
On 28/09/2021 16:39, Viktor Dukhovni wrote: On Tue, Sep 28, 2021 at 03:50:06PM +0100, João Silva wrote: It would be nice to have a option to specify a list of allowed domains. This is not meaningful, because the lookup result is a list of SASL identities, which are just opaque octet strings,

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread Viktor Dukhovni
On Tue, Sep 28, 2021 at 03:50:06PM +0100, João Silva wrote: > It would be nice to have a option to specify a list of allowed domains. This is not meaningful, because the lookup result is a list of SASL identities, which are just opaque octet strings, there's no notion of "domain" there. In fact,

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread João Silva
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

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread Matus UHLAR - fantomas
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 n

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread João Silva
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

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread postfix
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 whitespac

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread João Silva
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 whitesp

Re: Filtering MAIL FROM for autenticated users

2021-09-28 Thread Max-Julian Pogner
Hi, did you already ctrl+f for 'reject_sender_login_mismatch' and 'smtpd_sender_login_maps' in http://www.postfix.org/postconf.5.html ? regards, Max On 28/09/2021 13:36, João Silva wrote: Hi I need to limit the domains in "mail from" for autenticated users to prevent sending emails with a

Filtering MAIL FROM for autenticated users

2021-09-28 Thread João Silva
Hi 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.