Operating System - HP-UX
1825756 Members
2297 Online
109687 Solutions
New Discussion

Re: Problem in Configuring the Sendmail in HP-UX

 
Bittukk
Occasional Contributor

Problem in Configuring the Sendmail in HP-UX

Hi,
We have a internet server having ip Address xx.xx.xx.xx(Public IP) which is NATed to an IP xx.xx.xx.xx(Internal IP).The Opened ports in the server is ssh,sftp & http as per the security team.Today i configured the Sendmail server in this machine to sending emails.
The startegy of configuring the sendmail is that we have portals for our customers to send the request for the services which we are providing.Once of the admin of our side is accepted the request an auto mail has to sent to the respective customer.Here iam configured the mail-relay and every thing,But while testing i am getting a message which is pasted below.

Oct 25 16:01:36 xxxx sendmail[21870]: QAA21870: to=, delay=00:00:00, mailer=local, stat=Transient parse error -- message queued for future delivery
Oct 25 16:01:36 xxxx sendmail[21870]: QAA21870: ruleset=check_mail, arg1=, relay=root@xxx.xx.xx.xx.com [xx.xx.xx.xx], reject=451 Sender domain must resolve
Oct 25 16:01:36 xxxx sendmail[21870]: QAA21870: from=, size=0, class=0, pri=0, nrcpts=0, proto=ESMTP, relay=root@xxx.xx.xx.xx.com [xx.xx.xx.xx]
Oct 25 16:15:47 xxxx sendmail[21940]: QAA21940: to=, delay=00:00:00, mailer=local, stat=Transient parse error -- message queued for future delivery
Oct 25 16:15:47 xxxx sendmail[21940]: QAA21940: ruleset=check_mail, arg1=, relay=root@xxx.xx.xx.xx.com [xx.xx.xx.xx], reject=451 Sender domain must resolve
Oct 25 16:15:47 xxxx sendmail[21940]: QAA21940: from=, size=0, class=0, pri=0, nrcpts=0, proto=ESMTP, relay=root@xxx.xx.xx.xx.com [xx.xx.xx.xx]

Here is my /etc/mail/access file

127.0.0.1 RELAY
localhost RELAY
xx.xx.xx.xx(ip of the server) RELAY
xxxxxxxx(hostname of the Server) RELAY

Is any need to open the smtp port in the machine to enable the service for resolving the valid doamin name.Please help me in this issue.

Regards,
Bittu.k.k
9 REPLIES 9
Adisuria Wangsadinata_1
Honored Contributor

Re: Problem in Configuring the Sendmail in HP-UX

Hi,

Check the url (docID : KBRC00003561) below about 'Sendmail: using sendmail as a relay host' :

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080080392

Need you to check :
1. /etc/mail/sendmail.cf for mail-relay entry
2. /etc/hosts for mail-relay entry

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Mel Burslan
Honored Contributor

Re: Problem in Configuring the Sendmail in HP-UX

Transient parse errors usually originating from your server not being able to communicate with the recipients' mail server using SMTP. Transient means it is for this moment and it will be tried in the future. Usually messages with this error gets delivered after a while. I think some of your messages are meking their way out to their destinations. Is that right ? If these messages linger around longer than a couple of days, then you need to check the validity of the email addresses as it may be the prohibitive factor.

HTH
________________________________
UNIX because I majored in cryptology...
Bittukk
Occasional Contributor

Re: Problem in Configuring the Sendmail in HP-UX

Hi

After configuring the sendmail from your advice this is the result while i am trying to send email.
Please find my sendmail.cf


# "Smart" relay host (may be null)
DS xxxxx

# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM
Dj$w.xxxxx.

Here is my /etc/hosts

xx.xx.xx.xx. xxxxx.india.hp.com xxxxx.
127.0.0.1 localhost loopback


# sendmail -v bittukk@hp.com hp.com: Name server timeout
bittukk@hp.com... Transient parse error -- message queued for future delivery
bittukk@hp.com... queued
#

Please help me what the next i have to do?

Regards,
Bittu.k.k

RAC_1
Honored Contributor

Re: Problem in Configuring the Sendmail in HP-UX

What does mailq -d -v say??
There is no substitute to HARDWORK
Adisuria Wangsadinata_1
Honored Contributor

Re: Problem in Configuring the Sendmail in HP-UX

Hi Bittu,

As Mel's reply, you need to wait for awhile and re-check whether the mail has been sent or not.

You can try to ping from your HP-UX server to the mail server, make sure the connection is established. And the other way around.

Check the document at the url below for more troubleshooting :


http://www2.itrc.hp.com/service/iv/docDisplay.do?docId=prodITRC/DE_SW_UX_sendmail_EN_01_E/nstimeouthosts.htm

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Bittukk
Occasional Contributor

Re: Problem in Configuring the Sendmail in HP-UX

Hi Adisuria,

As per the document i configured the sendmail.Now iam getting the error pasted below

# sendmail -v bittukk@hp.com bittukk@hp.com... User unknown
/dead.letter... Saved message in /dead.letter

Am suspecting that port of the server is not opened in the firewall.Is any need to open the smtp port in the machine to enable the service for resolving the valid doamin name.

Please help me in this issue.

Regards,
Bittu.k.k

Bittukk
Occasional Contributor

Re: Problem in Configuring the Sendmail in HP-UX

Hi RAC,
This prints while i am typing the command which you prefered.
=======================

Version 8.9.3 (PHNE_29774)
Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7
NAMED_BIND NDBM NETINET NETUNIX NEWDB NIS NISPLUS QUEUE SCANF
SMTP USERDB XDEBUG
setoption Verbose (v).=T
setoption SevenBitInput (7).=False
setoption EightBitMode (8).=pass8
setoption AliasWait (a).=10
setoption AliasFile (A).=/etc/mail/aliases
setoption MinFreeBlocks (b).=100
setoption BlankSub (B).=.
setoption HoldExpensive (c).=False
setoption DeliveryMode (d).=background
setoption TempFileMode (F).=0600
setoption HelpFile (H).=/usr/share/lib/sendmail.hf
setoption SendMimeErrors (j).=True
setoption ForwardPath (J).=$z/.forward.$w+$h:$z/.forward+$h:$z/.forward.$w:$z/.forward
setoption ConnectionCacheSize (k).=2
setoption ConnectionCacheTimeout (K).=5m
setoption UseErrorsTo (l).=False
setoption LogLevel (L).=9
setoption CheckAliases (n).=False
setoption OldStyleHeaders (o).=True
setoption PrivacyOptions (p).=authwarnings
setoption QueueDirectory (Q).=/var/spool/mqueue
setoption Timeout (r).queuereturn=5d
setoption Timeout (r).queuewarn=4h
setoption SuperSafe (s).=True
setoption StatusFile (S).=/etc/mail/sendmail.st
setoption TimeZoneSpec (t).=
setoption DefaultUser (u).=1:1
setoption TryNullMXList (w).=T
setoption ServiceSwitchFile (0x86).=/etc/mail/service.switch
setoption SmtpGreetingMessage (0x90).=$j Sendmail $v/$Z; $b
setoption UnixFromLine (0x91).=From $g $d
setoption OperatorChars (0x92).=.:%@!^/[]+
setoption MaxHeadersLength (0xaa).=32768
drop_privileges(0): Real[UG]id=0:3, RunAs[UG]id=0:0
getauthinfo: root@localhost

============ SYSTEM IDENTITY (after readcf) (short domain name) $w = xxxxx
(canonical domain name) $j = $w.
(subdomain name) $m =
(node name) $k = xxxxx
========================================================

setoption HoldExpensive (c).=F
setoption DeliveryMode (d).=
dropenvelope 40016f88: id=, flags=1
orderq:
Mail queue is empty

====finis: stat 0 e_id=NOQUEUE e_flags=1



Adisuria Wangsadinata_1
Honored Contributor

Re: Problem in Configuring the Sendmail in HP-UX

Hi Bittu,

Yup, port 25 for sendmail.

# ps -ef|grep sendmail

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Bittukk
Occasional Contributor

Re: Problem in Configuring the Sendmail in HP-UX

Hi Adisuria Wangsadinata,
This is the result for while iam doing
This is for the NATed IP xx.xx.xx.xx.
ps -ef|grep sendmail
root 7240 1 0 13:58:21 ? 0:00 sendmail: accepting connections on port 25
root 7399 6942 0 14:20:59 pts/3 0:00 grep sendmail

Iam suspecting that we have to open the 25 port for the public ip which is mentioned earilier? is it so?

Regards,
Bittu.k.k