Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2009
    Posts
    5

    Default SMTP Relay on port 26

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #3
    Member
    Join Date
    Jun 2009
    Posts
    5

    Default

    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 Thumbnails Attached Thumbnails SMTP Relay on port 26-cpan1.png  
    Last edited by webcave; 06-17-2009 at 06:40 PM.

  4. #4
    Member
    Join Date
    Jun 2009
    Posts
    5

    Default

    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 Code:
    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 Code:
     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 Code:
    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
    Last edited by webcave; 06-19-2009 at 07:17 AM.

Similar Threads & Tags
Similar threads

  1. SMTP relay to Barracuda?
    By fizz in forum E-mail Discussions
    Replies: 3
    Last Post: 01-18-2011, 06:49 AM
  2. SMTP Relay
    By grayloon in forum E-mail Discussions
    Replies: 2
    Last Post: 12-27-2007, 12:14 PM
  3. Relay mail, port 26
    By stwman11 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-09-2006, 11:56 AM
  4. SMTP Port 26 (extra exim port) Cron Reset?
    By EcpHosting in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-04-2003, 01:34 AM
  5. SMTP relay from an IP address
    By moronhead in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-16-2002, 11:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube