1834903 Members
2753 Online
110071 Solutions
New Discussion

Re: Sendmail

 
SOLVED
Go to solution
Manuales
Super Advisor

Sendmail

Hi, how can i start sendmail?
i mean, i need to use mail command but it looks the following message into a log:

PROBLEMS-A: is not running: sendmail: accepting connections on port 25 user: root id: 1
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: Sendmail

Shalom,

/sbin/init.d/sendmail start

vi /etc/rc.config.d/sendmail

Set the first variable to 1

The first action will start it immediately. The second will insure sendmail is running at boot.

Running sendmail represents a significant security hazard.

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
A. Clay Stephenson
Acclaimed Contributor

Re: Sendmail

To simply send mail, a sendmail daemon is not needed but to receive mail from a remote machine, sendmail must be running as a daemon.

To enable sendmail as a daemon:
edit /etc/rc.config.d/mailservs and set
export SENDMAIL_SERVER=1
and save the file.

You will probably need to set a few values in /etc/mail/sendmail.cf; the file is heavily commented so read through it. A few that may net to be set are "DS" (Smart Relay) and "Dj" (Domain). You may also require MX entries in your DNS tables. Finally, /sbin/init.d/sendmail start and you are up and running.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Sendmail

Hi Manuales:

Sendmail does not have to be running as a daemon to be able to use 'mailx' to send outgoing mail. From the message you posted, however, I would assume that it is.

Please post exactly what you did and what your expected result was to be.

The '/var/adm/syslog/mail.log' can be very helpful.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Sendmail

Note A. Clay's correction of my mistake. Its mailsvrs not sendmail.

Sendmail security has been tightening and on certain Linux releases I've been forced to run the daemon simply to get localhost to accept mail and transfer it.

Your OS and sendmail version would be helpful.

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
Manuales
Super Advisor

Re: Sendmail

Appears the following message:

unix>/sbin/init.d/sendmail start

/etc/mail/sendmail.cf: line 690: fileclass: cannot open /etc/mail/sendmail.cw: World writable directory
451 /etc/mail/sendmail.cf: line 690: fileclass: cannot open /etc/mail/sendmail.cw: World writable directory


why?
Patrick Wallek
Honored Contributor

Re: Sendmail

The issue is: "world writeable directory". The permissions on /etc/mail should be 'drwxr-xr-x' and the sendmail.* files in the directory should be read-only for everyone '-r--r--r--'.