1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    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

    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)

  2. jamesyeeoc

    jamesyeeoc Guest

    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

    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

    Port 587

    You could have used port 465 and selected SSL.

    Qmail listens to both port 25 and 465.


    Beats editing files. :rolleyes:
  5. mannyd

    mannyd Guest

  6. zymsys

    zymsys Guest

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