1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Opening up SMTP on port 26

Discussion in 'Plesk for Linux - 8.x and Older' started by teren, Aug 19, 2005.

  1. teren

    teren Guest

    0
     
    Hi All,
    I have a client that would like port 26 open on SMTP so that he can use my servers as his mail server since his ISP blocks port 25. Is there a simple way to do this or can somebody give me an idea? I'm really only familiar with BSD and PF, so i'm somewhat lost with IP Tables ans such
    (Server is Plesk 7.5.3 Fedora Core 2)

    Thanks
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Easy Alternate Port, but not port 26

    If you want a really EASY and simple alternate port, you can copy and edit a single file which will allow your clients to send outgoing SMTP email on port 587. These instructions assume you are running some version/flavor of Redhat Linux.

    Step 1: Duplicate the /etc/xinetd.d/smtp_psa file
    Step 2: Edit the smtp_additional file
    Step 3: Restart xinetd
    Step 4: Test sending email to your server on port 587 instead of port 25. Have your clients reconfigure Outlook or whatever their email client software to use port 587 instead of port 25.

    I'm sure there are other ways, but I have found this to be the easiest to implement and maintain on the server. The client just reconfigures for port 587 instead of 26, either way they have to make a port change regardless.

    This change has no effect on the normal port 25, so your other clients without ISP port blocking, can still use port 25.
     
  3. teren

    teren Guest

    0
     
    Thanks,
    WIth that informail been said, for anybody else wanting to do so....all you have to do is define a new service in /etc/services and then instead of using 'submission' like above just use whatever you name the new service (ex smtp2) and you can run on whatever port you want and avoid conflictions. Thanks a lot, teamwork rocks:)
     
  4. memphishost

    memphishost Guest

    0
     
    Port 587

    You could have used port 465 and selected SSL.

    Qmail listens to both port 25 and 465.


    :D

    Beats editing files. :rolleyes:
     
  5. mannyd

    mannyd Guest

    0
     
  6. zymsys

    zymsys Guest

    0
     
    I just add this to my rc.local:
    Code:
    /sbin/iptables  -t nat -I PREROUTING -p tcp --dport 26 -j REDIRECT --to-port 25
    
    I'm running this way on 4 servers.
     
Loading...