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.

Need Help with EXIM config using smarthost with ASSP

Discussion in 'E-mail Discussions' started by streigh, Dec 6, 2011.

  1. streigh

    streigh Active Member

    Joined:
    Dec 5, 2006
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    WHM 11.30.5 (build 2)
    CENTOS 5.6 i686 virtuozzo
    ASSP 1.7.1.3(1.0.2)
    ASSP Deluxe for cPanel 4.8.3

    I have SMTP on 25 and 26(alternate)
    i have ASSP on 125 and have the smarthost configured in ASSP on 225

    now - how do i make EXIM route to localhost:225 for all external mail?

    I am running on GoDaddy's virtual hosting, which has outbound port 25 blocked so i have to send all port 25 mail to their smart host .

    I might have actually had it right - but all external mail was bouncing with "551 - user unknown"
    almost looks like the mail actually made it to ASSP, but ASSP cant figure out where to send it.

    Again, not sure if i have a problem with EXIM config, or ASSP config..

    Anyone that's successfully done this please help. Ive had this thing working before, but i lost all the configs after a reprovision, and all the versions updated so i am a little lost.

    Thanks,
     
  2. 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
    You may be able to do this using the following option in exim:

    20. The manualroute router

    This router will route on a port for the specified host when defined. I would highly suggest contacting exim.org on their mailing list to get the exact configuration you would use for this type of routing, though.
     
  3. streigh

    streigh Active Member

    Joined:
    Dec 5, 2006
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    The EXIM configuration for a smarthost i have already - just in case anyone ever finds this thread and needs it here is one:
    smarthost:
    driver = manualroute
    domains = *
    transport = remote_smtp
    route_data = "smartserver.goes.here"


    this also works:
    send_to_smart_host:
    driver = manualroute
    route_list = !+local_domains smartserver.goes.here
    transport = remote_smtp


    what i need to know is how to add ASSP to this server - after cleaning EXIM config and adding
    local_interfaces = 127.0.0.1
    daemon_smtp_ports = 125
    log_selector = +arguments +subject


    do i re-add the smarthost to the EXIM.CONF or do i use the smarthost sections of ASSP? and if I use ASSP how do I get outbound mail to go BACK into assp on port 225.
     
    #3 streigh, Dec 7, 2011
    Last edited: Dec 7, 2011
  4. 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
    The route_list entry is the one I linked to in exim documentation mentioning the port number for manualroute

    Have you read the link I provided and looked at the port section where it talks about route_list?

    Additionally, since you are really asking an ASSP question as it is the one that is going to handle the emails, have you tried posting on their forum at http://sourceforge.net/apps/phpbb/assp/ location?
     
  5. streigh

    streigh Active Member

    Joined:
    Dec 5, 2006
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    I got it working as follows:
    EXIM - clean config then this at top:

    local_interfaces = 127.0.0.1
    daemon_smtp_ports = 125
    log_selector = +arguments +subject


    then under **routers configuration**** add:

    smarthost:
    driver = manualroute
    domains = !+local_domains
    transport = remote_smtp
    route_data = "yoursmart.server.here"


    i am pretty sure the following was necessary for it to work:
    in ASSP config, under relaying set
    Relay Host (relayHost) to
    yoursmart.server.here:PORT(25)
    and
    Relay Port (relayPort) to
    225

    and of course open ports 225,125 to inbound traffic

    I realize this is slightly off topic - i was desperate for help and hopefully if anyone else ends up in the same situation this will help them.

    Seems the moral of the story is you probably know the answer if you just think of the right way to word the question :) - i did anyway.

    and thanks to cPanelTristan, for the link that confirmed i was on the right track
     
    #5 streigh, Dec 7, 2011
    Last edited: Dec 7, 2011
Loading...

Share This Page