Operating System - HP-UX
1833788 Members
2368 Online
110063 Solutions
New Discussion

Not receiving external mail

 
Dexter Adams
Occasional Advisor

Not receiving external mail

Hello,

We have HP UX11 and I am trying to send external email, it seems to work but I dont recveive any mail. Locally all mail work fine, I also have a HPUX10 and this server works fine. I am new to HP UX. Below is an extract from the mail log.
Mar 5 10:17:14 supflow1 sendmail[29116]: KAA29116: from=adamsd, size=0, class=0
, pri=0, nrcpts=0, msgid=<200303050017.KAA29116@supflow1.saa.nsw.gov.au>, relay=
root@localhost
Mar 5 10:17:24 supflow1 sendmail[29363]: KAA29363: from=adamsd, size=0, class=0
, pri=0, nrcpts=0, msgid=<200303050017.KAA29363@supflow1.saa.nsw.gov.au>, relay=
root@localhost
Mar 5 10:23:19 supflow1 sendmail[6627]: KAA06627: from=adamsd, size=3282, class
=0, pri=33282, nrcpts=1, msgid=<200303050023.KAA06627@supflow1.saa.nsw.gov.au>,
relay=root@localhost
Mar 5 10:23:19 supflow1 sendmail[6629]: KAA06627: to=dexter_adams@saa.nsw.gov.a
u, ctladdr=adamsd (432/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, relay
=mail2.saa.nsw.gov.au. [192.220.4.39], stat=Sent (OK)
Mar 5 11:15:31 supflow1 sendmail[5566]: LAA05566: from=adamsd, size=3300, class
=0, pri=33300, nrcpts=1, msgid=<200303050115.LAA05566@supflow1.saa.nsw.gov.au>,
relay=root@localhost
Mar 5 11:15:31 supflow1 sendmail[5568]: LAA05566: to=dexter_adams@hotmail.com,
ctladdr=adamsd (432/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, relay=ma
il2.saa.nsw.gov.au. [192.220.4.39], stat=Sent (OK)


Please help
Thanks
Dexter



timesup
13 REPLIES 13
Sridhar Bhaskarla
Honored Contributor

Re: Not receiving external mail

Hi Dexter,

If you try sending a mail from say yahoo or other internet mail account, do you get back a failed message?. What does it say if so?

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Dexter Adams
Occasional Advisor

Re: Not receiving external mail

I have tried to send an email and this is the error message:

Reporting-MTA: dns; gateway1.saa.nsw.gov.au
Received-From-MTA: dns; mail2.saa.nsw.gov.au (unverified [192.220.4.39])
Arrival-Date: Wed, 5 Mar 2003 11:51:10 +1100

Final-Recipient: rfc822; adamsd@supflow1.nsw.gov.au
Action: failed
Status: 5.4.4 (Permanent failure - routing/network: unable to route)

Cheers
Dexter
timesup
Sridhar Bhaskarla
Honored Contributor

Re: Not receiving external mail

Hi Dexter,

There confusion here. Your returned mail said

adamsd@supflow1.nsw.gov.au


and your mail log shows 'adams@supflow1.saa.nsw.gov.au'.

Look like it is a DNS issue. Weren't you supposed to be sending mail to adams@superflow1.saa.nsw.gov.au?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Dexter Adams
Occasional Advisor

Re: Not receiving external mail

Oops..my fault type error,
Here is the real deal.

Reporting-MTA: dns; gateway1.saa.nsw.gov.au
Received-From-MTA: dns; mail2.saa.nsw.gov.au (unverified [192.220.4.39])
Arrival-Date: Wed, 5 Mar 2003 12:06:29 +1100

Final-Recipient: rfc822; adamsd@supflow1.saa.nsw.gov.au
Action: failed
Status: 5.4.4 (Permanent failure - routing/network: unable to route)

Ta,Dex
timesup
Dexter Adams
Occasional Advisor

Re: Not receiving external mail

Hi,

All I want is to send mail to an external person from the HPUX server, eg: dexter_adams@pillar.com.au, we have DNS in place.

Cheers
Dex
timesup
Jeff Schussele
Honored Contributor

Re: Not receiving external mail

Hi Dexter,

Still appears to DNS related.
A DNS MX (Mail Exchanger) query for saa.nsw.gov.au shows the following:

Trying DNS
saa.nsw.gov.au preference = 10, mail exchanger = mail.magna.com.au
saa.nsw.gov.au preference = 3, mail exchanger = mail1.saa.nsw.gov.au
saa.nsw.gov.au preference = 5, mail exchanger = mail.saa.nsw.gov.au
saa.nsw.gov.au nameserver = ns1.magna.com.au
saa.nsw.gov.au nameserver = ns0.saa.nsw.gov.au
mail.magna.com.au internet address = 203.4.212.90
mail1.saa.nsw.gov.au internet address = 203.11.96.131
mail.saa.nsw.gov.au internet address = 203.11.96.131
ns1.magna.com.au internet address = 203.111.0.10
ns0.saa.nsw.gov.au internet address = 203.11.96.130

I don't see any MX record for mail2.saa.nsw.gov.au
So I'd say that indeed, the msg is correct. The route it's coming in from is not correct. Mail should be coming in from one of the MX records listed above.
Sendmail is very picky about where mail can come from & go to. If the hosts don't match the DNS records, the mail is rejected. This, of course, is to try to stem the tide of spam.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Dexter Adams
Occasional Advisor

Re: Not receiving external mail

Hi Jeff,
So where do I put the MX entry for mail2.saa.nsw.gov.au.

Thanks
Dex
timesup
Jeff Schussele
Honored Contributor

Re: Not receiving external mail

Whomever handles DNS in your company should be notified to look at this & correct it if there's an error.
Else it can get quite complex - and risky - to modify your sendmail to ignore these DNS checks.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sridhar Bhaskarla
Honored Contributor

Re: Not receiving external mail

For me it looks like you have MX record problem with your host supflow1 not mail2 as the message is getting routed to mail2 for ssa.nsw.gov.au domain.

It should be configured into DNS. There will be an MX record for each host entry in the DNS tables.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: Not receiving external mail

One of two things needs to work.

1)

Either DNS has to work.

nsswtich.conf needs to have dns before files on host resolution.

Then nslookup must be able to resolve the external domain name

nslookup yahoo.com

must resolve. To actually get mail onto a big system like yahoo or aol your server needs either a public domain name that resolves on the public internet. The big boys make sure your mail server name resolves.

This can be addressed by modifying /etc/mail/sendmail.cf

Change the Dj directive to

Djyourdomain.gov

save the file

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

OR.

You can use a mail relay server to get mail outside your organization.

Same file, different directive.

DS
[IP_of_mail_relay_server]

save the file

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

One Caveat, you'll need to make sure the mail relay server accepts mail from your HP-UX box for relay. This could be the cause of your whole problem.

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
Dexter Adams
Occasional Advisor

Re: Not receiving external mail

Hey SEP,

Thanks for that I have changes the configuration in the sendmail.cf and now the external mail works.
Well done. Thanks to all
Cheers
Dex
timesup
Sridhar Bhaskarla
Honored Contributor

Re: Not receiving external mail

Hi Dexter,

//
We have HP UX11 and I am trying to send external email, it seems to work but I dont recveive any mail
//
You were already able to send mail before. The Smart Relay Host is for sending mail.

If I recall correctly, your box was not even getting touched when you send mail from the external accounts. So, sendmail.cf won't come into picture at all.

But I can't argue because you said it was working. I might have overlooked something.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Dexter Adams
Occasional Advisor

Re: Not receiving external mail

Hi Sri,

Yes I could send mail to locally but not externally, but now I can send externally. Yes you are right my box is not touched when external mail is sent to it. This is now a concern to us, just sending external mail. Anyway thanks for your input.

Cheers
Dexter
timesup