Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

Daemon sendmail doesn't start

SOLVED
Go to solution
Jordi Gras
Advisor

Daemon sendmail doesn't start

Hi everybody!

We are trying to start daemon sendmail (/sbin/init.d/sendmail start), but no process starts. What's the matter?

Jordi

 

 

P.S. This thread has been moved from HP-UX > Networking to HP-UX > messaging - HP Forum Moderator

Take it easy...
18 REPLIES
Steven Sim Kok Leong
Honored Contributor

Re: Daemon sendmail doesn't start

Hi,

You need to change the following line (i.e. set the variable) in /etc/rc.config.d/mail to activate sendmail:

export SENDMAIL_SERVER=1

Hope this helps. Regards.

Steven Sim Kok Leong
Email: steven@beepz.com. Homepage: https://www.beepz.com
Steven Sim Kok Leong
Honored Contributor

Re: Daemon sendmail doesn't start

Hi,

After changing /etc/rc.config.d/mail, remember to re-run the startup script:

# /sbin/init.d/sendmail start

Hope this helps. Regards.

Steven Sim Kok Leong
Email: steven@beepz.com. Homepage: https://www.beepz.com
Stefan Farrelly
Honored Contributor

Re: Daemon sendmail doesn't start

The previous reply should say change the file;

/etc/rc.config.d/mailservs
Im from Palmerston North, New Zealand, but somehow ended up in London...
Steven Sim Kok Leong
Honored Contributor

Re: Daemon sendmail doesn't start

Hi Stefan,

Thanks for the correction.

It should be /etc/rc.config.d/mailserv

and not:

/etc/rc.config.d/mail

Hope this helps. Regards.

Steven Sim Kok Leong
Email: steven@beepz.com. Homepage: https://www.beepz.com
Jordi Gras
Advisor

Re: Daemon sendmail doesn't start

Hi,

The problem is that the command: /sbin/init.d/sendmail start, doesn't do anything. It doesn't return any message nor errors. We look for the process it must be running but there is nothing executing.

In the other hand, that's what we want to do:

From one server (escp) we want to send mail to Internet through the SMTP server (hono). That server (hono) can send without problems mail to Internet. And we can access server hono from server escp by port 25 (telnet hono 25).
We don't use DNS.

Thank you in advance,

Jordi
Take it easy...
U.SivaKumar_2
Honored Contributor

Re: Daemon sendmail doesn't start

Hi,
give this again.
/sbin/init.d/sendmail start
and look for any errors given in
/var/adm/syslog/syslog.log
#tail /var/adm/syslog/syslog.log
regards,
U.SivaKumar
Innovations are made when conventions are broken
Jordi Gras
Advisor

Re: Daemon sendmail doesn't start

Hi,
There is no error entries on syslog.log, only two entries some hours ago:

Jul 22 11:37:48 escp inetd [519]: ident/tcp: Exit status 1

Jordi
Take it easy...
U.SivaKumar_2
Honored Contributor

Re: Daemon sendmail doesn't start

Hi,
Ok.
#/sbin/init.d/sendmail start
#tail /var/adm/syslog/mail.log

get back with results.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Jordi Gras
Advisor

Re: Daemon sendmail doesn't start

Hi,

No new entries on mail.log.

Jordi
Take it easy...
U.SivaKumar_2
Honored Contributor
Solution

Re: Daemon sendmail doesn't start

Hi,
Ok do this.
#sendmail -bd -q10m
Now any errors ?
regards,
U.SivaKumar
Innovations are made when conventions are broken
Jordi Gras
Advisor

Re: Daemon sendmail doesn't start

Hi,

We received the follow message:

Jul 22 08:24:33 escp sendmail[3050]: /etc/mail/sendmail.cf: WARNING: dangerous write permissions

And finally started sendmail daemon.

Now that we can start the daemon, we tried to send a mail to Internet but doesn't work. Any ideas?

Thanks in advance,

Jordi
Take it easy...
U.SivaKumar_2
Honored Contributor

Re: Daemon sendmail doesn't start

Hi,
edit /etc/sendmail.cf
put you ip address of hono server in DS macro
like this,
DS[x.x.x.x]
where x.x.x.x is the ip address of hono server.
put this also in the same file.
Cwlocalhost hono escp yourdomain.com
Save the file and restart sendmail. Now you will be able to relay your mails to hono server
from where mails will be forwarded to internet.

regards,
U.SivaKumar


Innovations are made when conventions are broken
Jordi Gras
Advisor

Re: Daemon sendmail doesn't start

Hi,

We did the changes but without effect. These are the new entries on mail.log

Thank you in advance,

Jordi
Take it easy...
benoit Bruckert
Honored Contributor

Re: Daemon sendmail doesn't start

Hi Jordi,
First, about write permission, check authorization on /etc and /etc/mail, and /etc/mail/sendmail.cf (which should be read only !).
Second, about sending to internet, from your log, I can say you hahe a trouble with DNS. Can you resolve dns from your host to internet ?
There's some specific configs to make work sendmail wihout DNS (see www.sendmail.org).
If you have a DNS, it'll be quicker for you to configure your host as a DNS client.
Check it with nslookup ..
hope that help,
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
benoit Bruckert
Honored Contributor

Re: Daemon sendmail doesn't start

Hi again,
You can follow this url, to know how to configure sendmail without DNS :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa06d42308663d611abdb0090277a778c,00.html

Hope that help
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Jordi Gras
Advisor

Re: Daemon sendmail doesn't start

Hi,

I tried the changes without effect.

From escp server, we can't resolve Internet adresses. But from hono (SMTP server), we can send mails to Internet without any problem.
So, we are missing some configuration to send the mails to Internet from escp through hono.

Thanks in advance,

Jordi
Take it easy...
Stefan Farrelly
Honored Contributor

Re: Daemon sendmail doesn't start

2 ways to do this from server escp

1. echo test | mailx -s"" joe.bloggs%domain@hono

When the email gets to server hono it will change email address to job.bloggs@domain and will send out to the internet

2. edit the file /etc/mail/aliases on hono and add an entry like this;
temp : job.bloggs@domain

Save it and run newaliases. Now from server escp you can send to;
echo test | mailx -s"" temp@hono
and it will expand out to joe.bloggs@domain and go out to the internet.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Jordi Gras
Advisor

Re: Daemon sendmail doesn't start

Hi Stefan,

That's right, it works!

Thank you very much,

Jordi
Take it easy...