Results 1 to 10 of 11
Sendmail - How do I change the ports being used?
My OS is Debian woody.
Any and all help appreciated.
Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-15-2005 #1Just Joined!
- Join Date
- Jan 2005
- Location
- Canada
- Posts
- 17
Sendmail - How do I change the ports being used?
Sendmail - How do I change the ports being used?
My OS is Debian woody.
Any and all help appreciated.
Thanks
- 02-15-2005 #2
Can you give us more of an idea of what your are trying to accomplish? Something like iptables or any variety of port forwarding software is easy to use, also man sendmail might turn up the config file that holds that.
- 02-15-2005 #3Just Joined!
- Join Date
- Jan 2005
- Location
- Canada
- Posts
- 17
Basically I want to use port 5110 and 5025 instead of 110 and 25.
I have a different windows mail server that I want sendmail to send mail to but it runs on the standard ports +5000.
- 02-16-2005 #4I think for this you will have to scroll down the sendmail.cf file in /etc/mail
Originally Posted by Gimili
it is huge and I don't know exactly how to get there but be patient and it wouldn't hurt to puruse the file anywaySome people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
- 02-17-2005 #5Just Joined!
- Join Date
- Jan 2005
- Location
- Canada
- Posts
- 17
Thanks for the reply. I searched the sendmail.cf file and I couldn't find 110 or 25.
- 02-17-2005 #6
I will look into it.
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
- 02-17-2005 #7
Ok I found it in the .cf file here you go:
(Do yourself a favor and backup your origional version first)
cp sendmail.cf sendmail.cf.orig
then edit sendmail.cf
Look for this line in your .cf file
"DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')"
replace "Port=smtp" to Port=5025 and Addr=127.0.0.1 to Addr=0.0.0.0Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
- 02-18-2005 #8Just Joined!
- Join Date
- Jan 2005
- Location
- Canada
- Posts
- 17
All I have that is similar is:
# SMTP daemon options
O DaemonPortOptions=Name=MTA
O DaemonPortOptions=Port=587, Name=MSA, M=E
# SMTP client options
#O ClientPortOptions=Family=inet, Address=0.0.0.
- 02-18-2005 #9
I think you went too far down. What you are looking for is closer to the top
try this
su -
<password>
cd /etc/mail
less sendmail.cf
/127.0.0.1
That should take you to that line
If you are still having difficulty let me knowSome people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
- 06-29-2011 #10Just Joined!
- Join Date
- Jun 2011
- Posts
- 4
Why would you change the address from 127.0.0.1 to 0.0.0.0 in your directions for changing ports for pop and smtp?
Look for this line in your .cf file
"DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')"
replace "Port=smtp" to Port=5025 and Addr=127.0.0.1 to Addr=0.0.0.0
Just curious why the localhost address would change from 127.0.0.1 to 0.0.0.0?
Thanks for your help.



