- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail listening to localhost
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 04:13 PM
10-17-2003 04:13 PM
sendmail listening to localhost
Could some kindly show me how do I check if my version of sendmail is currently listening to the localhost?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 11:34 PM
10-17-2003 11:34 PM
Re: sendmail listening to localhost
telnet localhost smtp
To know if sendmail is listening only on the loopback interface, then check look at DaemonPortOptions in the sendmail.cf file. Or...
lsof -nPi tcp:25
or
netstat -an | grep :25
which will tell to which interfaces sendmail is bound.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2003 12:03 AM
10-18-2003 12:03 AM
Re: sendmail listening to localhost
# ps -ef | grep -i sendmail
SMTP is on port 25, but checking the mail.log should be enough. After starting the daemon an entry is made in mail.log.
# tail -f /var/adm/syslog/mail.log
# sendmail -bd -q30m
Test by sending an email out:
# tail -f....
# echo 'test' | mailx -s "test subject" you@your_domain.com
Or, see if the mail server knows the alais:
# sendmail -v you@yourdomain < /dev/null
With command the SMTP server will be queried. It will then respond with known or unknown email alias.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2003 03:31 PM
10-19-2003 03:31 PM
Re: sendmail listening to localhost
#sendmail -bd -q15m ( you are basically opening up port 25 SMTP port to the hacker)
instead use
#sendmail -q15 ( it is secure, put this in cron, and it will scan the mail queue directory when there is a triger)
To sendmail mail in verbose mode is this
#sendmail -v userid@domain.com
It will list you the complete data flow of the mail packet.
Thanks
Pratyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2003 07:16 PM
10-19-2003 07:16 PM
Re: sendmail listening to localhost
You have to do:
netstat -an|grep -i list|grep 25
You will have something like this:
tcp 0 0 *.25 *.* LISTEN
This line meas that the sendmail is listen in all IP of the system (includes 127.0.0.1)
If you have this:
tcp 0 0 172.12.10.123:25 *.* LISTEN
This means that only is listen on this IP.
I hope this help you.
Arancha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 02:58 AM
10-20-2003 02:58 AM
Re: sendmail listening to localhost
If you're trying to keep it from listening, another option you can try is to configure HP's /etc/rc.config.d/mailservs file and set SENDMAIL_SERVER=0. That will keep sendmail from listening (on any port), but it will still allow for messages to be sent from the machine. If you do this, you'll need to add a periodic cronjob "/usr/sbin/sendmail -q" to make sure that any mail that couldn't be sent the first time is processed.
Regards,
Seth