Re: Reverse smtpd_sender_login_maps

2020-10-07 Thread Vieri Di Paola
On Wed, Oct 7, 2020 at 2:34 PM Tom Sommer wrote: > > So SASL user "t...@example.com" would be able to send only from > "@example.com". smtpd_sender_login_maps = pcre:/etc/postfix/login_maps.pcre content of /etc/postfix/login_maps.pcre: /^(.*)@your(own)?domain\.org$/ ${1} This would force sasl

authenticated users from different networks

2020-10-06 Thread Vieri Di Paola
Hi, I am currently allowing "trusted" network IP addresses to send/relay e-mail, as well as allowing SASL authenticated users to do the same from whichever IP address (but enforcing MAIL FROM to be username@mydomain). Both of these can send/relay e-mails to external domains. Now, I'd like to do t

Re: sasl authentication and RCPT TO

2020-10-04 Thread Vieri Di Paola
On Sun, Oct 4, 2020 at 8:25 PM Wietse Venema wrote: > > Output from "postconf -n" may reveal that your cut-and-paste is > incorrect. # postconf -n postconf: warning: /etc/postfix/main.cf, line 746: overriding earlier entry: smtpd_tls_auth_only=yes biff = no broken_sasl_auth_clients = yes command_

sasl authentication and RCPT TO

2020-10-04 Thread Vieri Di Paola
Hi, I'm trying to allow all hosts with IP addr. in permit_mynetworks to send e-mails to external domains without authentication. On the other hand, I want to allow sasl-authed clients to send emails to external domains. I have this: # grep sasl /etc/postfix/main.cf smtpd_sasl_auth_enable = yes s

Re: postfix and bounced email (loops back to myself)

2020-04-17 Thread Vieri Di Paola
On Thu, Apr 16, 2020 at 7:07 PM Viktor Dukhovni wrote: > > > # postconf -Mf > > smtp unix - - n - - smtp > > relay unix - - n - - smtp > > Please add: > > smtpv unix - - n - - smtp -v > >

Re: postfix and bounced email (loops back to myself)

2020-04-16 Thread Vieri Di Paola
On Thu, Apr 16, 2020 at 3:12 AM Viktor Dukhovni wrote: > > On Thu, Apr 16, 2020 at 02:58:44AM +0200, Vieri Di Paola wrote: > > > > > The collate script seems to confirm that the non-delivery > > > > notifications have been sent out. I rest assured. >

Re: postfix and bounced email (loops back to myself)

2020-04-15 Thread Vieri Di Paola
On Thu, Apr 16, 2020 at 2:03 AM Viktor Dukhovni wrote: > > On Thu, Apr 16, 2020 at 01:40:42AM +0200, Vieri Di Paola wrote: > > > On Thu, Apr 16, 2020 at 12:35 AM Viktor Dukhovni > > wrote: > > > > > > Not all log messages carry the queue-id. Use the co

Re: postfix and bounced email (loops back to myself)

2020-04-15 Thread Vieri Di Paola
On Thu, Apr 16, 2020 at 12:42 AM Wietse Venema wrote: > > You need to find out why 10.0.0.10 matches inet_interfaces or > proxy_interfaces. Because that is why Postfix complains. > > Someting in /etc/hosts? # grep -v ^# /etc/hosts 127.0.0.1 localhost ::1 localhost I guess I on

Re: postfix and bounced email (loops back to myself)

2020-04-15 Thread Vieri Di Paola
On Thu, Apr 16, 2020 at 12:35 AM Viktor Dukhovni wrote: > > Not all log messages carry the queue-id. Use the collate.pl script > to find any other pertinent log messages from 'smtp[13093]'. The collate script seems to confirm that the non-delivery notifications have been sent out. I rest assured

Re: postfix and bounced email (loops back to myself)

2020-04-15 Thread Vieri Di Paola
On Wed, Apr 15, 2020 at 6:18 PM Wietse Venema wrote: > > You may want to check this: > > $ postconf transport_maps > > Output should list /etc/postfix/transport > > $ postmap -q mydomain.org /etc/postfix/transport > > Output should show mydomain.org smtp:[10.0.0.10] # postconf transpo

Re: postfix and bounced email (loops back to myself)

2020-04-15 Thread Vieri Di Paola
On Wed, Apr 15, 2020 at 6:13 PM Wietse Venema wrote: > > Vieri Di Paola: > > On Wed, Apr 15, 2020 at 3:35 PM Wietse Venema wrote: > > > > > > Vieri Di Paola: > > > > Hi, > > > > > > > > I'm using postfix as an smtp filter (an

Re: postfix and bounced email (loops back to myself)

2020-04-15 Thread Vieri Di Paola
On Wed, Apr 15, 2020 at 3:35 PM Wietse Venema wrote: > > Vieri Di Paola: > > Hi, > > > > I'm using postfix as an smtp filter (antispam) which then forwards the > > messages to another mail server with user mailboxes. > > > > This server has privat

postfix and bounced email (loops back to myself)

2020-04-15 Thread Vieri Di Paola
Hi, I'm using postfix as an smtp filter (antispam) which then forwards the messages to another mail server with user mailboxes. This server has private IP addr. 10.0.0.1, and the mailbox server has private IP addr. 10.0.0.10. So, external e-mails are first received by this filter and then forward