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.

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
tml>, the section on "Filtering mail > from outside users only" and I am befuddled. > > Am I correctly understanding that this recipe requires three > smtp ... > entries in master.cf? > > Where can I find documentation for 1.2.3.4:smtp and 1.2.3.5:smtp? > > - Vicki >

Filtering mail from outside users only

2015-11-18 Thread Vicki Brown
I am reading http://www.postfix.org/FILTER_README.html <http://www.postfix.org/FILTER_README.html>, the section on "Filtering mail from outside users only" and I am befuddled. Am I correctly understanding that this recipe requires three smtp ... entries in master.cf?

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

Filtering mail from insider users only

2015-08-23 Thread 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. Thanks, Rob Morton

Filtering mail from inside users only

2010-02-21 Thread Gmail-teopro
Hello all, I try a solution to insert a counter number into the Subject line for any message leaving the email server(sent by a local client through local interface). I used the example shown at http://www.postfix.org/FILTER_README.html but the counter appears in every message hitting the email

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.

filtering mail from outside with dynamic address

2009-08-11 Thread Florin Andrei
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. I'm using Amavisd-new with SpamAssassin and a bunch of other things to filter email. Currently all email is filtered by Amavis. But I want to only f

Re: About filtering mail with mailq

2009-02-13 Thread mouss
deconya a écrit : > Hi > > Im new postfix and Im learning how to use. My first problem is about the > spam because in my server are incoming mails with my domain but using > bad adresses and making copy to the aol.com domain. Im > making: > > #postqueue -p | grep ' Feb @aol.c

Re: About filtering mail with mailq

2009-02-13 Thread Charles Marcus
On 2/13/2009 6:36 AM, deconya wrote: > Im new postfix and Im learning how to use. My first problem is about the > spam because in my server are incoming mails with my domain but using > bad adresses and making copy to the aol.com domain. Im > making: Don't accept messages for inva

About filtering mail with mailq

2009-02-13 Thread deconya
Hi Im new postfix and Im learning how to use. My first problem is about the spam because in my server are incoming mails with my domain but using bad adresses and making copy to the aol.com domain. Im making: #postqueue -p | grep ' Feb @aol.com' | sed 's/*//' | awk '{print $1}' >spam.txt but

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

filtering mail

2009-02-11 Thread Ilo Lorusso
Hi is their a way I can reject messages when its from address does not match the envelope from address? using postfix ofcourse Thanks Regards Ilo

Re: Info on Filtering Mail based on subdomain

2008-12-08 Thread mouss
Mark A. Olbert a écrit : > Log info: > > Dec 8 07:03:23 wiggle_butt postfix/pickup[13057]: 132802741F3: uid=0 > from= > Dec 8 07:03:23 wiggle_butt postfix/cleanup[13064]: 132802741F3: > message-id=<[EMAIL PROTECTED]> > Dec 8 07:03:23 wiggle_butt postfix/qmgr[13058]: 132802741F3: from=<[EMAIL

RE: Info on Filtering Mail based on subdomain

2008-12-08 Thread Mark A. Olbert
to see life as it is and not as it should be." -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dario "subbia" Cavallaro Sent: Monday, December 08, 2008 7:24 AM To: mouss Cc: postfix-users@postfix.org Subject: Re: Info on Filtering Mail based

Re: Info on Filtering Mail based on subdomain

2008-12-08 Thread Dario "subbia" Cavallaro
mouss ha scritto: can you show the contents of transport_maps? And the content of alias map? As far as I can remember I had a similar error and IU had made two mistakes: 1) listed in transport the domain and the destination; 2) no alias set in aliases; And last but not least, there was no o

RE: Info on Filtering Mail based on subdomain

2008-12-08 Thread Mark A. Olbert
ma.comlocal: localhostlocal: # put in to support mailman list.arcabama.commailman: - Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mouss Sent: Sunday, December 07, 2008 11:30 PM To: postfix-users@postfix.org Subject: Re: Info

Re: Info on Filtering Mail based on subdomain

2008-12-07 Thread mouss
Mark A. Olbert a écrit : > Sorry about the line endings. Let me try again: > > Error message: > > [EMAIL PROTECTED]:/etc/postfix# mailq > -Queue ID- --Size-- Arrival Time -Sender/Recipient--- > 140DC2741FE 459 Sun Dec 7 17:57:07 [EMAIL PROTECTED] > (host 127.0.0.1[127.0.0.1] sa

RE: Info on Filtering Mail based on subdomain

2008-12-07 Thread Mark A. Olbert
ddest of all - -to see life as it is and not as it should be." -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark A. Olbert Sent: Sunday, December 07, 2008 4:35 PM To: postfix-users@postfix.org Subject: RE: Info on Filtering Mail based on subdo

RE: Info on Filtering Mail based on subdomain

2008-12-07 Thread Mark A. Olbert
s and not as it should be." -Original Message- From: mouss [mailto:[EMAIL PROTECTED] Sent: Sunday, December 07, 2008 4:56 PM To: Mark A. Olbert Cc: postfix-users@postfix.org Subject: Re: Info on Filtering Mail based on subdomain Mark A. Olbert a écrit : > That almost makes sens

Re: Info on Filtering Mail based on subdomain

2008-12-07 Thread mouss
Mark A. Olbert a écrit : > That almost makes sense, even in my ignorant state. Please bear with me. > > I'm pretty sure I've overridden local because I use maia mailguard, which > re-injects email into the mail processing queue after running it through > amavisd/spamassassin. Here are the additi

RE: Info on Filtering Mail based on subdomain

2008-12-07 Thread Mark A. Olbert
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mouss Sent: Sunday, December 07, 2008 4:12 PM To: postfix-users@postfix.org Subject: Re: Info on Filtering Mail based on subdomain Mark A. Olbert a écrit : > I recently installed Exchange as my mail server, with postfix on a linux box > servi

Re: Info on Filtering Mail based on subdomain

2008-12-07 Thread mouss
Mark A. Olbert a écrit : > I recently installed Exchange as my mail server, with postfix on a linux box > serving as an anti-spam front end. This works great for all my regular mail. > > However, I'm having trouble figuring out how to integrate mailman into the > setup. Previously, when mail del

Info on Filtering Mail based on subdomain

2008-12-07 Thread Mark A. Olbert
I recently installed Exchange as my mail server, with postfix on a linux box serving as an anti-spam front end. This works great for all my regular mail. However, I'm having trouble figuring out how to integrate mailman into the setup. Previously, when mail delivery took place on my linux box wi