Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Sendmail Configuation File

Discussion in 'E-mail Discussion' started by fdnet, Jul 19, 2007.

  1. fdnet

    fdnet Member

    Joined:
    May 5, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    Does anyone know where the sendmail configuration file is. I tried to look for the file and i cannot see it!

    Thanks
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    There isn't one on cPanel as cPanel servers use exim as the MTA. You can configure it further if you want through WHM > Exim Configuration Editor > Advanced mode. You'll probably want to look at http://www.exim.org to help with whatever it is you want.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. fdnet

    fdnet Member

    Joined:
    May 5, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    i want to be able to relay all messages through another mail server. Is that possible with Exim?
     
  4. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Dallas, TX
    Just Came Up

    I have a client looking to do this as well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. keddie

    keddie Well-Known Member

    Joined:
    Nov 17, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    56
    I also need to relay all mail through a remote mail server, I was hoping to use the SMART_HOST setting in sendmail to achieve this.

    Does anyone know how to achieve the same result with Exim?
     
  6. keddie

    keddie Well-Known Member

    Joined:
    Nov 17, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    56
    Solution

    Ok, after some further digging around on this forum and from reading the Exim FAQ I have found an easy solution.

    Apparantly in WHM, sendmail config is little more than a pointer to the Exim MTA which does all the mail routing duties.

    To redirect all non local domains to a smart host:

    1) Login to WHM as root
    2) Under Service Configuration, click: "Exim Configuration Editor"
    3) Scroll to the bottom and click "Advanced Editor" (usual rules of care apply)
    4) Locate the ROUTERS CONFIGURATION section, notice under the router config for democheck: there is an editable box
    paste in the following:

    #This router relays all mail to mail.domain.com for onward routing
    send_to_gateway:
    driver = manualroute
    domains = !+local_domains
    transport = remote_smtp
    route_list = * mail.domain.com

    5) Save the config and off you go.

    References:
    Setting up Smart Host for an account
    Q0304: How do I configure Exim to send all non-local mail to a gateway host?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice