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

2018-04-14 Thread Christos Chatzaras
Thank you for your reply and tips :-) > > Your content_filter only applies to MX mail on port 25. > Yes I want to use bogofilter only for incoming mails from other mail servers. It's configured with a global sieve rule to move spam e-mails to Spam folder for each mailbox. Dovecot is configur

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

2018-04-14 Thread /dev/rob0
On Sat, Apr 14, 2018 at 05:17:09AM +0300, Christos Chatzaras wrote: > 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 setu

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 same host, then yes, 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 on

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 r