• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Qmail SMTP On Alternate Port For FreeBSD

M

MattR@

Guest
Does anyone have any idea how to accomplish Qmail SMTP running on an alternate port for FreeBSD, the copying, /etc/services instructions for RedHat don't work / apply to the FreeBSD install. ANY help would be appreciated.

Matt
 
in /etc/services

smtpXXX NEWPORT/tcp mail #Simple Mail Transfer
smtpXXX NEWPORT/udp mail #Simple Mail Transfer

XXX= somehting unique so its different from just smtp, and NEWPORT is the port you wish to run it on (make sure you dont interfere with anything else)

in /etc/inetd.conf

copy the line that starts:

smtp stream tcp nowait root

and change smtp to smtpXXX

Now simply restart inetd

kill -HUP `cat /var/run/inetd.pid`

and check its running with

telnet localhost NEWPORT
 
Hi Mikk,

The posted solution allows Qmail to listen on both port 25 and newport for SMTP connections, or it only substitutes port 25 with newport ?

Thanks
 
Problem

Ok.. everythings looks right... but when i try to send to an email that the domain isn't on my server i got 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

Anyone knows whats wrong?

Thanks in Advanced.
 
Tried those instructions

and when I do a telnet localhost 2525 it says connection refused.......

Any additional help?
 
Back
Top