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.

How to send mail from specified domains through smarthost?

Discussion in 'E-mail Discussions' started by SoftDux, Feb 18, 2012.

  1. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi all,

    Does anyone know how to send mail from certain specified domains on a cPanel server through a smarthost, but others not?
     
  2. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Can anyone help me with this?
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
  4. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi Tristan,

    That's not quite what I'm looking for. Those instructions merely say that all email to a certain destination needs to go through a smarthost. i.e. all mail to @gmail.com should go through another smarthost.


    Instead, I'm looking for a way to relay all mail from a few specified domains on the cPanel server through a smarthost instead.
     
  5. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Tristan,

    Maybe I should put it differently:

    I need something similar to the option in WHM > Exim Configuration > "Reference /etc/mailips for outgoing SMTP connections" where certain domain's mail is sent from their own IP's. But, I'd like todo something similar, where I can select a few domains on the cPanel server an re-route all their email via a smarthost.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Those instructions aren't for emails to a set destination that I linked. They are for domains on your server and what IP they should route through for all emails they send. It is exactly what you are asking to do from what I can see.

    How about trying it out to see the results and you can then see if it does what you need it to do. That's typically the best way to see if what is being suggested works.

    Again, if it does, I would like to merge or close this duplicate thread.
     
  7. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Tristan, sorry, I should have said: I already tried that method, and that's the results I got.


    When I entered the domain name and remote SMTP IP in that file, mails from that domain on the cPanel server, still sent through the cPanel's mailq

    But, as soon as I replaced the domain name with a destination domain, like hotmail.com or yahoo.com, all mails destined to yahoo.com started routing through the remote SMTP server.
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Since it should work, would you be able to open up a ticket using WHM > Support Center > Contact cPanel or using the link in my signature? Please post the ticket number here for tracking purposes after submitting one. While we do not support customizations such as a smarthost, we should be able to see why it isn't routing properly.
     
  9. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator

    Thanx Tristan, I've submitted a ticket: #2371169
     
  10. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Ok, so cPanel doesn't actually support this, even though you suggest it in the forums...........



     
Loading...

Share This Page