Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail Problem :( 2

Status
Not open for further replies.

Neutje

Programmer
Sep 19, 2001
38
BE
Hi,

I have a very annoying problem on my webserver --> sendmail works but it always takes a few days before the mail arrives :(

anyone has a idea how it comes ?
will the logs tell it to me ? <-- where and how can i find the logs ?

 
Seems as if your problem is a bit vague, but it sounds familiar. Actually I would start with any DNS information that pertains to your website, such as your MX records. Inside of each DNS name table is an entry for a Mail exchanger (MX), if this machine resides with your ISP maybe have them look into it there, otherwise check on your DNS tables and make an entry similar to this:
IN MX 10 mailserver

The number 10 is your priority level, where mailserver would be the actual name of your machine. When mail tries to come to your domain it bounces around looking for your MX information, which is what takes it so long to arrive. Hope this helps.

--bp
 
Hi,

Its not like this, I better explair a little bit better I guess :)

When I send a mail from my server to another server it takes some days before the message arrives on the OTHER server. Theres a problem with the sending of a mail not recieving, recieving is very fast :)

Do you understand this better now ?

greetz,
Neutje
 
A good idea would be to test the connection and DNS first to see if the problem lies there or with sendmail. Type the following:

nslookup (you will go into a promptless shell)
set type=mx
targetdomain.com (type yourtarget domain name here instead)

Get the IP address of the mail server from the listing.

CTL D to break out.

Now do a telnet from your web/mail server:
telnet <IP Address> 25

This should give you a connection to the target mail server. You can now send a test message manually if you want by doing the following:

mail from: you@domain.com <CR>(your email address)
rcpt to: receiver@target.com <CR>(receiver's email address)
data <CR>
type some message here, to end do a <CR>, type a . and <CR>


If you got through the above with no hitches and connectivity problems then you will probably need to look at the receiving mailserver for answers.

Hope this helps
Chris



IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
Also, you can run sendmail in verbose manual mode:

echo &quot;test&quot; | sendmail -v you@somewhere.com

will show you exactly what sendmail does and may help you figure out why it is taking so long. Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Quite so Tony, don't know why I always want to do it the difficult way!....LOL IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
Well, I didn't mean at all that he shouldn't do what you suggested. He should- because if that works quickly and sendmail doesn't, that's an important thing to know.

But:

dig targetdomain mx

is a little easier than nslookup for that.

Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top