Re: Relay mail from virtual domains and issue when the sender and recipient is on same server

2018-04-13 Thread Viktor Dukhovni
> On Apr 14, 2018, at 12:23 AM, Christos Chatzaras wrote: > > I think the only way to fix this is to have 2 postfix instances, right? One > for incoming and one for outgoing. If you want to round-trip mail through an external SMTP server, and then bring it back to the

Re: Relay mail from virtual domains and issue when the sender and recipient is on same server

2018-04-13 Thread Christos Chatzaras
More info to make it clearer: The 'relay denied' I wrote in my previous is not in smtp.example.com logs. E-mail from u...@example.com to u...@example.com : -- client (1) --> server1.example.com (2) --> smtp.example.com (3) --> server1.example.com (4) -- The 'relay denied' message is

Relay mail from virtual domains and issue when the sender and recipient is on same server

2018-04-13 Thread Christos Chatzaras
What I want to do: I want to disable local delivery for e-mails from virtual domains / mailboxes when sender / recipient is on same server. I want these e-mails to pass through a relay. -- My setup : I have postfix and dovecot on server1.example.com and smtp.example.com acts as

Re: problem with sending emails from second IP'

2018-04-13 Thread Wietse Venema
Viktor Dukhovni: > > > > On Apr 13, 2018, at 7:25 AM, Poliman - Serwis wrote: > > > > Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal: > > smtp_connect_addr: bad smtp_bind_address parameter: > > 54.38.202.128,: Name or service not known > > That "," there looks like it

Re: problem with sending emails from second IP'

2018-04-13 Thread Viktor Dukhovni
> On Apr 13, 2018, at 7:25 AM, Poliman - Serwis wrote: > > Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal: > smtp_connect_addr: bad smtp_bind_address parameter: > 54.38.202.128,: Name or service not known That "," there looks like it does not belong. Something's wrong

Re: problem with sending emails from second IP'

2018-04-13 Thread Poliman - Serwis
Thank you for answer. About 1st: root@s1:/tmp/roundcubemail-1.3.6# ifconfig ens3 Link encap:Ethernet HWaddr fa:16:3e:21:c7:80 inet addr:145.239.29.218 Bcast:145.239.29.218 Mask:255.255.255.255 inet6 addr: fe80::f816:3eff:fe21:c780/64 Scope:Link UP BROADCAST

Re: problem with sending emails from second IP'

2018-04-13 Thread Wietse Venema
Poliman - Serwis: > Strange thing. Google says "spf=pass", mailing works but in mail.err file I > have: > > Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal: smtp_connect_addr: bad > smtp_bind_address parameter: 54.38.202.128,: Name or service not known > Apr 12 11:49:00 s1 postfix/smtp[13190]:

Re: problem with sending emails from second IP'

2018-04-13 Thread Poliman - Serwis
Strange thing. Google says "spf=pass", mailing works but in mail.err file I have: Apr 12 11:48:09 s1 postfix/smtp[12985]: fatal: smtp_connect_addr: bad smtp_bind_address parameter: 54.38.202.128,: Name or service not known Apr 12 11:49:00 s1 postfix/smtp[13190]: fatal: smtp_connect_addr: bad

Re: Postfix [Postfwd2 error]

2018-04-13 Thread Bill Cole
On 12 Apr 2018, at 18:20, Viktor Dukhovni wrote: On Apr 12, 2018, at 5:57 PM, Bill Cole wrote: postfwd2/policy[4807]: warning: Complex regular subexpression recursion limit (32766) exceeded at /opt/postfix/postfwd/sbin/postfwd2 line 1168, <$fh>