1830899 Members
2514 Online
110017 Solutions
New Discussion

email from unix lost

 
SOLVED
Go to solution
Vlad_11
Frequent Advisor

email from unix lost

Hi,
Our customer can not recieve email send thru ELM from UNIX box, it's the only one from >20 others who succesfully getting one.
Sender shown is xxx@ourdomain.com.
Our syslog are all fine, we can send, and then check email being sent to remote @domain.com.

At the same time we communicating thru Outlook without any problem (sender is zzz@ourdomain.com) and he doens't see anything wrong in his logs too.

ANy ideas.

Thanks
Mario
beer or not beer
19 REPLIES 19
Steven E. Protter
Exalted Contributor
Solution

Re: email from unix lost

This test will let you figure out if the problem is on your HP-UX box.

sendmail -v -d8.99 -d38.99 someone@domain.com
type some text

.


You will get verbose output which you can redirect to a file.

Try this and post and I can tell you exactly what happened if you can't.

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
Vlad_11
Frequent Advisor

Re: email from unix lost

Hi, Steven
I'm using elm, and don't have sendmail.
mail.log shows:
========================================
Feb 24 10:39:58 pcx3 sendmail[10285]: i1OIdvC10285: from=searmail, size=558234, class=0, nrcpts=3, msgid=<200402241839.i1OIdvC10285@pcx3.trading.sear.net>, relay=searmail@localhost
Feb 24 10:39:58 pcx3 sendmail[10299]: i1OIdvC10285: to=djm9@ix.netcom.com,dainova@yahoo.com,XXXXX@spear.com, ctladdr=searmail (1190/20), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=738234, relay=win-corp-mail1.corp.sear.net. [172.17.0.73], dsn=2.0.0, stat=Sent ( <200402241839.i1OIdvC10285@pcx3.trading.sear.net> Queued mail for delivery)
=================================

in this case there were 3 reciepients in TO: XXXXX@spear.com don't get any mail, others OK.

Thanks
M
beer or not beer
Steven E. Protter
Exalted Contributor

Re: email from unix lost

Just because you are using elm does not mean my diagnostic tool won't work. The agent that elm uses to send the mail is sendmail. The mail log you are looking at is the log of the sendmail agent. Elm' doesn't do email by itself.

Try my diagnosis, it will tell you something.

Based on the log however it appears there is a problem with host resolution. The domain name of the target mail server is probably not resolving.

nslookup the hostname and see what answer you get.

check that the name servers in /etc/resolv.conf

Make sure they can be pinged and are providing answers. If there are DNS issues resolve them and the mail will go through.

Other possibility is you have a DS directive in your sendmail.cf configuration and the server that is supposed to accept the relayed mail is not.

mailq

This should show you that there is mail piling up on your box awaiting delivery. In a few days it will start bouncing back.

Again the sendmail diagnostic command will definitively nail down the problem and help me or others suggest solutions.

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
Jeff Schussele
Honored Contributor

Re: email from unix lost

Hi Mario,

Any msgs left in /var/spool/mqueue?
If not, it's being delivered to
pcx3.trading.sear.net - so you'd have to go over it's logs to see what's happening to it there.

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

Re: email from unix lost

Can it again be a resolving problem. Most times when a message did not arrive to a specific domain. The HP-UX system migth have a problem to resolve this domain.

It does not have to know exact IP-address, but the domain itself need to be resolved.

For testing, try to put spear.com in your /etc/hosts file like:

1.1.1.1 spear.com

Try to send a mail with ELM, when this is recieved OK, try to fix resolving the domain via DNS when available.


HTH,
Peter
Vlad_11
Frequent Advisor

Re: email from unix lost

Ufff...
Thanks all guys !!!
Doing now all things you posted. Will keep you updated.

Tahnks
Mario
beer or not beer
Vlad_11
Frequent Advisor

Re: email from unix lost

Steven, Hi
Hi, everybody
I couldnt use sendmail -v ...., nowhere to be found,

I nslookup and found that there is an alias I'm using spear-speartrade:

C:\>nslookup www.bear.com
Server: win-corp-dc3.corp.searf
Address: 171.17.0.55

Non-authoritative answer:
Name: www.speartrade.com
Address: 207.132.247.49
Aliases: www.spear.com

I don't have enough authority to deal with root owned files, so have to talk to the main guy.

Thanks everybody
Will try to send to @speartrade.com
beer or not beer
Sridhar Bhaskarla
Honored Contributor

Re: email from unix lost

Hi Mario,

You can find sendmail under /usr/sbin. It's not in your path by default. You are supposed to using the interfaces of it that are in /usr/bin like mailx,mail, rmail, elm etc.,

As Jeff pointed out, the mail is being delivered to your relayhost and you would need to check the logs on that host.

Did you say only one customer is not receiving the mail out of 20?. If so, are the other recepients in the same domain as of the customer that is having problem?. Then there is absolutely no problem with your mail setup. It would be the problem with that particular user on his/her domain. Try sending that person an individual mail from somewhere like yahoo.com.

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

Re: email from unix lost

Revised diagnostic.

/usr/sbin/sendmail -v -8.99 -d38.99
text

.


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
Vlad_11
Frequent Advisor

Re: email from unix lost

Thanks, Steven
Ye, you commnad produce good amount of output (attached).
Our client told us that they do some anti-spam things, that requieres bound back for all coming emails.
I'm able to send and see email sent to test@yahoo.com. On yahoo sender is
searsmail@sears.com.

However in UNIX log I have:
Feb 24 14:32:01 pcx3 sendmail[22006]: i1OMW1g21994: to=test@yahoo.com,xxxx@spear.com,
ctladdr=pcxmail (1190/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=708213, relay=win-corp-mail1.corp.sears.net. [172.17.0.73], dsn=2.0.0, stat=Sent ( <200402242232.i1OMW1g21994@pcx3.trading.sears.net> Queued mail for delivery)

note the difference @sears.com and pcx3.trading.sears.net .
Thant another question. I'm able to reply to searsmail@sears.com (sender as on yahoo).

Thanks
M
beer or not beer
Vlad_11
Frequent Advisor

Re: email from unix lost

To Sridhar Bhaskarla :
=======================================
Thanks for comments. I'm OK communicating with our client thru email over Outlook (myname@sears.com). Mail from UNIX box is problem.
Even if I sending email to multiple addresses like:
test@yahoo.com,client@spear.com
@yahoo.com is OK, @spear.com is NOT.

THanks
beer or not beer
Vlad_11
Frequent Advisor

Re: email from unix lost

Still doen't work.
beer or not beer
Hoefnix
Honored Contributor

Re: email from unix lost

Are you able to resolve spears.com from the UNIX box?

I a previous post you resolved from a Windows system (seeing the c:\>nslookup)

When you are at the command prompt on the UNIX box, can you try to do the same nslookup?

You are not able to edit root owned files, so modifying /etc/resolv.conf or /etc/hosts is no option yet (you have to contact your sysadmin)

What you can try is sending the email via ELM to: user@207.132.247.49 (got the IP from your nslookup),I never done this but mayby it works fine for testing.

HTH,
Peter Geluk
Hoefnix
Honored Contributor

Re: email from unix lost

By looking at the sendmail debug log you attached I am in doubt,
Are you trying to send to user@spears.com??
Or to user@sears.com

spears.com resolves to 208.179.50.72
sears.com resolves to 129.33.131.219

At least at my site of the world ;)

HTH,
Peter
Vlad_11
Frequent Advisor

Re: email from unix lost

Hi, Peter
Yes I'm able to resolve it on UNIX:
$ nslookup www.spear.com
Name Server: adminp1.tux.sears.net
Address: 192.168.20.40

Trying DNS
Non-authoritative answer:
Name: www.spearleads.com
Address: 207.142.237.49
Aliases: www.speear.com

Tried to send to @207.142.237.49.
Will keep posted

M
beer or not beer
Sridhar Bhaskarla
Honored Contributor

Re: email from unix lost

Hi Mario,

Can you ask your client to send the "Internet Headers" of the message received at their end when you sent the mail through outlook?. In outlook, you can find it out through View -> Options. Also, if there is any problem with lookup or something, you would get a returned mail back. Do you have any?. If so, post the headers.

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

Re: email from unix lost

Another little trick I learned after my anti-spam sendmail configuration script blew up three mail servers.

sendmail -v -q

This will give you a blow by blow on whats going wrong, if the mail is hung up in the mail queue.

I imagine it will work with the -d8.99 -d38.99 directive as well.'

Seems based on your last post and Sri's question that this server is not getting the same lookup information as the Microsoft boxes.

Fixing the environment so that lookups are consistent will more than likely solve the 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
Hoefnix
Honored Contributor

Re: email from unix lost

If you can resolve the domain from the UNIX system I would expect the mail is going to your mail-server.So sending to the IP will not help.

So try to get log's of the relay host or the mail-server at the other end like Sri posted.

(I know there were some problems with mail-formats of ELM and reading it back with Outlook, but still the mail would arive. You do not have mailx? Just for test)

Peter
Vlad_11
Frequent Advisor

Re: email from unix lost

Hi, Sridhar
Just asked again client, they said that they don't have any traces of this mail including mail abuse logs..
Can not give 100% for that, but they sounds very solid.
So still unclear.
Mail to client@IP.IP.IP.IP doesn't work, I tested it to known IP vs domain.com.

One more time I have output of senmail diagnosys posted as attachment and piece of mail.log as well for review.

Will reopen case tomorrow, thanks everybody.

V
beer or not beer