1833771 Members
2426 Online
110063 Solutions
New Discussion

sendmail HP-UX 10.2

 
Kurt Beyers.
Honored Contributor

sendmail HP-UX 10.2

When I try to start sendmail (/etc/init.d/sendmail start), nothing happens. The sendmail daemon is not running and no entries can be found in/var/adm/syslog/*

When i try to send an email (e.g sendmail -v root), I get the message:

No local mailer defined

What is causing this? I haven't had this problem yet (on HP-UX 11), which entry in the sendmail.cf must I change and to what. All I want to do is forward all mail (local and non-local) to the Exchange mail server.

Thanks,
Kurt
13 REPLIES 13
Victor BERRIDGE
Honored Contributor

Re: sendmail HP-UX 10.2

hi,
You should add the name of your exchange server at the line:
# "Smart" relay host (may be null)
DS


Good luck
Victor
Printaporn_1
Esteemed Contributor

Re: sendmail HP-UX 10.2

export SENDMAIL_SERVER=1

does it set to 1 in /etc/rc.config.d/mailsvrs

enjoy any little thing in my life
Victor BERRIDGE
Honored Contributor

Re: sendmail HP-UX 10.2

Sorry I got mixed up with the rodent ...
I wanted to add:
You will have to add a .mailrc file
in your home directory containing:
set crt=21
set encoding=8bit
set charset=iso-8859-1

To avoid MS-... error

Good luck
Victor
Kurt Beyers.
Honored Contributor

Re: sendmail HP-UX 10.2

Thanx but the DS record and mailservs settings were already applied. The sendmail just refuses to start up. When I do a:

ps -ef | grep sendmail

I find that no sendmail daemon is running.Why won't it start up?
Victor BERRIDGE
Honored Contributor

Re: sendmail HP-UX 10.2

When you execute /sbin/init.d/sendmail stop then
/sbin/init.d/sendmail stop

What get displayed?
Kurt Beyers.
Honored Contributor

Re: sendmail HP-UX 10.2

It says:
No sendmail server is running :-(


Victor BERRIDGE
Honored Contributor

Re: sendmail HP-UX 10.2

well my fault, I meant stop then start...

This time?
Kurt Beyers.
Honored Contributor

Re: sendmail HP-UX 10.2

Of course I've started it afterwards. However no sendmail daemon is running.

On HPUX11, you get something like sendmail accepting connections. I guess it should be the same on HPUX10.2
Victor BERRIDGE
Honored Contributor

Re: sendmail HP-UX 10.2

# ./sendmail start
/etc/mail/aliases: 6 aliases, longest 9 bytes, 76 bytes total
sendmail

sbin/init.d # ps -ef|grep sendmail
root 22431 1 0 13:15:44 ? 0:00 sendmail: accepting connections on port 25
root 22537 21016 0 13:16:04 pts/1 0:00 grep sendmail

sbin/init.d # ./sendmail stop
Sendmail pid is 22431
Killing sendmail...
Sendmail killed.

I will at the priv on the exec files and give them to you (I just tested on a K production machine, hope no one was in need on mail...)

Victor BERRIDGE
Honored Contributor

Re: sendmail HP-UX 10.2

Here are the perms of /usr/sbin/sendmail:
-r-sr-sr-t 1 root mail 393216 Feb 12 1998 sendmail
W. Sikkens
Advisor

Re: sendmail HP-UX 10.2

Hello, you could try building a new sendmail.cf file with /usr/newconfig/etc/mail/cf/cf/gen_cf or just copy the generic-hpux10.cf file to sendmail.cf. Maybe you are missing something like:
##### @(#)local.m4 8.30 (Berkeley) 6/30/1998 #####
Mlocal, P=/usr/bin/rmail, F=lsDFMAw5:/|@qm9, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,
A=rmail -d $u
Mprog, P=/usr/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/,
T=X-Unix,
A=sh -c $u
in your active sendmail.cf file.
Kurt Beyers.
Honored Contributor

Re: sendmail HP-UX 10.2

I've solved it. Sendmail wouldn't start because there was a file in /etc/rc.config.d/ that shouldn't be there at all. After deleting this file, sendmail started up normal. Than I still had some problem with name resolution, but I managed to let sendmail use only the hosts file (and no DNS) for relaying the mail to the Exchange Server.

Thanks for all your contributions.

Kurt
Shannon Petry
Honored Contributor

Re: sendmail HP-UX 10.2

Boy, oh boy, this is the second time I have seen people say to modify the sendmail.cf file to relay mail to another server.

Simply edit /etc/rc.config.d/mailsvrs

There are only two variables that can be changed in that file.
1. Run sendmail 0=false, 1=true
2. Mail host to forward mail to

After you put the mail host into the file, stop and start sendmail with the /sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

DONE!

Regards,
Shannon
Microsoft. When do you want a virus today?