Quote:
Originally Posted by
tristezo2k
Do sendmail tries to *send* it? You should be able to check that on the /var/log/mail* (last resort tcpdump -i if -n port 25 on the server or the equivalent snoop)
Quote:
Originally Posted by
EarleAke
You should also be able to look at the sendmail logs '/var/log/maillog' to see what is going on with the jimbob.com emails. See if they were sent on or if they are still sitting on your host waiting to be delivered.
It doesn't appear there is any log file for sendmail, I have checked the sendmail.cf and it doesn't appear there either. I'm wondering if I can possibly produce a log file on the fly which does the same thing?
I noticed the flag -X in the man pages:
-X LogFile Logs all traffic in and out of sendmail in LogFile for debugging
mailer problems. Use this flag sparingly, since it produces a lot of data very
quickly. This flag applies only to 4.2 or later.
However I'm not sure how to use it, when I try excuting:
$ sendmail -X blah.dat
Cannot chdir(/var/spool/mqueue): The file access permissions do not allow the specified action.
Not sure if there is anything better available either.
Quote:
Originally Posted by
tristezo2k
How did you ping it? ping jimbob.com ? It might not be the correct ip.
When an MTA tries to send an email, it asks for the MX dns record.
It usually points to smtp||mail.domain.tld, but could be any other name/address
<snip>
So, the server is able to communicate with the domain.tld MX
Quote:
Originally Posted by
EarleAke
Once you find out who the mail exchanger is, you could try to telnet to port 25 of that host which is the SMTP port and see if it responds.
I followed your steps, but it hanged:
Trying...
telnet: connect: A remote host did not respond within the timeout period.
What I did.... I obtained the MX record and used the mail server it listed. Tested for not just jimbob.com, but also gmail.com, hotmail.com and yahoo.com - they all hanged. So I'm guessing it is a security restriction blocking the telnet session for external sites.
---------- Post updated at 05:27 PM ---------- Previous update was at 06:23 AM ----------
Apologies for bringing this back into light, but has anyone else got any more ideas? Kinda struggling to find a resolution to this one.
I will get the mail log working tomorrow, but there doesn't seem an awful lot of information going into it.
Unfortunately I can't test the connection by telneting to the mail server (as stated above), must be getting blocked when attempting to telnet into the external site.
Helpful replies so far though, but need moooOOORRRE! :-)