cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail issue

SOLVED
Go to solution
NDO
Super Advisor

sendmail issue

Hi all

I´m trying tu use sendmail to send alert messages when file systems are full, but sendmail is not working at all. I´m running 11.23. The error messages I´m getting when trying to send mail are: "fretagi@mcel.co.mz... Transient parse error -- message queued for future delivery
fretagi@mcel.co.mz... queued
", other is : "/dead.letter... Saved message in /dead.letter " Please can somebody help?


Regards

F.R.
13 REPLIES
Kapil Jha
Honored Contributor

Re: sendmail issue

how are you sending mail, do you have relay host.

tail messages file when u send the mail and send us the output.


Check for the relay host in submit.cf
#grep DS submit.cf sendmail.cf

BR,
Kapil+
I am in this small bowl, I wane see the real world......
NDO
Super Advisor

Re: sendmail issue

Hi
Yes I do have a relay host, and I´ve put the IP address of the relay host in front of DS on the sendmail.cf file.

grep DS submit.cf sendmail.cf
grep: can't open submit.cf
sendmail.cf:# Relay all non-local mail to the "Smart" relay host (DS) via smtp: #
sendmail.cf:# to a smart relay via SMTP just set macro S (DS) to the name of the #
sendmail.cf:# Relay all non-local mail to the "Smart" relay host (DS) via UUCP: #
sendmail.cf:# make two chnages to this file. First, set macro S (DS) to the name #
sendmail.cf:DS192.168.1.39
sendmail.cf:# noreceipts Don't return success DSN's
sendmail.cf:# Return-Receipt-To: header implies DSN request if this option is set
sendmail.cf:# DHParameters (only required if DSA/DH is used)


regards

F.R.
Kapil Jha
Honored Contributor

Re: sendmail issue

what about the messages logs i asked, what does it says.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
NDO
Super Advisor

Re: sendmail issue

Hi!

This is tail of /var/adm/syslog/mail.log:

Nov 15 11:42:43 mcelbill sendmail[28776]: oAF76kF17420: to=fretagi@mcel.co.mz, delay=02:35:57, mailer=relay, pri=540328, relay=192.168.1.39, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Nov 15 11:42:43 mcelbill sendmail[28776]: oAF6wgW16739: to=fretagi@mcel.co.mz, delay=02:44:01, mailer=relay, pri=750136, relay=192.168.1.39, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Nov 15 11:42:43 mcelbill sendmail[28776]: oACFGTC14018: to=fretagi@mcel.co.mz, delay=2+18:26:14, mailer=relay, pri=12180134, relay=192.168.1.39, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Nov 15 11:42:43 mcelbill sendmail[28776]: oAF6vMU16659: to=fretagi@mcel.co.mz, delay=02:45:21, mailer=relay, pri=720382, relay=192.168.1.39, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery


regards

F.R.
NDO
Super Advisor

Re: sendmail issue

Hello

Pls can somebody help


F.R.
rariasn
Honored Contributor
Solution

Re: sendmail issue

Hi:

Modify /etc/mail/sendmail.cf

Dj$w.mel.co.mz

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Verify /var/adm/syslog/mail.log file.

rgs,

NDO
Super Advisor

Re: sendmail issue



mailx -s "teste" fretagi@mcel.co.mz g
.
EOT
Null message body; hope that's ok
mcelbill[214]/etc/mail #NIS map mail.aliases specified, but NIS not running

this is the output of mail.log:

>, relay=root@localhost
Nov 15 15:31:18 mcelbill sendmail[12636]: oAFDVIF12636: to=fretagi@mcel.co.mz, delay=00:00:00, mailer=relay, pri=30135, dsn=4.4.3, stat=queued
Nov 15 15:31:18 mcelbill sendmail[12636]: oAFDVIF12636: to=g, delay=00:00:00, mailer=local, pri=30135, stat=queued

regards

F.R
rariasn
Honored Contributor

Re: sendmail issue

Steven E. Protter
Exalted Contributor

Re: sendmail issue

Shalom,

Most corporate environments provide an smtp relay server to deliver mail from Unix hosts to end points.

The DS directive configuration above should take care of that.

The part that the previous posters seems to have forgotten is for the mail relay to work, the relay host must be set up to permit relay.

Mail systems, Unix or windows are set up to by default not permit relay. So find out who manages your smtp relay server and have them set you up. Then the mail should begin to flow.

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
NDO
Super Advisor

Re: sendmail issue

Hi Steven!


I´ve already set the ip address of the relay server just after the DS on /etc/mail/sendmail.cf, I did the same thing on other server running HP-UX 11.31 and it worked fine there, but it does not work on this old 11.23 server. the ip address I put in front of DS was provided by the email admin guy.

So it works fine on new acquired servers, but it does not on the old ones.

Regards

F.R.
TTr
Honored Contributor

Re: sendmail issue

Try a verbose mail message

sendmail -v fretagi@mcel.co.mz

It will give you more feedback as to what happens.
NDO
Super Advisor

Re: sendmail issue

Hi All

Thank you very much to all of you.

I´ve managed to solve the problem, by :

cp -p /etc/nsswitch.hp_defaults /etc/nsswitch.conf
then insert files as "hosts: files" , then restart sendmail

Regards

F.R.
NDO
Super Advisor

Re: sendmail issue

bye