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

Re: Filtering mail from outside users only

2015-11-18 Thread Vicki Brown
Thank you. It is not clear from the docs whether these are examples or literal, which is why I asked "are these literal?" > On Nov 18, 2015, at 03:53, Wietse Venema wrote: > > Vicki Brown: >> Also, when I try these entries literally, I get >> fatal: bind 1.2.3.4 port 25: Can't assign requeste

Re: Filtering mail from outside users only

2015-11-18 Thread Wietse Venema
Vicki Brown: > Also, when I try these entries literally, I get > fatal: bind 1.2.3.4 port 25: Can't assign requested address Those are examples. You should specify an IP address that is configured on your server. Wietsde

Re: Filtering mail from outside users only

2015-11-18 Thread Benny Pedersen
On November 18, 2015 9:29:29 AM Vicki Brown wrote: Also, when I try these entries literally, I get fatal: bind 1.2.3.4 port 25: Can't assign requested address means you have one port 25 listner in master.cf, if you need one more all must be specified pr ip and port not just port, i can see y

Re: Filtering mail from outside users only

2015-11-18 Thread Vicki Brown
Also, when I try these entries literally, I get fatal: bind 1.2.3.4 port 25: Can't assign requested address -- confused... > On Nov 18, 2015, at 00:17, Vicki Brown wrote: > > I am reading http://www.postfix.org/FILTER_README.html > , the section on "F

Re: Filtering mail from insider users only

2015-08-23 Thread Robert Morton
Thank you. > On Aug 23, 2015, at 8:17 PM, Wietse Venema wrote: > > Robert Morton: >> How would you configure master.cf to filter mail from insider users only? >> >> I see in the section how to do this for outsider users only. >> >> Any help would be appreciated. > > /etc/postfix/main.cf

Re: Filtering mail from insider users only

2015-08-23 Thread Wietse Venema
Robert Morton: > How would you configure master.cf to filter mail from insider users only? > > I see in the section how to do this for outsider users only. > > Any help would be appreciated. /etc/postfix/main.cf: smtpd_client_restrictions = cidr:/etc/postfix/client_access.cidr /etc/pos

Re: filtering mail from outside with dynamic address

2009-08-13 Thread Mikael Bak
Florin Andrei wrote: > Mikael Bak wrote: >> >> Is it really recommended to run a mail server that accepts email from >> outside with non static IP address? >> >> I would not do it. > > As long as the dynamic DNS service works well, and the IP address only > changes very rarely, why not? > Hi, Yo

Re: filtering mail from outside with dynamic address

2009-08-12 Thread Florin Andrei
Mikael Bak wrote: Is it really recommended to run a mail server that accepts email from outside with non static IP address? I would not do it. As long as the dynamic DNS service works well, and the IP address only changes very rarely, why not? I've been doing this for close to a decade now

Re: filtering mail from outside with dynamic address

2009-08-12 Thread Wietse Venema
Florin Andrei: > Wietse Venema wrote: > > Florin Andrei: > >> Florin Andrei wrote: > >>> Is there a way to bind the listener to an interface using the interface > >>> name (eth5:smtp) instead of the IP (1.2.3.4:smtp)? > > > > No. The bind(2) system call specifies an address. Not an interface, > >

Re: filtering mail from outside with dynamic address

2009-08-12 Thread Barney Desmond
2009/8/12 Florin Andrei : Is there a way to bind the listener to an interface using the interface name (eth5:smtp) instead of the IP (1.2.3.4:smtp)? >> >> No. The bind(2) system call specifies an address. Not an interface, >> and not the route. Connections with source address of X are not

Re: filtering mail from outside with dynamic address

2009-08-12 Thread Mikael Bak
Hi, Florin Andrei wrote: > Running Postfix 2.5.5 on Linux. The system is multihomed, connected to > several private networks, and to the Internet with a dynamic DNS hostname. > Is it really recommended to run a mail server that accepts email from outside with non static IP address? I would not

Re: filtering mail from outside with dynamic address

2009-08-11 Thread Florin Andrei
Wietse Venema wrote: Florin Andrei: Florin Andrei wrote: Is there a way to bind the listener to an interface using the interface name (eth5:smtp) instead of the IP (1.2.3.4:smtp)? No. The bind(2) system call specifies an address. Not an interface, and not the route. Connections with source ad

Re: filtering mail from outside with dynamic address

2009-08-11 Thread Wietse Venema
Florin Andrei: > Florin Andrei wrote: > > > > Is there a way to bind the listener to an interface using the interface > > name (eth5:smtp) instead of the IP (1.2.3.4:smtp)? No. The bind(2) system call specifies an address. Not an interface, and not the route. Connections with source address of X

Re: filtering mail from outside with dynamic address

2009-08-11 Thread Florin Andrei
Florin Andrei wrote: Is there a way to bind the listener to an interface using the interface name (eth5:smtp) instead of the IP (1.2.3.4:smtp)? Also, you know what would *really* help? The ability to say: "bind to all interfaces except this one", by name. That would be really, really neat.

Re: filtering mail

2009-02-12 Thread Peter Blair
Including every solicited bulk email. They usually create unique bounce addresses to track dead target mailboxes etc. On Wed, Feb 11, 2009 at 9:30 AM, Michael Katz wrote: > Ilo Lorusso wrote: >> Hi >> >> >> is their a way I can reject messages when its from address does not >> match the envelope

Re: filtering mail

2009-02-11 Thread Michael Katz
Ilo Lorusso wrote: > Hi > > > is their a way I can reject messages when its from address does not > match the envelope from address? Doing that will drop tons of legit email. Mike Katz http://messagepartners.com > > using postfix ofcourse > > > Thanks > > Regards > > > Ilo > > >

Re: filtering mail

2009-02-11 Thread Erwan David
On Wed, Feb 11, 2009 at 03:21:39PM CET, Ilo Lorusso said: > Hi > > > is their a way I can reject messages when its from address does not > match the envelope from address? > > using postfix ofcourse Bad idea. I'm just answering anemail with header from Ito Lorusso and envelop from owner-postfi