1855751 Members
1268 Online
104103 Solutions
New Discussion

Mailx & Sendmail.cf

 
SOLVED
Go to solution
hpuxrox
Respected Contributor

Mailx & Sendmail.cf

Ok, I resently had to turn sendmail off for security ressions. I still want to send mail out to a relay host, so I configured a DS line in Sendmail.cf.

So my question is, if sendmail daemon is turned off, and I use mailx, does It used Sendmail binary in any way?

Thanks

7 REPLIES 7
James A. Donovan
Honored Contributor
Solution

Re: Mailx & Sendmail.cf

In a word....yes. The sendmail daemon does not need to run in order for you to send out e-mail. You only need to provide a value for the DS macro.
Remember, wherever you go, there you are...
Thierry Poels_1
Honored Contributor

Re: Mailx & Sendmail.cf

hi,

sendmail daemon does not have to active to send mail. For security reason it's even advised not to run the sendmail daemon, unless you're running a mail server. (can somebody still count all the security notes regarding sendmail of this year?)

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Thierry Poels_1
Honored Contributor

Re: Mailx & Sendmail.cf

oops..
....does not have to BE active to....
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Uday_S_Ankolekar
Honored Contributor

Re: Mailx & Sendmail.cf

sendmial daemon does not require to send out emails. Still if you want to flush e-mail every now and then use sendmail -q command and run it as a cronjob.
DS entry to send mails to mailrelay is a correct process
-USA..

Good Luck..
Jeff Schussele
Honored Contributor

Re: Mailx & Sendmail.cf

Hi Yates,

As USA indicated IF the first attempt to deliver the mail fails it will sit in the queue forever - unless you manually attempt delivery with sendmail -q .

What we did after disabling sendmail daemon is set up a cron job to run sendmail -q several times a day to repeat initial failed deliveries.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Geoff Wild
Honored Contributor

Re: Mailx & Sendmail.cf

Yes - it uses the /bin/mail binary which requires the senmail binary - unless you set a new command:

ENVIRONMENT VARIABLES
The following variables are internal mailx program variables. They
can be imported from the execution environment or set by the set
command at any time. The unset command can be used to erase
variables.


sendmail=command Alternate command for delivering messages.
Default is mail (see mail(1)).


So, do not delete the sendmail binary...however, you don't need to have the daemon running for mailx to work.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: Mailx & Sendmail.cf

My experience is that mailx will still work when the sendmail daemon is not running.

As noted above you may need to run sendmail -q to push the queue off of the server.

If your disable steps included removing the sendmail binaries, then you need to put them back for mailx to work.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com