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.

SMTP Relay on port 26

Discussion in 'E-mail Discussions' started by webcave, Jun 17, 2009.

  1. webcave

    webcave Member

    Joined:
    Jun 17, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hey,

    I was playing around with the 15day trial version of cpanel and I really like it im planning on buying it. I just have one problem all my mail is relayed through my other location on port 26 rather then port 25 and i cant seem to figure out how i would be able to relay it i tried for hours.

    So say im on this host IP

    71.54.512.564

    now i want to connect to this IP for mail

    71.26.457.456:26

    so i need outgoing connection for mail SMTP Relay/Route on port 26

    any help would be appreciated
    Thanks
    Joe
     
  2. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    You mean for sending email out as a client of the server?

    WHM -> Service manager -> exim on another port

    You can select port 26 there. Make sure you also do not have a firewall blocking 26 anywhere.
     
  3. webcave

    webcave Member

    Joined:
    Jun 17, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    im not trying to do it on a per client basis, or as a client. My ISP blocks port 25 inbound and outbound and my IP is on the mail blacklist so i have a mail server hosted elsewhere and i need to connect to it on port 26 to send all the mail through it i hope you understand ill make a drawing to.

    pretty much i need exim to send my mail through "smtp.domain.com:26" all of the mail any mail that gets sent to the server from clients or anything.

    Here is the drawing note that server #2 does NOT have cpanel on it and it CAN send mail outgoing on port 25
     

    Attached Files:

    #3 webcave, Jun 17, 2009
    Last edited: Jun 17, 2009
  4. webcave

    webcave Member

    Joined:
    Jun 17, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ok well i figured it out after a long while and well i should just help people in the future that may need this :) so heres how i did it open /etc/exim.conf go to the "ROUTERS CONFIGURATION" area. add this at the top

    PHP:
    send_to_gateway:
    driver manualroute
    domains 
    = !+local_domains
    transport 
    remote_smtp
    route_list 
    = * smtp.domain.com:26
    now go to the "TRANSPORTS CONFIGURATION" and comment out the following lines
    PHP:
     remote_smtp:
    driver smtp
    interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
    helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}}
    now add this above

    PHP:
    remote_smtp:
      
    driver smtp
      delay_after_cutoff 
    false
      no_retry_include_ip_address
      port 
    26 
    renember set xim.conf to read only now or cPanel will override it
    should work great :D
     
    #4 webcave, Jun 17, 2009
    Last edited: Jun 19, 2009
Loading...

Share This Page