Operating System - HP-UX
1748179 Members
3935 Online
108759 Solutions
New Discussion юеВ

Re: 11.31 SENDMAIL_SENDONLY=1 boot error

 
Michael Leu
Honored Contributor

11.31 SENDMAIL_SENDONLY=1 boot error

Setting SENDMAIL_SENDONLY=1 in /etc/rc.config.d/mailservs on 11.31 and booting gives a error in the sendmail rc-script.
How can this be cleanly configured?

Output from rc.log:
Starting sendmail [Done] Starting sm-client [Done]
Output from "/sbin/rc2.d/S540sendmail start":
----------------------------
Unable to start Sendmail.

For more information see /var/adm/syslog/mail.log

"/sbin/rc2.d/S540sendmail start" FAILED
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: 11.31 SENDMAIL_SENDONLY=1 boot error

Hi:

The log says, "For more information see /var/adm/syslog/mail.log".

So what does that say!?!

Regards!

...JRF...

Michael Steele_2
Honored Contributor

Re: 11.31 SENDMAIL_SENDONLY=1 boot error

HI

OK so, what does /var/adm/syslog/mail.log say?

Also, please provide this output:

ls -la /etc/mail

Support Fatherhood - Stop Family Law
Michael Leu
Honored Contributor

Re: 11.31 SENDMAIL_SENDONLY=1 boot error

Sorry about all the missing information.

Syslog entries are:
/sbin/init.d/sendmail[1373]: Unable to start Sendmail.
/sbin/init.d/sendmail[1373]: The /etc/mail/sendmail.cf file is not configured for send_only feature.

Building a new send_only sendmail.cf with /usr/newconfig/etc/mail/cf/cf/gen_cf gives errors:
The Selected Options are:
send_only

Do you want to continue and build the confuguration file
Press any key to continue or [n/N] to unset all options

Including send_only
cat: Cannot open generic-hpux10.changed: No such file or directory

Note:
To enable IPv6 support for the send_only feature,
use the following entry for DaemonPortOptions in the
/etc/mail/sendmail.cf file:
O DaemonPortOptions=Name=MTA,Family=inet6, Addr=::1
If Sendmail is configured with MSP, use the following entry
for MTAHost in the /etc/mail/submit.cf file:
D{MTAHost}[127.0.0.1] to D{MTAHost}[::1]

Building sendmail.cf.gen...

/usr/ccs/bin/m4:/usr/newconfig/etc/mail/cf/cf/../m4/cf.m4:29 can't open file
include(../m4/cfhead.m4)
Michael Steele_2
Honored Contributor

Re: 11.31 SENDMAIL_SENDONLY=1 boot error

Reinstall sendmail with swinstall. Follow the installation instructions to a letter.
Support Fatherhood - Stop Family Law
Michael Leu
Honored Contributor

Re: 11.31 SENDMAIL_SENDONLY=1 boot error

The funny thing is, the m4 files exist:
-r--r--r-- 1 bin bin 837 Nov 12 2008 /usr/newconfig/etc/mail/cf/m4/cf.m4
-r--r--r-- 1 bin bin 62355 Nov 12 2008 /usr/newconfig/etc/mail/cf/m4/cfhead.m4

Actually I never managed to build a send_only sendmail.cf on any of our 11.31 systems with gen_cf, maybe this is the wrong way?
sherinchandy
Advisor

Re: 11.31 SENDMAIL_SENDONLY=1 boot error

run this from /usr/newconfig/etc/mail/cf/cf directory to avoid "cant open file errors"