- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail banner
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
03-17-2003 06:19 PM
03-17-2003 06:19 PM
I wanted to omit sendmail banner (audit requirement) and I put # before SmtpGreetingMessage in /etc/mail/sendmail.cf and stop and start sendmail.
Still it appears while I telnet to port 25.
Any idea ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 08:20 PM
03-17-2003 08:20 PM
Re: sendmail banner
Shiv is right.
A customized greeting would be much better.
Add some customized message like
O SmtpGreetingMessage="Your activity is being logged"
Also consider disabling the options like noexpn, novrfy etc.,
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 09:03 PM
03-17-2003 09:03 PM
Re: sendmail banner
It worked.
How to confirm that vrfy and expn is disabled?
That is also another audit comments in my list.
Regards
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 09:24 PM
03-17-2003 09:24 PM
Re: sendmail banner
PrivacyOptions=authwarnings,noexpn,novrfy
in sendmail.cf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 09:44 PM
03-17-2003 09:44 PM
Re: sendmail banner
Another one
"Sendmail must not be running in daemon mode"
how can I make sure that it is not running in daemon mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 10:03 PM
03-17-2003 10:03 PM
Re: sendmail banner
check the sendmail startup script
/sbin/init.d/sendmail
check whether the -bd option is there with the sendmail startup
like
/usr/sbin/sendmail -bd
-bd is the daemon mode startup.
THe default startup is -bm and not -bd.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 10:24 PM
03-17-2003 10:24 PM
Re: sendmail banner
and refer to the sections "Modes" in the manual pages of sendmail.
Modes
sendmail operates in one of the following modes. The default is -bm,
deliver mail in the usual way.
-ba Go into ARPANET mode. All input lines must end with a CR-
LF, and all messages will be generated with a CR-LF at the
end. Also, the ``From:'' and ``Sender:'' fields are
examined for the name of the sender.
-bd Run as a daemon. sendmail will fork and run in background
listening on socket 25 for incoming SMTP connections.
-bD Run as a daemon, but run in foreground.
-bh Print the persistent host status database.
-bH Purge the persistent host status database.
-bi Initialize the alias database for the mail aliases file.
newaliases is identical to sendmail -bi. See
newaliases(1M).
-bm Deliver mail in the usual way (default).
-bp Print a listing of the mail queue. mailq is identical to
sendmail -bp. See mailq(1).
-bs Use the SMTP protocol as described in RFC821 on standard
input and output. This flag implies all the operations of
the ba flag that are compatible with SMTP.
-bt Run in address test mode. This mode reads addresses and
shows the steps in parsing; it is used for debugging
configuration tables.
-bv Verify names only - do not try to collect or deliver a
message. Verify mode is normally used for validating users
or mailing lists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 10:31 PM
03-17-2003 10:31 PM
Re: sendmail banner
what is -bm option for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 11:09 PM
03-17-2003 11:09 PM
Re: sendmail banner
-bm Deliver mail in the usual way (default).
hth
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 11:52 PM
03-17-2003 11:52 PM
Re: sendmail banner
For High security SMTP site,
PrivacyOptions=goaway
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 06:24 AM
03-18-2003 06:24 AM
Re: sendmail banner
To verify noexpn, novrfy or goaway, do the following from another system telnet to the box
$telnet your_box 25
Trying...
Connected to your_box.yourdomain.com.
Escape character is '^]'.
220 Your ESMTP activity is being logged
expn your_id
502 Sorry, we do not allow this operation
vrfy your_id
252 Cannot VRFY user; try RCPT to attempt delivery (or try finger)
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 11:24 PM
03-18-2003 11:24 PM
Re: sendmail banner
#/sbin/init.d/sendmail stop(killsm is also the same)
#No sendmail server running
#ps -ef|grep sendmail
root 19134 1 0 12:09:27 ? 0:00 /usr/sbin/sendmail -bm -q30m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 12:28 AM
03-19-2003 12:28 AM
Re: sendmail banner
something wrong. can u check if the file sendmail.pid exists in /etc/mail.
also, does the pid what it lists and ps -ef | grep sendmail matches.
try killing it manually. removing the pid file and then start & stop sendmail.
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 12:46 AM
03-19-2003 12:46 AM
Re: sendmail banner
killing manualy also the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 01:01 AM
03-19-2003 01:01 AM
Re: sendmail banner
i couldnt get u. the pid file is not there. but stopping gives the same error message?
try killing the process and then start sendmail with the startup script. is the pid file getting created.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 01:04 AM
03-19-2003 01:04 AM
Re: sendmail banner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 01:15 AM
03-19-2003 01:15 AM
Re: sendmail banner
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 01:27 AM
03-19-2003 01:27 AM
Re: sendmail banner
i believe you should start your sendmail using the script in /sbin/init.d
e.g.
/sbin/init.d/sendmail start
you may also wish to check the ownership of the pid file.
L-oracle8i: etc/mail>ll *.pid
-rw-r--r-- 1 root mail 34 Feb 13 14:07 sendmail.pid
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 01:35 AM
03-19-2003 01:35 AM
Re: sendmail banner
There is no error.
It is starting and working fine but .pid file is not getting created when started with -bm option.
Can some one attach the /sbin/init.d/sendmail scripts where sendmail is creating .pid file with -bm option.
Thanks
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 01:57 AM
03-19-2003 01:57 AM
Re: sendmail banner
checked up the sendmail startup script. there is no entry for creation of pid file. it just reads the file to see if sendmail is running.
i guess the file name is hardcoded inside the sendmail binary itself.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 02:51 AM
03-19-2003 02:51 AM
Re: sendmail banner
Don't specify -bm option explicitly. As it taken by default.
sendmail.pid will be created only if the sendmail will fork and become a daemon , for which -bd option is very very necessary.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 03:30 AM
03-19-2003 03:30 AM
Re: sendmail banner
I guess the reason you want to get rid of the sendmail banner is so that hackers don't know the version of sendmail yes?
Problem is that all you have to do is type 'help' at the sendmail prompt and more often than not it will tell you the version there...
You can change this too of course by editing the following line in sendmail.cf:
O HelpFile=/usr/share/lib/sendmail.hf
My favorite is to point it to a file with the contents 'HACKERS DON'T NEED HELP!'
Cheers
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 09:54 AM
03-19-2003 09:54 AM
Re: sendmail banner
Sorry if this is boneheaded, but it seems that if there is no daemon running, you don't need to change the privacy options.
Thanks,
Seth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 05:14 PM
03-19-2003 05:14 PM
Re: sendmail banner
Understood your point. But now my problem is I can not stop sendmail using /sbin/init.d/sendmail stop command because no .pid file is created.