Not able to receive emails after job execution


 
Thread Tools Search this Thread
Operating Systems AIX Not able to receive emails after job execution
# 1  
Old 02-16-2015
Not able to receive emails after job execution

Hi,

we've configured mail on DB2 data studio DSWC console. (gave mail relay server details) it used to work fine. like whenever we schedule backup jobs from DB2 side, we used to get emails after job completion.

for some reason, it stopped working now.

Please see the below info messges from mail/syslogs on AIX.

Code:
 Feb 16 15:25:00 aixhost mail:info sendmail[12121]: t1DE4Jmo26017794: to=<myemail@example.com>, delay=3+06:20:41, xdelay=00:01:15, mailer=esmtp, pri=14252015, relay=example.com., dsn=4.0.0, stat=Deferred: Name server: example.com.: host name lookup failure
Feb 16 15:25:00 aixhost mail:info sendmail[12121]: t1DE69Rl23986378: to=<myemail@example.com>, delay=3+06:18:51, xdelay=00:00:00, mailer=esmtp, pri=14252017, relay=example.com., dsn=4.0.0, stat=Deferred: Name server: example.com. : host name lookup failure



Code:
aixhost# mailq

              /var/spool/mqueue (8 requests)
----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient------------
tdfdfvdfvd146666     1701 Fri Feb 16 09:04 <Data_Studio@aixhost>
                 (Deferred: Name server: example.com.: host name lookup failure)
                                         <myemail@example.com>
t1dfvdfv98564445    1712 Fri Feb 16 09:06 <Data_Studio@aixhost>
                 (Deferred: Name server: example.com.: host name lookup failure)


Note: we never gave the mail/relay server details on this particular aixhost. even though, i used to receive emails from data studio.

And we actually gave mail/relay server details in data studio console. mail server is "mailhost.net" ; but logs showing that realy=example.com

please provide your suggestions.

Thank you

Last edited by aaron8667; 02-16-2015 at 05:06 PM..
# 2  
Old 02-16-2015
if you send your e-mails to @example.com, first thing to do (and every e-mail client does) is to check mx record for the domain:

Code:
host -n -t mx example.com

if the domain has no mx record in DNS, the mail will be send to a server with IP of the domain:
Code:
host -n example.com

your message says, that sendmail couldn't find both of the record - neither 'mx' nor 'a' record for the domain example.com. Please address the issue to the DNS administrators of the domain.
# 3  
Old 02-16-2015
Thank you agent.kgb

Code:
[root@AIXHOST]/>host -n -t mx example.com
example.com mail is handled (pri=20) by myexcz1p.domain.com
example.com mail is handled (pri=20) by myexcz7p.domain.com
example.com mail is handled (pri=10) by myexcz3p.domain.com
example.com mail is handled (pri=30) by mymail2hub.domain.com
example.com mail is handled (pri=20) by myexcz1p.domain.com
.....
....
example.com mail is handled (pri=20) by example.compacket size error (0 != 2ff225f3)

Please see the command output.
i can not ping " example.com " from anywhere. i can do nslookup, to see the ip. but not able to ping.


Code:
[root@AIXHOST]/>host -n example.com
 example.com has a address 200.x.x.x  
example.com mail is handled (pri=20) by myexcz1p.domain.com
example.com mail is handled (pri=20) by myexcz7p.domain.com
example.com mail is handled (pri=10) by myexcz3p.domain.com
.....
....
example.com mail is handled (pri=20) by example.compacket size error (0 != 2ff225f3)

do you want me to change anything on /etc/netsvc.conf or /etc/hosts or /etc/resolv.conf ?

thanks
# 4  
Old 02-16-2015
your first mx host is:
example.com mail is handled (pri=10) by myexcz3p.domain.com
could you try to resolve its ip?
Code:
host -n myexcz3p.domain.com

and

Code:
host myexcz3p.domain.com

if output of both commands differs, then you have to change /etc/netsvc.conf to allow bind4 or remove the entry from /etc/hosts
# 5  
Old 02-16-2015
Thanks for your reply.

Actually i can resolve it an address 10.x.x.x

and when i ran other command it is showing the same details. both are same.

in
Code:
/etc/netsvc.conf 
hosts=local,bind

And any other idea pls ?

like do i need to actaully configure sendmail on my LPAR ? like adding mail/relay server details in sendmail.cf file ?
# 6  
Old 02-16-2015
Quote:
like do i need to actaully configure sendmail on my LPAR ? like adding mail/relay server details in sendmail.cf file ?
no, you don't need.

1. try to telnet to port 25 on every mail server, you see in mx records.
2. try to send an e-mail using mail command on the server:

Code:
mail myemail@example.com

# 7  
Old 02-17-2015
Thanks for your help.

port 25 is open on only one server. not on all other exchnage servers

I can only telnet to "mymail2hub.domain.com". and looks like mail command worked; it prompted for subject, cc details etc. but I did not get any email message.


Please see the errors below from logs.

Code:
logs
=====

Feb 17 16:09:53 aixhost mail:info sendmail[9374416]: t1HL9rHd9371656: from=root, size=78, class=0, nrcpts=1, msgid=<201502172109.t1HL9rHd9371656@aixhost.domain.com>, 

relay=root@localhost
Feb 17 16:10:41 aixhost mail:info sendmail[9834405]: t1HLAfJg9830514: from=root, size=11, class=0, nrcpts=1, msgid=<201502172110.t1HLAfJg9830514@aixhost.domain.com>, 

relay=root@localhost
Feb 17 16:11:08 aixhost mail:info sendmail[9373316]: t1HL9rHd9371656: to=myemail@example.com, ctladdr=root (0/0), delay=00:01:15, xdelay=00:01:15, mailer=esmtp, 

pri=30078, relay=example.com., dsn=4.0.0, stat=Deferred: Name server: example.com.: host name lookup failure


 aixmibd.log
=============
 
Wed Jan 21 14:28:28 EST 2015  Connect to SNMP agent on the host loopback failed,
will keep trying
Thu Jan 22 11:33:20 EST 2015  Connect to SNMP agent on the host loopback failed,
will keep trying
Fri Jan 30 23:56:20 EST 2015  Connect to SNMP agent on the host loopback failed,
will keep trying
Sun Feb 15 01:15:10 EST 2015  Connect to SNMP agent on the host loopback failed,
will keep trying

hostmibd.log
==============

 01/21/15 02:28:28 PM -  ../../../../../../src/tcpip/usr/sbin/hostmibd/hr_main.C (586) Connect to SNMP agent failed, will keep trying
 01/22/15 11:33:20 AM -  ../../../../../../src/tcpip/usr/sbin/hostmibd/hr_main.C (586) Connect to SNMP agent failed, will keep trying
 01/30/15 11:56:20 PM -  ../../../../../../src/tcpip/usr/sbin/hostmibd/hr_main.C (586) Connect to SNMP agent failed, will keep trying
 02/15/15 01:15:09 AM -  ../../../../../../src/tcpip/usr/sbin/hostmibd/hr_main.C (586) Connect to SNMP agent failed, will keep trying


snmpmibd.log
=============

 01/21/15 02:28:27 PM -  dpi_main.c (790) snmpmibd (4456584) is starting.
 01/22/15 09:15:08 AM -  dpi_main.c (1416) snmpmibd (4456584) is terminating.
 01/22/15 11:33:19 AM -  dpi_main.c (639) snmpmibd: 1473-665  Connect to SNMP agent failed, will keep trying.
 01/22/15 11:33:19 AM -  dpi_main.c (790) snmpmibd (3473408) is starting.
 01/29/15 09:28:57 PM -  dpi_main.c (1416) snmpmibd (3473408) is terminating.
 01/30/15 11:56:19 PM -  dpi_main.c (639) snmpmibd: 1473-665  Connect to SNMP agent failed, will keep trying.
 01/30/15 11:56:19 PM -  dpi_main.c (790) snmpmibd (3801216) is starting.
 02/13/15 05:47:46 PM -  dpi_main.c (1416) snmpmibd (3801216) is terminating.
 02/15/15 01:15:09 AM -  dpi_main.c (639) snmpmibd: 1473-665  Connect to SNMP agent failed, will keep trying.
 02/15/15 01:15:09 AM -  dpi_main.c (790) snmpmibd (3997826) is starting.


* when i setup mail/realy server details in sendmail.cf file ; and i can receive email from aix lpar using sendmail command.

please let me know if you see anything from logs.

thanks much
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execution problem with CRON job

HI, I have written an executable file in unix and I was able to execute it successfully but when I called this file with cron job it was giving error like "permission denied" and "No such file or directory". Please help in how cron calls the file and what permission is required on the file... (2 Replies)
Discussion started by: vipin kumar rai
2 Replies

2. Shell Programming and Scripting

Problem with Job execution using crontab

Hi All, I am facing a problem with crontab.I made an entry in crontab like this 05 07 * * * /afs2/cdwfullacc/current/exe/cdw_generate_special_klant.sh > /afs2/cdwfullacc/current/scratch/cdw_gen_cron.log But job was not getting executed. Entry in crontab was made with same user by whom... (4 Replies)
Discussion started by: krishna_gnv
4 Replies

3. Programming

Is it possible to receive emails from my computer?

Could someone help me receive emails sent to my ip address with a c program? (5 Replies)
Discussion started by: Errigour
5 Replies

4. Shell Programming and Scripting

Parallel Job Execution

Hi All, At present I am using a UNIX Script which is running a set of JOBS. These JOBS are to be repeated for 20 times, means the same set of JOBS are repeated by just passing different arguments (From 1 to 20). Is there any way by which I can execute them parallel? At present its all... (4 Replies)
Discussion started by: Prashantckc
4 Replies

5. Shell Programming and Scripting

Job Execution in Parallel and Maintain Dependency

All, We need to run multiple jobs in parallel with the dependencies intact. I was trying to use the same with &, but in vain. Is there is any other way to resolve this issue. I need to run Set1 A.sh B.sh C.sh Set2 D.sh E.sh Set3 F.sh (10 Replies)
Discussion started by: anand_msm
10 Replies

6. Solaris

Solaris 10.5 perl and cron job execution problem

Hi, I want to run a crontab job on solaris 10.5. I have configured the crontab accordingly 10 * * * * /scripts/dbalter.pl >> /scripts/cronout.txt However this does not work .Then I go to /var/mail/root and find an error in the output: From root@myserver Wed Feb 4 17:02:00 2009... (1 Reply)
Discussion started by: sonu2die4
1 Replies

7. UNIX for Dummies Questions & Answers

Confirm job execution

Hello everybody, Can anybody tell me how do we comfirm the execution of a scheduled job ? In other words, how do I know whether my scheduled script is being executed or not ? Thanks Jitu JK (2 Replies)
Discussion started by: jitu.jk
2 Replies

8. IP Networking

Configuring POSTFIX to receive emails only from localhost

Hello, I am new to POSTFIX. My manager has asked me to configure POSTFIX running on a server to accept mail only from itself(localhost). Can someone tell me how I can go about doing this? (1 Reply)
Discussion started by: mojoman
1 Replies

9. UNIX for Advanced & Expert Users

Job execution through Xming

Hello, Every evening I run few shell scripts on AIX Production Box, One shell script takes about one hour to complete and does some DB updation and application processing etc. The shell scripts are getting launched from prompt and not through cron or any scheduler as they require some manual... (0 Replies)
Discussion started by: panchpan
0 Replies

10. Shell Programming and Scripting

Sequential execution of job in cron

Hi I have a file say xyz.sh, whose contents are as follows : *************************** #! /bin/ksh set -x . /a.sh . /b.sh . /c.sh ***************************** Now will this execute all the three process simultaneously or sequentially? If it will process simultaneously, is... (3 Replies)
Discussion started by: pankajkrmishra
3 Replies
Login or Register to Ask a Question