Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-21-2002, 05:40 PM   #1
LQ Newbie
Registered: Jan 2002
Posts: 2

Rep: Reputation: 0
Sendmail Port other than 25

I am running RH Linux 7.2 and sendmail-8.11.6-3. I need to change the port that SMTP listens on. I changed it in my /etc/services file to 2525. I then changed my SMTP option in my file to look like this:
O DaemonPortOptions=Port=2525, Name=MTA

When I restart everything I can see mail getting to my server but I get connection refused when it tries to send it. If I put things back on to port 25 SMTP then sends that mail.

example of /var/maillog showing connection refusal:

Jan 17 13:38:07 server1 sendmail[1165]: g0HIc7S01165: from=<>, size=0, class=0, nrcpts=1, proto=SMTP, daemon=MTA, relay=server1 [] (may be forged)
Jan 17 13:38:07 server1 sendmail[1167]: g0HIc7S01167: from=<>, size=1364, class=0, nrcpts=1, msgid=<00fc01c19f86$cba7cb50$>, proto=ESMTP, daemon=MTA, relay=server1 [] (may be forged)
Jan 17 13:38:07 server1 sendmail[1169]: g0HIc7S01167: to=<>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=31364,], dsn=4.0.0, stat=Deferred: Connection refused by

Any ideas why this is happening ??

Thanks in advance.

Old 01-23-2002, 04:30 AM   #2
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30

Hi ,

Hmmmm did u make appropriate entires in /etc/services file.

I cant remember the name but one of this files contain the ports that can be used ( also check out the /etc/protocols ) by the system.

My guess is that u need to update one of this files as well .

Why dont u try port redirection ( do it with ipchains or iptables ).
it basically accomplish the same thing that ur trying to do.

i hope i have helped u enuf.


Last edited by xanthium; 01-23-2002 at 04:31 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail port 25 gigi Linux - Security 2 02-16-2005 06:54 PM
Sendmail settings. Will sendmail always answer "helo". (and tracing blocked port 25) Bjorkli Linux - Networking 5 05-24-2004 04:13 AM
Using sendmail through port 80? registering Programming 7 11-11-2003 11:31 AM
sendmail listening on port 25 dskny Linux - Software 14 08-12-2003 07:52 PM
sendmail telnet port frieza Linux - Networking 2 03-06-2002 05:26 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration