Operating System - HP-UX
1826523 Members
4095 Online
109695 Solutions
New Discussion

Re: Sendmail server is disabled, how to enable it?

 
SOLVED
Go to solution
praveen..
Super Advisor

Sendmail server is disabled, how to enable it?

i was trying to configure sendmail on one of my server.
but i am getting this error:

# swlist -l product | grep -i sendmail
PHNE_31734 1.0 sendmail(1m) 8.11.1 patch
# /sbin/init.d/sendmail stop
No sendmail server running
# /sbin/init.d/sendmail start
Sendmail server is disabled, You cannot start it manually using
sendmail script.


how to enable it?
17 REPLIES 17
Chauhan Amit
Respected Contributor

Re: Sendmail server is disabled, how to enable it?

Hello Praveen,

Follow bwlow steps:
#vi /etc/rc.config.d/mailservs

Change below parameter
SENDMAIL_SERVER=1

#/sbin/init.d/sendmail start

Let me know if this works.

-Amit
If you are not a part of solution , then you are a part of problem
praveen..
Super Advisor

Re: Sendmail server is disabled, how to enable it?

export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

this parameter is one

please suggest

Steven E. Protter
Exalted Contributor

Re: Sendmail server is disabled, how to enable it?

Shalom praveen,

Sendmail daemon is only needed for accepting mails, not sending them. Its a good idea to leave it off.

/etc/rc.config.d/sendmail
# first variable set to 1.

Also a good idea, due to recent sendmail vulnerabilities to install HP's 8.13 sendmail release.

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
praveen..
Super Advisor

Re: Sendmail server is disabled, how to enable it?

/etc/rc.config.d/sendmail
# first variable set to 1.


this is already one,
still i am getting:

# /sbin/init.d/sendmail stop
No sendmail server running
# /sbin/init.d/sendmail start
Sendmail server is disabled, You cannot start it manually using
sendmail script.


please suggest
Enrico P.
Honored Contributor

Re: Sendmail server is disabled, how to enable it?

Hi,
the error you received should be if the SENDMAIL_SERVER variable is not 1.

Try

. /etc/rc.config
echo $SENDMAIL_SERVER

What is the SENDMAIL_SERVER variable value?

Enrico
praveen..
Super Advisor

Re: Sendmail server is disabled, how to enable it?

#vi /etc/rc.config.d/mailservs

export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

#cd /etc/rc.config.d
# echo $SENDMAIL_SERVER
sh: SENDMAIL_SERVER: Parameter not set.

please suggest
Enrico P.
Honored Contributor

Re: Sendmail server is disabled, how to enable it?

Hi,

try to run

. /etc/rc.config

to read the variables, and after

echo $SENDMAIL_SERVER

Enrico
praveen..
Super Advisor

Re: Sendmail server is disabled, how to enable it?

# ./etc/rc.config
sh: ./etc/rc.config: not found.
# echo $SENDMAIL_SERVER
sh: SENDMAIL_SERVER: Parameter not set.
#


what to do now, please suggest
Enrico P.
Honored Contributor

Re: Sendmail server is disabled, how to enable it?

You must insert a space between the point and the file

. /etc/rc.config

This sintax is for load the variable of the /etc/rc.config.d/ direcory's file (Example for reload the .profile settings you need to use the sintax ". /user_home_dir/.profile")

Enrico
praveen..
Super Advisor

Re: Sendmail server is disabled, how to enable it?

YES, i think this is the problem

# . /etc/rc.config
# echo $SENDMAIL_SERVER
sh: SENDMAIL_SERVER: Parameter not set.

while on another server, i am getting:

# . /etc/rc.config
# echo $SENDMAIL_SERVER
1
#

but my entries are in this file is : #vi /etc/rc.config.d/mailservs

export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

please suggest

Enrico P.
Honored Contributor

Re: Sendmail server is disabled, how to enable it?

And if you run

. /etc/rc.config.d/mailservs

echo $SENDMAIL_SERVER

Enrico

praveen..
Super Advisor

Re: Sendmail server is disabled, how to enable it?

NOW IT IS SHOWING 1

# . /etc/rc.config.d/mailservs
# echo $SENDMAIL_SERVER
1
#
Enrico P.
Honored Contributor

Re: Sendmail server is disabled, how to enable it?

Seems the script /etc/rc.config not load the file mailservs or the SENDMAIL_SERVER variable setting.
Is the file permission correct?

-r--r--r-- 1 bin bin 1146 Jun 19 14:10 mailservs

Check for other setting or unsetting of the SENDMAIL_SERVER variable in the /etc/rc.config.d/ directory:

grep SENDMAIL_SERVER /etc/rc.config.d/*

Enrico
Enrico P.
Honored Contributor

Re: Sendmail server is disabled, how to enable it?

You can run

sh -x ". /etc/rc.config" 2> output_file

and check in the output file if this run the mailservs script correctly or set the variable.

Enrico
praveen..
Super Advisor

Re: Sendmail server is disabled, how to enable it?

# cd /etc
# ll rc.config
-r--r--r-- 1 bin bin 3768 Feb 7 14:43 rc.config

# cd /etc/rc.config.d/
# ll mailservs
-r--r--r-- 1 bin bin 1172 Jun 19 04:39 mailservs

# grep SENDMAIL_SERVER /etc/rc.config.d/*
/etc/rc.config.d/mailservs:# SENDMAIL_SERVER: Set to 1 if this is a mail server and should
/etc/rc.config.d/mailservs:# SENDMAIL_SERVER_NAME: If this is not a mail server, but a client being
/etc/rc.config.d/mailservs:# are in the order SENDMAIL_SERVER, SENDMAIL_SERVER_NAME,
/etc/rc.config.d/mailservs:#export SENDMAIL_SERVER=1
/etc/rc.config.d/mailservs:export SENDMAIL_SERVER=1
/etc/rc.config.d/mailservs:export SENDMAIL_SERVER_NAME=
#
Rick Garland
Honored Contributor
Solution

Re: Sendmail server is disabled, how to enable it?

Unless you are receiving mail on this server, no need to have the sendmail daemon running.

You can send mail without the daemon.

If you are subject to security audits, one of the items they look at is sendmail. If the daemon is off and the server is not receiving mail, they audits folks are happy.

praveen..
Super Advisor

Re: Sendmail server is disabled, how to enable it?

sendmail daemon is used to receive the mails,

i am able to send the mails,

thanks