The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

forwarding mail to extern mailserver/IP

Discussion in 'E-mail Discussions' started by Morgana, Mar 13, 2003.

  1. Morgana

    Morgana Active Member

    Joined:
    Jan 16, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    A client wants to redirect all his mail to an extern mailserver.

    In WHM I changed the mail record to:
    mail-14400 in A xxx.xx.xx.xxx (ip adres of the extern mailserver),

    but the mail doesnot go to the extern mailserver. Can someone please advise if I did this good/wrong?

    Thanks,
    Bryan
     
  2. KeepeR

    KeepeR Member

    Joined:
    Jul 27, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    That is done not in the WHM but in CPanel
    1) go to CPanel of that user, then go to mail/Default Address
    and set up his external email as defoult
    2) go to mail/Forwarders and setup all accounts to forward to his external email

    cPanel.net Support Ticket Number:
     
  3. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    remove the user domain from /etc/localdomains
    and add it to /etc/remotedomains

    The search option in this forums will help you a lot, try it to use it first.

    cPanel.net Support Ticket Number:
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Edit the DNS zone file manually. edit /var/named/domain.com.db

    make sure that the existing MX line is there and isn't malformed. It should look like:


    DOMAIN.COM. 14400 IN MX 0 DOMAIN.COM.

    You will want to change this line to:

    DOMAIN.COM. 14400 IN MX 0 MAIL.DOMAIN.COM.

    Then scroll down the zone file a little more and find:

    mail 14400 IN CNAME DOMAIN.COM.

    replace it with

    mail 14400 IN A IP.OF.EXT.MAIL.SERVER

    * Be sure to place trailing dots where required.

    Now scroll back to the top and change the serial. Right now it should be a random number, remove that number and replace it with:

    2003081601

    Save & close your zone file now. Then issue as root: ndc reload

    Next edit /etc/localdomains and search for the domain that has the external mail server. You should remove all instances of DOMAIN.COM from the localdomains file. Save & close once you're done and that's it.

    cPanel.net Support Ticket Number:
     
  5. Cinquecento

    Cinquecento Member

    Joined:
    Mar 29, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Loughborough UK
    Thanks CipherVendor!

    .. or can I call you Cipher?

    If you've got a moment - could you explain what exactly is going on when these files are modified.... this is for bluffers like me who would like to actually understand the mechanisms at play.

    I guess the localdomain file tells the server to route traffic internally? And the random number - it looks like a date reference - but is it, and why change it??

    Ian
     
Loading...

Share This Page