Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2007
    Posts
    114

    Default Direct mail traffic to certain ports?

    Is it possible in cPanel/WHM to direct mail traffic for certain domains to one port and for other domains on another port?

  2. #2
    Member WebScHoLaR's Avatar
    Join Date
    Dec 2005
    Location
    Planet Earth
    Posts
    506

    Default

    AFAIK, cPanel/WHM doesn't offer any such feature.

    Regards,
    WebScHoLaR

    WebHosting Blog: http://WebScHoLaR.net

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by meeven View Post
    Is it possible in cPanel/WHM to direct mail traffic for certain domains to one port and for other domains on another port?
    Can you elaborate on what you mean by "mail traffic." Are you talking about SMTP, IMAP, POP3, Webmail ...? By "another port" do you mean plain text vs. SSL port or something else?

    If you can provide some information on what you intend to accomplish, perhaps we may be able to help you.

  4. #4
    Member
    Join Date
    May 2007
    Posts
    114

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Can you elaborate on what you mean by "mail traffic." Are you talking about SMTP, IMAP, POP3, Webmail ...? By "another port" do you mean plain text vs. SSL port or something else?
    Thanks for asking and sorry for the lack of details.

    I meant incoming mail for domains on a cPanel VPS. The problem I am facing at the moment is that some clients who take hosting with me use a third party spam filtering service. However, they also find spammers bypassing the filtering by sending directly to their mail servers. To avoid this, they ask me to lock down incoming mail for their domains to accept incoming email only from the specific IP addresses that do the filtering.

    The issue is that, if I do this, other domains on the VPS will have their incoming mail blocked. I was wondering if there might be a way in Exim to specify certain domains (the ones using the filtering service) to use specific ports - meaning, Exim would run on those additional ports - and have the non-filtering domains run on the regular Port 25.

    I could then set a rule in the firewall to deliver incoming mail for specific domains to the additional port on which Exim is running. Ideally, it would be great to do this in Exim itself instead of the firewall.
    Last edited by meeven; 04-28-2009 at 11:25 AM. Reason: addition

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by meeven View Post
    Thanks for asking and sorry for the lack of details.

    I meant incoming mail for domains on a cPanel VPS. The problem I am facing at the moment is that some clients who take hosting with me use a third party spam filtering service. However, they also find spammers bypassing the filtering by sending directly to their mail servers. To avoid this, they ask me to lock down incoming mail for their domains to accept incoming email only from the specific IP addresses that do the filtering.

    The issue is that, if I do this, other domains on the VPS will have their incoming mail blocked. I was wondering if there might be a way in Exim to specify certain domains (the ones using the filtering service) to use specific ports - meaning, Exim would run on those additional ports - and have the non-filtering domains run on the regular Port 25.

    I could then set a rule in the firewall to deliver incoming mail for specific domains to the additional port on which Exim is running. Ideally, it would be great to do this in Exim itself instead of the firewall.
    You could easily have Exim running on an additional port by going to WHM -> Service Configuration -> Service Manager and enabling the option for "exim on another port."

    However, the trick would be to filter the messages such that incoming mail over port 25 do not reach the client's email accounts.

    Something you may want to keep in mind is some servers do sender verify checks to curb spam. If you block port 25 traffic, sender verify could fail and messages sent from emails where port 25 is blocked may fail to reach their destination.

  6. #6
    Member
    Join Date
    May 2007
    Posts
    114

    Default

    Thank you, cPanelDavidG

    I got some help on the exim mailing lists and here is the suggested ACL:

    What about something like:

    deny
    message = only accept messages from certain servers
    domains = LIST of DOMAINS or a database or a file
    hosts = ! LIST of IPs or a database or a file

    Basically, you have a list of domains that use each 3rd party filtering
    service. You have a corresponding list of the IPs used by that 3rd
    party filtering service. Deny if the recipient is on a 3rd party
    service but the incoming IP is not in the IP list for that 3rd party
    service.

    The list could be in a flat file or a database or if it's short enough,
    you could just put it in the exim config. How you store the list would
    determine how you query it in the ACL.

    BTW, you would put these ACLs in the acl_smtp_rcpt section.
    I checked the Exim configuration editor and there is only one line that contains acl_smtp_rcpt. The bigger problem is that I don't know the correct syntax for making this suggested ACL work - I can't possibly put those three lines into the Exim config editor and hope for it to work. It's more likely to bring the whole server crashing down.

    Is there someone here who could fill out this ACL for me? Or is this something for which I can submit a ticket to cPanel ?

Similar Threads & Tags
Similar threads

  1. Mail Ports
    By Peoplespaces in forum New User Questions
    Replies: 1
    Last Post: 01-12-2010, 08:26 PM
  2. Traffic Limit Warning Mail for Reseller
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-28-2006, 03:27 PM
  3. Replies: 2
    Last Post: 08-22-2005, 09:52 PM
  4. e-mail forwarding traffic
    By NNNils in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-25-2003, 07:57 AM
  5. cpanel server count mail traffic?
    By sodapopinski in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-03-2002, 07:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube