- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SMTP DISABLE
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-10-2007 01:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 02:01 AM
10-10-2007 02:01 AM
Re: SMTP DISABLE
Set
SENDMAIL_SERVER=0
in /etc/rc.config.d/mailservs
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 02:17 AM
10-10-2007 02:17 AM
Re: SMTP DISABLE
Help me many point at all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 02:33 AM
10-10-2007 02:33 AM
Re: SMTP DISABLE
see
# grep smtp /etc/services
/etc/services:smtp 25/tcp # Simple Mail Transfer Protocol
Who is listen on port 25?
# ps -ef|grep sendmail
root 3377 1 0 Jun 25 ? 62:04 sendmail: accepting connections on port 25
So why not disable sendmail?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 02:42 AM
10-10-2007 02:42 AM
Re: SMTP DISABLE
Shutting down sendmail will disable SMTP.
Unless you are running another mail transport - like Qmail...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 02:50 AM
10-10-2007 02:50 AM
Re: SMTP DISABLE
# netstat -an |grep 25 |grep LISTEN
tcp 0 0 127.0.0.1.25 *.* LISTEN
# /sbin/init.d/sendmail stop
Shutting down sendmail [Done]
Shutting down sm-client [Done]
# netstat -an |grep 25 |grep LISTEN
Returns nothing.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 02:55 AM
10-10-2007 02:55 AM
Re: SMTP DISABLE
# lsof -i TCP:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sendmail 3377 root 5u IPv4 0x34b2cc0 0t0 TCP *:smtp (LISTEN)
Or do you have SNMP in mind by chance?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 03:16 AM
10-10-2007 03:16 AM
Re: SMTP DISABLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 03:21 AM
10-10-2007 03:21 AM
Re: SMTP DISABLE
The process listen on port 25 *IS* your mail service - most likely this is sendmail.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 03:26 AM
10-10-2007 03:26 AM
Re: SMTP DISABLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 03:29 AM
10-10-2007 03:29 AM
Re: SMTP DISABLE
try
telnet yourserver 25
If you get:
Trying...
telnet: Unable to connect to remote host: Connection refused
then it is disabled...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 04:59 PM
10-10-2007 04:59 PM
Re: SMTP DISABLE
To disable SMTP permanently
vi /etc/services
##commentted out
#smtp 25/tcp # Simple Mail Transfer Protocol
#inetd -c
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 08:31 PM
10-10-2007 08:31 PM
Re: SMTP DISABLE
you are mistaking if you comment the /etc/service however SMTP work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 08:50 PM
10-10-2007 08:50 PM
Re: SMTP DISABLE
# lsof -i TCP:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sendmail 1142 root 5u IPv4 0x4d13b4c0 0t0 TCP *:25 (LISTEN)
# cd /sbin/init.d
# ./sendmail stop
Shutting down sendmail ..... [ OK ]
Shutting down sm-client [ OK ]
# lsof -i TCP:25
# telnet nickel2 25
Trying...
telnet: Unable to connect to remote host: Connection refused
#
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 08:51 PM
10-10-2007 08:51 PM
Re: SMTP DISABLE
# lsof -i TCP:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sendmail 1142 root 5u IPv4 0x4d13b4c0 0t0 TCP *:25 (LISTEN)
# cd /sbin/init.d
# ./sendmail stop
Shutting down sendmail ..... [ OK ]
Shutting down sm-client [ OK ]
# lsof -i TCP:25
# telnet pluto 25
Trying...
telnet: Unable to connect to remote host: Connection refused
#
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 02:45 AM
10-11-2007 02:45 AM
Solutioni have found this in my result of shc
Stop the sendmail daemon:
/sbin/init.d/sendmail stop
Deactivate server mode:
/usr/sbin/ch_rc -a -p SENDMAIL_SERVER=0
Disallow all SMTP status queries, add
O PrivacyOptions=goaway
to the /etc/mail/sendmail.cf file
add cronjob to process mail:
0,15,30,45 * * * * /usr/sbin/sendmail -q
Regards
L-DERLYN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 01:28 AM
03-03-2008 01:28 AM