Hi all:
1 week ago, i setup a server with mailcleaner, who filters a lot of spam mail.

I wish to protect Cpanel servers from external spammers, with something like that:

Create a file like /etc/exim/incoming-mail-gateway, like that:

domain1.com: IP1_OF_GATEWAY,IP2_OF_GATEWAY,IP3_OF_GATEWAY
domain2.com: IP1_MESSAGELABS,IP2_MESSAGELABS,IP3_MESSAGELABS

And a file like /etc/exim/outgoing-mail-gateway, like that:
domain1.com: IP1_OUTBOUND_GATEWAY,IP2_OUTBOUND_GATEWAY
domain2.com: IP1_OUTBOUND_MESSAGELABS

And, exim, should work like:
  • Mails from others servers, should come from antispam gateway, or show a "Error: you should use our gateway" error
  • Mails from antispam gateway should accept, and deliver as usual.
  • Mails from authenticated user work as always
  • All mail ( valid users or php scripts ) should send to gateway, to perform a virus and spam check

I check on "messagelabs" and "postini" threads, but i cann't get it works. Anobody who can help me ?

Also, maybe it be a good cpanel option to a future version.

Thanks in advance.