1752806 Members
5876 Online
108789 Solutions
New Discussion юеВ

Mail error

 
SOLVED
Go to solution
allan Faylona
Occasional Contributor

Mail error

I tried to make test the mailx on a HP-UX 10.20. And I got the error below.


Null message body; hope that's ok
ofa1:/home/allan/scripts $ No local mailer defined: No such file or directory
cannot chdir(): No such file or directory


Regards
Allan
8 REPLIES 8
renarios
Trusted Contributor
Solution

Re: Mail error

Hi Allan,

if you enter: echo test| mailx -s test

What is the output?
What is in your /var/adm/syslog/mail.log

Cheers,

Renarios
Nothing is more successfull as failure
Mugilvannan
Valued Contributor

Re: Mail error

I hope there is some config probs on your system. Please visit the following url's to understand the mail system & config on HP-UX.

http://docs.hp.com/en/B2355-90110/ch05s04.html

http://sabernet.home.comcast.net/papers/hp-ux10.html

http://www.siliconvalleyccie.com/linux-hn/sendmail.htm
If U need a helping hand, U will find one at the end of your arm
allan Faylona
Occasional Contributor

Re: Mail error

Here is the result of the echo command


ofa1:/var/mail $ No local mailer defined: No such file or directory
cannot chdir(): No such file or directory

This is what inside of my /var/adm/syslog/mail.log

Sep 16 19:44:02 ofa1 sendmail[172]: NOQUEUE: SYSERR(root): No local mailer defined: No such file or directory

thanks
Muthukumar_5
Honored Contributor

Re: Mail error

Allan,

If you want to post queries related to hp-ux them do it with http://forums1.itrc.hp.com/service/forums/familyhome.do?familyId=117 ;)

I hope this problem is bcas of incorrect installation regarding to linux.

echo hi | mailx -d -s "subject"

what r u getting for this.

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Mail error

what is there in /etc/mail/sendmail.cf file for local mailer and chroot keyword setting.

# filenames, programs, and :include: must resolve to local mailer;
# explicitly distinguish these from x.400 and OpenMail syntax
R/$* $#local $: / $1 absolute file pathname
R|$* $#local $: | $1 to a program
R:include:$* $#local $: :include: $1 to :include: list

# chrooted environment for writing to files
#O SafeFileEnvironment=/arch

This is my sendmail.cf file setting.

hth.
Easy to suggest when don't know about the problem!
renarios
Trusted Contributor

Re: Mail error

Hi Allan,

It looks like your local_mailer variable in
your sendmail configuration is not correct. Please check this url:http://www.sendmail.org/~ca/email/README.cf.html

After editing your sendmail.mc, create a new mc file by: m4 sendmail.mc > /etc/sendmail.cf.

Cheers,

Renarios

Nothing is more successfull as failure
allan Faylona
Occasional Contributor

Re: Mail error

I was suprised when I checked my /etc/mail/sendmail.cf and all other files were zeroed-out. Can I copy a sendmail.cf on my other server?
renarios
Trusted Contributor

Re: Mail error

You could try it (backup old files first). Be aware that you have to restart the sendmail afterwards. That's on HP-UX:

for i in stop start
do
/sbin/init.d/sendmail ${i}
done

Feedback the results please.

Cheerio,

Renarios
Nothing is more successfull as failure