DevHeads.net

Postings by Christos Chatzaras

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

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 relay for server1.example.com. MX for example.com points to server1.example.com so incoming e-mails go to this server. Outgoing e-mails for domains not hosted in server1.example.com go through the relay.

problem with spam

Μy server with IP 178.63.64.86 is blacklisted at <a href="http://cbl.abuseat.org" title="http://cbl.abuseat.org">http://cbl.abuseat.org</a> for stealrat spambot. My mail server is configured to send only e-mail from authenticated users. Also local users (from shell) can't send e-mail and also mail() php function is disabled too. I got this e-mail from hotmail ( <a href="http://pastebin.com/raw.php?i=D6fFDUYH" title="http://pastebin.com/raw.php?i=D6fFDUYH">http://pastebin.com/raw.php?i=D6fFDUYH</a> ) that shows that my mail server send e-mail from <a href="mailto:marcella_sharpe@akrogiali-restaurant.gr">marcella_sharpe@akrogiali-restaurant.gr</a> to <a href="mailto: ... at hotmail dot com"> ... at hotmail dot com</a> , but on the logs there is no entry that e-mail sent to <a href="mailto: ... at hotmail dot com"> ... at hotmail dot com</a> . Any idea what may be the problem ?