Operating System - HP-UX
1748162 Members
3830 Online
108758 Solutions
New Discussion юеВ

When i try to send mail i receive "Transient parse error"

 
Margarida Brito
Frequent Advisor

When i try to send mail i receive "Transient parse error"

I have several HPUX servers where i configure the mail.

I don't use DNS so I use the /etc/hosts file to make the name resolution.

Most of the servers everything is working fine but in some of then I receive the following message:

company.com: Name server timeout
username@company.com... Transient parse error -- message queued for future delivery
username@company.com... queued

The /var/adm/syslog/mail.log gives the following messages:

Oct 15 19:32:53 jmubwh51 sendmail[23491]: l9FIWrQ23491: to=username@company.com, delay=00:00:00, mailer=relay, pri=0, relay=proxymail.domain.pt, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Oct 15 19:32:53 jmubwh51 sendmail[23491]: l9FIWrQ23491: from=mbrito, size=9, class=0, nrcpts=0, msgid=<200710151832.l9FIWrQ23491@ux.jeronimo-martins.pt>, relay=root@localhost
Oct 15 19:32:53 jmubwh51 sendmail[23491]: l9FIWrQ23491: to=username@company.com, delay=00:00:00, mailer=relay, pri=9, dsn=4.4.3, stat=queued


I already copy all the configuration files (/etc/mail/*) from servers where the mail is working to these nothing is change.

The only difference that I could find was, in the server where the mails are send correctly the order of the messages is:


Oct 15 19:32:53 jmubwh51 sendmail[23491]: l9FIWrQ23491: from=mbrito, size=9, class=0, nrcpts=0, msgid=<200710151832.l9FIWrQ23491@ux.jeronimo-martins.pt>, relay=root@localhost
Oct 15 19:32:53 jmubwh51 sendmail[23491]: l9FIWrQ23491: to=username@company.com, delay=00:00:00, mailer=relay, pri=9, dsn=4.4.3, stat=queued


In the servers where the mail is not working it sends first
Oct 15 19:32:53 jmubwh51 sendmail[23491]: l9FIWrQ23491: to=username@company.com, delay=00:00:00, mailer=relay, pri=0, relay=proxymail.domain.pt, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery

And then the other 2

Oct 15 19:32:53 jmubwh51 sendmail[23491]: l9FIWrQ23491: from=mbrito, size=9, class=0, nrcpts=0, msgid=<200710151832.l9FIWrQ23491@ux.jeronimo-martins.pt>, relay=root@localhost
Oct 15 19:32:53 jmubwh51 sendmail[23491]: l9FIWrQ23491: to=username@company.com, delay=00:00:00, mailer=relay, pri=9, dsn=4.4.3, stat=queued

Thanks in advanced,

MBrito
8 REPLIES 8
Geoff Wild
Honored Contributor

Re: When i try to send mail i receive "Transient parse error"

You get that error because your server can not resolve company.com.

Either add company.com to your hosts file or do like the rest of us and use DNS.

Also, you could just send everything to a smart relay - that way only 1 of your servers needs to be able to use DNS and/or acess the internet.

In /etc/mail/sendmail.cf

DSyourmainemailserver

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Margarida Brito
Frequent Advisor

Re: When i try to send mail i receive "Transient parse error"

I have to correct the messages coming from the server that has the mail working correctly shows the messages like:

Oct 15 18:48:16 jmudwh51 sendmail[21270]: l9FHmGi21270: from=mbrito, size=9, class=0, nrcpts=1, msgid=<200710151748.l9FHmGi21270@jmudwh51.domain.pt>, relay=root@localhost
Oct 15 18:48:17 jmudwh51 sendmail[21270]: l9FHmGi21270: to=username@company.com, ctladdr=mbrito (0/3), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30009, relay=proxymail.domain.pt [10.1.150.251], dsn=2.0.0, stat=Sent ( <200710151748.l9FHmGi21270@jmudwh51.domain.pt> Queued mail for delivery)
Margarida Brito
Frequent Advisor

Re: When i try to send mail i receive "Transient parse error"

Hi,

I have the proxy configured in /etc/mail/sendmail.cf
DSproxysmtp.domain.com
like I have in the other servers but in this server is not working
Geoff Wild
Honored Contributor

Re: When i try to send mail i receive "Transient parse error"

Is localhost defined in /etc/hosts and is it configured the same as the hosts that are working?

Is proxysmtp.domain.com in the hosts file as well?

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
David Bellamy
Respected Contributor

Re: When i try to send mail i receive "Transient parse error"

Do you have an entry for the proxy server in /etc/hosts ?
Margarida Brito
Frequent Advisor

Re: When i try to send mail i receive "Transient parse error"

The contents of /etc/hosts

127.0.0.1 localhost loopback
10.20.1.229 servername servername.company.com
10.1.150.251 proxyname domain1.com domain2.com proxysmtp.domain.com proxymail.company.com

I think nothing is missing.

Luis Duarte
HPE Pro

Re: When i try to send mail i receive "Transient parse error"

Hello Guida,

You have to create the "/etc/nsswitch.conf" with the following entry:

hosts: files

Best regards,
LD
kondorpa
Occasional Visitor

Re: When i try to send mail i receive "Transient parse error"

I have my relay configured, but still modifying the /etc/nsswitch.conf worked for me. 
/etc/nsswitch.conf  didn't exist in the system. so, 

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

Discussion thread 

https://community.hpe.com/t5/General/sendmail-issue/m-p/5262710/highlight/true#M192326