Hi all,

I am trying to track down a possible bug in the RemoteDelivery mailet or its dependencies and could use a little help.

(I am using James 2.1 from the binary distrib., but looking at source from CVS head, which may be a problem...)

Symptoms: For some (usually big -- hotmail, bigfoot, netscape) sites, I end up with messages stuck in the outgoing queue, with retries every hour until the spooler gives-up. This is a big problem for me.

As things are, my DNS server happens to be on the same machine as the James mailserver; DNS is well configured, and the sites in question are being correctly resolved, as are their MX records.

It seems that the RemoteDelivery mailet is trying to connect to the IP address that the DNS returns for the domain, and NOT (one of) the servers listed as the MX host. I am pretty sure of this, based on watching netstat while James is making the connection.

e.g. I am sending mail to a user at bigfoot.com (64.15.239.150). Their MX hosts are listed by dig as being at

bigfoot.com.            30531   IN      MX      10 mail-kr.bigfoot.com.
bigfoot.com.            30531   IN      MX      20 mail.bigfoot.com.
(+ 6 more)
to be found at
mail.bigfoot.com.       29917   IN      A       64.15.239.131
(etc.)

When trying to deliver the message, the mailet connects to 64.15.239.150:25 instead of 64.15.239.131:25, and, of course, times out since there (presumably) is no SMTP server at 64.15.239.150 (confirmed by telnetting to it).

Can anyone tell me where and how the MailetContext gets initialised so that I can take a look through that code to see if the error is there. Of course it may be all the way back in the com.sun.mail.smtp provider, since the stack trace provided my the mailet tells me
java.net.ConnectException: Connection timed out
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:911)
...

OH! I am using JDK1.4.2 on Linux fwiw...

--
mike morris     ::   mike.morris (at) cocosoft . co . za
cOcO software   ::   mike.morris (at) coco-technologies . co . za
                     www . cocosoft . co . za

----- A day without chillies is a day wasted ------


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to