Debugging a "sendmail" issue


 
Thread Tools Search this Thread
Operating Systems AIX Debugging a "sendmail" issue
# 1  
Old 08-19-2009
Debugging a "sendmail" issue

Basically I am trying to track down the cause of a problem when using sendmail. It seems to work fine to the majority of hosts, however there is a problem which one recipient (lets say hick@jimbob.com) is not getting the emails.

Something to note, when I tried pinging jimbob.com (domain used in the email address) it does not give any results. However the internet browser is able to open the website of jimbob.com, and outlook is able to successfully send to hick@jimbob.com.

Which makes me think this is down to a problem within sendmail. Anyone idea's on how to diagnose this issue?

Appreciate any helpful replies.
# 2  
Old 08-19-2009
Let's start with jimbob... smtp uses port 25, if jimbob.com is alive on that port this will show it:

Code:
ping -p 25 jimbob.com

Do the emails to jimbob show up in the user's dead.letter file? If not, the problem is outside your sphere of control.
# 3  
Old 08-19-2009
Quote:
Originally Posted by jim mcnamara
Let's start with jimbob... smtp uses port 25, if jimbob.com is alive on that port this will show it:

Code:
ping -p 25 jimbob.com

Will definitely try that in the morning. Thought it was very odd not being able to ping it even though their web and mail (from outlook) was receiving traffic fine.

Quote:
Originally Posted by jim mcnamara
Do the emails to jimbob show up in the user's dead.letter file? If not, the problem is outside your sphere of control.
I sent a test email using sendmail yesterday, I'm not exactly sure about "dead.letter" but they were scanning their mail log files and they never seen any existence of the mail getting through (or even any activity from our domain).

Is there anything I can do to verify it is not at my end? Perhaps try to trace where the sendmail is taking my message in each hop and see where it drops off? I would like to know for sure it is leaving our space and is sent to them, if that makes sense. Just not sure how to go about doing this....
# 4  
Old 08-19-2009
Quote:
Originally Posted by neil_is_ere
Something to note, when I tried pinging jimbob.com (domain used in the email address) it does not give any results. However the internet browser is able to open the website of jimbob.com, and outlook is able to successfully send to hick@jimbob.com.
This could be caused by a firewall, which cuts off ICMP traffic. This is rather common these days, even if it is bad firewalling style to do so.

Another idea, unrelated to this: did you check the MX records for the domain jimbob.com and have you checked that the mail exchanger is working?

I hope this helps.

bakunin
# 5  
Old 08-19-2009
Anything useful in the /var/log/maillog, like a code 250 (sendmail success), or a timeout, or name unresolved?
Code:
cat /var/log/maillog | grep jimbob.com

# 6  
Old 08-19-2009
Quote:
Originally Posted by bakunin
This could be caused by a firewall, which cuts off ICMP traffic. This is rather common these days, even if it is bad firewalling style to do so.
I'm not ruling that out either... but as ya know I have to rule other options out first in this situation. And that means doing some stalking on that mail and finding out where the bread crumb trail finishes. Just not sure how to go about doing this form of tracking.

Quote:
Originally Posted by bakunin
Another idea, unrelated to this: did you check the MX records for the domain jimbob.com and have you checked that the mail exchanger is working?
I checked the MX record and it showed the mail servers as some amateurish outfit, when I looked at their website - but I'm not one to judge a book by its cover :-)

How would I confirm that the mail exchanger is working? Is that where I telnet into it?

Quote:
Originally Posted by chompy
Anything useful in the /var/log/maillog, like a code 250 (sendmail success), or a timeout, or name unresolved?
Code:
cat /var/log/maillog | grep jimbob.com

I looked for a log file, but didn't manage to find it at the time. I will check that directory location tomorrow, but if it isn't there is there a way to create one temporarily for sendmail?
# 7  
Old 08-19-2009
On most Linux systems, sendmail will default to that location, but it may be setup elsewhere (check your sendmail.mc or sendmail.cf for location).
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

4. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

5. Shell Programming and Scripting

""Help Me!""Beginner awk learning issue

Hi All, I have just now started learning awk from the source - Awk - A Tutorial and Introduction - by Bruce Barnett and the bad part is that I am stuck on the very first example for running the awk script. The script is as - #!/bin/sh # Linux users have to change $8 to $9 awk ' BEGIN ... (6 Replies)
Discussion started by: csrohit
6 Replies

6. UNIX for Advanced & Expert Users

Sendmail: how to restrict delivery based on "to" or "from"?

Hello, I manage a large sendmail server that handles more than 20,000 pieces of mail per day. It's a bit unusual in that all this mail is only being sent to and from 4 local accounts. (It's an automated transaction processing system, whereby users submit a transaction via email attachment). ... (2 Replies)
Discussion started by: lupin..the..3rd
2 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. Solaris

sendmail "root... User address required." error

I'm running sendmail (8.13.8+Sun/8.13.8/Submit) solaris 10. When I send mail to root at the command line (whether I use a full-qualified address or just root), I get the error message root... User address required. Sending mail to root (either at the command line or in a cron job),... (10 Replies)
Discussion started by: csgonan
10 Replies

9. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Login or Register to Ask a Question