cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail queries

Venkatesan_5
Frequent Advisor

Sendmail queries

I have some queries on sendmail, this is on security front...


1. How to identify that the sendmail process is not running in debug mode?

2. How to Install sendmail without set-user-ID root.

3. How to identify sendmail is installed only for sending emails.

4. Sendmail is listening to localhost, indirectly it means, It cannot relay emails from other servers. Only application running in the server able to send email.

Thanks in Advance
2 REPLIES
Modris Bremze
Esteemed Contributor

Re: Sendmail queries

1. 'ps -ef | grep sendmail' and look for a -d switch.
2. http://www.eukhost.com/forums/f15/run-sendmail-unprivileged-non-root-user-8859/
3. What else would it be installed for?
4. If it listens on localhost, only local mail is sent, it can also forward mail to some smarthost for relaying, if it is configured.
Jose Mosquera
Honored Contributor

Re: Sendmail queries

Hi,

Check is sendmail service are listening in your box:
#ps -ef|grep sendmail|grep -v grep
If sendmail line if returned you must switch off the service activation:
Stop the service:
/sbin/init.d/sendmail stop
#vi /etc/rc.config.d/mailservs and change:
export SENDMAIL_SERVER=1
to
export SENDMAIL_SERVER=0
Then, try start the service again:
Stop the service:
/sbin/init.d/sendmail start
An error must be displayed. At this point you have certified that your sendmail service only dispatch outgoing requests.

For more info:
http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02037761/c02037761.pdf

Rgds.