Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member beddo's Avatar
    Join Date
    Jan 2007
    Location
    England
    Posts
    145
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default SMTP Mail forwarding instead of MX?

    Hi folks,
    I'm asking about something which Cpanel doesn't do by default (that I can see) but would be a very good feature as far as I am concerned.

    For mail hosting at the moment, Cpanel provides two options:

    1) Accept the mail on the server and hold for POP/IMAP collection
    2) Set the MX record to point somewhere else.

    I used to work for an ISP who provided a different form of mail hosting. This option means that mail comes into the server. An attempt is then made to forward the message on to the destination IP address, if this fails it is held for retry. In the case of the provider I worked for, retries would ocurr at fixed intervals or when the customer issued a finger request from the destination IP address.

    This has the advantage of putting the messages through spam and antivirus filtering, and also that messages aren't rejected if the customer's ADSL goes down.

    So is this option available in CPanel? If not has anyone developed a solution to set this up?

  2. #2
    Member
    Join Date
    Jul 2007
    Posts
    12

    Default

    This is something I am looking to do but haven't a clue how to do it

  3. #3
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Some would call that "ETRN" - especially old Sendmail folks. It's nice in theory, but unless your spam filtering MX knows the actual email accounts that exist on the destination server, it has to accept ALL mail for that domain (legitimate, nonlegitimate, specifically addressed and nonexistent alike). As soon as somebody sends a gazillion messages to every guessible name @domain, the server suddenly dies because of the extreme load - again because it has to accept mail for ALL email addresses (existent or not) and then try to forward them.

    Your scenario would mean:
    I could send 20,000 messages to a combination of email addresses @domain.com (none of which exist) - the server would have to accept them all, spam-process all of them, then try to forward them to the recipient mail server. If the recipient mail server is down, your mail spool gets HUGE and your machine dies (if it hasn't already died from the spam processing). If your server then sends the mail to the recipient server and only 1 out of the 20,000 email addresses is a valid email address, the recipient mail server rejects the messages, forcing your system to generate bounce messages back to the 19,999 senders (most likely forged).

    So you have HUGE spam processing load, HUGE amounts of spam to nonexistent email addresses which have to get processed, HUGE numbers of bounces, blacklisted MX, etc., etc.

    ETRN was smart 15 years ago - but times have changed. The only way you shoudl attempt to have a 'backup' MX is if the backup MX truly knows of the existence of ALL email accounts on the recipient server so that it can properly reject incoming email send to nonexistent_addresses@recipient_domain.com.

    Mike

  4. #4
    Member beddo's Avatar
    Join Date
    Jan 2007
    Location
    England
    Posts
    145
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    That's the beast, I'd forgotten everything about what it was called except the name of the server it used to run on. To be honest, the majority of domains on our server don't receive a silly enough amount of traffic to cause problems. Infact the ones that are currently in need of this service except all mail to a catchall to be collected via an exchange pop3 collector or equivalent so they would be subject to exactly the same issues.

    Its worth bearing in mind for heavy traffic domains but it would still be an extremely useful tool so I'll look into it if I actually get a few spare minutes sometime soon!

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You can use an exim smart router to do this very easily:

    http://forums.cpanel.net/showthread.php?t=18201
    Jonathan Michaelson

    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

  6. #6
    Member SageBrian's Avatar
    Join Date
    Jun 2002
    Location
    NY/CT (US)
    Posts
    386

    Default

    Quote Originally Posted by beddo View Post
    Its worth bearing in mind for heavy traffic domains but it would still be an extremely useful tool so I'll look into it if I actually get a few spare minutes sometime soon!
    ANY domain can get hit with a wave of spam. It doesn't matter if they usually get only 2 emails a day. Spammers don't care.
    They simply go through a list of domain names, and send a dictionary attack sending emails to every name that has ever existed since dinosaurs were around.

    If you haven't been hit by one yet, you are either lucky, or you have settings to prevent a dictionary attack.

    As for catch-all mailboxes, there's enough written about how bad they are.
    For those accounts that need to use their exchange server, but want the benefit of the spam filtering, I have them use the POP3 retrieval, but then I also have them setup up forwards for each mailbox they have in exchange. This allows my server to reject any misaddressed emails.

  7. #7
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by beddo View Post
    That's the beast, I'd forgotten everything about what it was called except the name of the server it used to run on. To be honest, the majority of domains on our server don't receive a silly enough amount of traffic to cause problems. Infact the ones that are currently in need of this service except all mail to a catchall to be collected via an exchange pop3 collector or equivalent so they would be subject to exactly the same issues.

    Its worth bearing in mind for heavy traffic domains but it would still be an extremely useful tool so I'll look into it if I actually get a few spare minutes sometime soon!
    Just so you know - When we have a customer who absolutely needs to use us as the primary MX but they are using a local mail server on their LAN, if they want to have a catchall alias we forbid it.

    Instead, we tell them - set up one POP3 account, and then set up a forwarder for each valid email account you want to receive email for and forward it to the POP3 account. This way our servers still only have to accept mail for valid addresses.

    Of course, we also notify them that if they add or remove email addresses on their Exchange server (or whatever mail server they are using on their LAN), then they need to also add or remove the corresponding email address on our server.

    Mike

  8. #8
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by SageBrian View Post

    As for catch-all mailboxes, there's enough written about how bad they are.
    For those accounts that need to use their exchange server, but want the benefit of the spam filtering, I have them use the POP3 retrieval, but then I also have them setup up forwards for each mailbox they have in exchange. This allows my server to reject any misaddressed emails.
    Exactly... I posted my last response before I read yours, so I ended up repeating what you said... This definitely works well enough, if one must do it at all.

    Mike

  9. #9
    Member SageBrian's Avatar
    Join Date
    Jun 2002
    Location
    NY/CT (US)
    Posts
    386

    Default

    Quote Originally Posted by mtindor View Post
    Exactly... I posted my last response before I read yours, so I ended up repeating what you said... This definitely works well enough, if one must do it at all.

    Mike
    Yes. But you wrote it so much betterer.

Similar Threads & Tags
Similar threads

  1. SMTP Forwarding
    By rogerwilliams in forum New User Questions
    Replies: 2
    Last Post: 09-13-2009, 08:29 AM
  2. SMTP email copy forwarding
    By IndicHosts.net in forum E-mail Discussions
    Replies: 2
    Last Post: 11-14-2006, 10:54 PM
  3. MX/SMTP Forwarding with Backup
    By DReade83 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-22-2006, 02:25 PM
  4. SMTP Forwarding
    By hon in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-19-2005, 10:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube