Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > Mail

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-20-2007, 01:37 AM
Registered User
 
Join Date: May 2007
Posts: 111
meeven is on a distinguished road
Setting up email filtering for externally hosted domains?

I posted this on webhostingtalk.com (didn't get a response), but I should have probably posted here first as I am using cPanel/WHM.

I have a VPS with MailScanner (from configserver.com) set up for anti-virus/anti-spam. Now, every now and then, I get enquiries from people who only want spam/virus filtering without physically moving their hosting accounts to me.

It would seem that this is easy enough to accomplish by changing the MX records for those externally hosted domains to point to my MX servers. I myself use such a service from LuxSci.com.

However, I am unable to accomplish this on my VPS which runs cPanel/WHM. I changed the MX record for that domain to point to my mailserver, added the domain in question to /etc/localdomains on the VPS, but whenever I send an email from that domain to accounts on my VPS, they are rejected with the message:

Quote:
550-Verification failed for
<testaccount@domain.com>
550-Unrouteable address
550 Sender verify failed
Interestingly, the same email sent to my gmail account has been delivered on every occasion. I checked that external domain on dnsstuff.com and it reports perfect records for all the MX tests.

Does anyone have an idea what I am doing wrong?

Thanks,
Meeven
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-20-2007, 06:09 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
Looks like you're missing the last component of the link. If you have the MX record pointing to your server then you either have to park that domain against an account (or create an account) and then create mailboxes for the domain. Or, you need to forward the email on after scanning to the recipients mail server using an exim smart router:
Mailertable equi

The latter is the usual way to achieve this.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-20-2007, 08:52 AM
Registered User
 
Join Date: May 2007
Posts: 111
meeven is on a distinguished road
Thanks!

My host did it for me by turning off sender verification in Exim configuration and it worked. I didn't have to physically create an account for that domain on the server running MailScanner or create the mailboxes. They said
Quote:
Basically 'Sender Verification' is an Exim option to not accept mail from remote hosts that do not have port 25 open. For example, if you get mail from jim@yahoo.com, and yahoo.com does not have a mailserver running on it, Exim will discard it.
Now, I am not sure if this means my server is open to mail relay attacks or whether I am opening up my server to more spam because it seems this is a global configuration affecting all domains on the server and not just the one that MailScanner is filtering.

By the way, MailScanner scanned emails from that external domain like a charm and properly delivered them:-)

Last edited by meeven; 07-20-2007 at 08:53 AM. Reason: Added content
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-20-2007, 09:23 AM
Registered User
 
Join Date: May 2007
Posts: 111
meeven is on a distinguished road
Quote:
Originally Posted by chirpy View Post
Or, you need to forward the email on after scanning to the recipients mail server using an exim smart router:
Mailertable equi

The latter is the usual way to achieve this.
This seems more sensible that turning off sender verification in exim for all the domains on the server. If I used the exim smart router, I would't have to turn off sender verification in the MTA, right?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:52 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc