Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-31-2003, 06:46 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 4
Rep:
|
closing port 25 using sendmail
I am installing a webserver with Gentoo (LAMP). I'm now finished installing everything and all is working great.
Upon pointing nmap at this box I noticed that sendmail was listening on port 25. I only require sendmail to send stuff out so is there a way to get sendmail to not listen on port 25?
Any ideas welcome.
|
|
|
08-01-2003, 12:44 AM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
well if its not listening on port 25, then hows it going to send the mail, or is your actual question pertaining to changing it to a different port?
|
|
|
08-01-2003, 02:00 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
as long as it is not listening on your external nic (the one connected to the Internet), no problems.
You can prevent that
1. by using iptables
2. /etc/mail/access (do not add the external IP address)
|
|
|
08-01-2003, 11:32 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Posts: 4
Original Poster
Rep:
|
closing port 25
Adding the following line to sendmail.mc closed port 25 to an nmap scan
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Any problems with this?
|
|
|
08-02-2003, 04:01 AM
|
#5
|
Member
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85
Rep:
|
u can use foll method to override the default smtp port setting.
In ur /etc/mail/sendmail.mc file add
DaemonOptions('port=999', Name='MTA')
and run m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
For detailed explaination read
/usr/share/sendmail{version}/README
|
|
|
08-02-2003, 05:46 AM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
Re: closing port 25
Quote:
Originally posted by sidkdbl07
Adding the following line to sendmail.mc closed port 25 to an nmap scan
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Any problems with this?
|
This will allow sendmail to accept mails from the localhost only, ignoring mails from your network. Users on your network cannot use this mail server to send mails ... if that is what you are looking at.
|
|
|
All times are GMT -5. The time now is 08:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|