DSM

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • RemoteDelivery could not connect to SMTP host

    10 answers - 1899 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I am running james v2.2.0. Am very new to this. I haven't enabled SMTP
    authentication. Using file repositories. Test account at localhost works
    fine. Problem occurs when I send mail to outside world. Log file shows
    16/06/06 01:43:36 INF James.Mailet: RemoteDelivery: Could not connect to
    SMTP host: 157.227.246.120, port: 25, response: -1
    16/06/06 01:43:36 INF James.Mailet: RemoteDelivery: Temporary exception
    delivering mail (Mail1150380219138-0-to-[domain].com:
    javax.mail.MessagingException: No mail server(s) available at this time.
    at
    (RemoteDelivery.java:617)
    at
    (RemoteDelivery.java:912)
    at java.lang.Thread.run(Thread.java:534)
    I edited the domain name when posting. The domain name is being resolved
    properly. I dont know if the network admin has configured his DNS/MX (Am not
    clear abt these stuff) to allow me to send mail to external machines. These
    mails are getting stored in the "UTGING" folder. There is another thing
    happening. Log file snippet first.
    16/06/06 01:20:03 INF James.Mailet: RemoteDelivery: No mail server found
    for: indiatimes.com
    16/06/06 01:20:03 INF James.Mailet: RemoteDelivery: Temporary exception
    delivering mail (
    javax.mail.MessagingException: There are no DNS entries for the hostname
    indiatimes.com. I cannot determine where to send this message.
    at
    (RemoteDelivery.java:398)
    at
    (RemoteDelivery.java:912)
    at java.lang.Thread.run(Thread.java:534)
    This msg is a bit different from the previous one. This says it could not
    find the mail server. But that is precisely the server I am mailing from.
    Pls clarify. I am ready to learn more and go thru docs. Also can someone
    explain smtp authentication to me. At what stage, will i be prompted for
    username/password? I have configured outlook express to use James.
    Thanks for reading.
  • No.1 | | 1178 bytes | |

    You may have problems with the DNS server.
    Have you configured DNS servers for james?

    Are you windows or linux?

    If on linux can you try:
    "host -t mx indiatimes.com" from command line?

    windows you should be able to do something similar with "nslookup"

    Stefano

    James User wrote:
    I am running james v2.2.0. Am very new to this. I haven't enabled SMTP
    authentication. Using file repositories. Test account at localhost works
    fine. Problem occurs when I send mail to outside world. Log file shows

    16/06/06 01:43:36 INF James.Mailet: RemoteDelivery: Could not connect to
    SMTP host: 157.227.246.120, port: 25, response: -1
    16/06/06 01:43:36 INF James.Mailet: RemoteDelivery: Temporary exception
    delivering mail (Mail1150380219138-0-to-[domain].com:
    javax.mail.MessagingException: No mail server(s) available at this time.
    at
    (RemoteDelivery.java:617)
    at
    (RemoteDelivery.java:912)
    at java.lang.Thread.run(Thread.java:534)

    To unsubscribe, e-mail: server-user-unsubscribe (AT) james (DOT) apache.org
    For additional commands, e-mail: server-user-help (AT) james (DOT) apache.org
  • No.2 | | 1185 bytes | |

    I have entered IP address of the DNS servers in my config.xml file and I have
    enabled autoDiscover also. Even it is getting the same list of addresses.
    Actually here's a piece from my dnsserver log.

    15/06/06 19:15:24 INF dnsserver: Couldn't resolve MX records for domain
    indiatimes.com.
    15/06/06 19:15:34 ERRR dnsserver: Couldn't resolve IP address for host
    indiatimes.com.
    15/06/06 19:20:34 INF dnsserver: Couldn't resolve MX records for domain
    indiatimes.com.
    15/06/06 19:20:34 ERRR dnsserver: Couldn't resolve IP address for host
    indiatimes.com.

    I am running james 2.2.0 on windows2000. nslookup doesn't always return
    IP's. For some sites it does, for some it doesnt. I dont understand how it
    works. All i know is james will request it for the ip address to
    communicate. I dont know what an MX entry means.

    What about the other error msg I posted from my log? Can you also tell me
    abt SMTP authentication? What parameters should I change in config? Maybe a
    guide on tuning config.xml would do a great deal of good to new users. Just
    my 2 cents.

    Thanks anyway, for the reply.
  • No.3 | | 821 bytes | |

    James User wrote:
    I am running james 2.2.0 on windows2000. nslookup doesn't always return
    IP's. For some sites it does, for some it doesnt. I dont understand how it
    works. All i know is james will request it for the ip address to
    communicate. I dont know what an MX entry means.

    Well, then maybe that your dnsservers have problems.
    nslookup is not a random application: if sometimes it doesn't work it
    means that the server does not reply or that you have network problems.
    You should debug the nslookup problem, and once fixed James will
    probably work again. we'll keep searching

    Stefano

    To unsubscribe, e-mail: server-user-unsubscribe (AT) james (DOT) apache.org
    For additional commands, e-mail: server-user-help (AT) james (DOT) apache.org
  • No.4 | | 545 bytes | |

    I do not know nslookup output says DNS request timed out. Timeout was 2
    seconds. Does this mean that the firewall is blocking it?

    Also there is another server, which I know runs on 172104. That is the
    server from which my real mail is fetched to my local system by Lotus Notes.
    But when I send mail to my account on that server, DNS is resolved to
    17226 as per the mailet log. And finally james gives up trying to send
    that mail.

    I am making some mistake. What is it? Is there some info I haven't
    given you?
  • No.5 | | 791 bytes | |

    Im not 100% understand your question. But yes if you get a timeout its
    possible that the firewall block it. Get sure you query the "right"
    dnsserver.

    bye
    Norman

    Am Sonntag, den 18.06.2006, 23:31 -0700 schrieb James User:
    I do not know nslookup output says DNS request timed out. Timeout was 2
    seconds. Does this mean that the firewall is blocking it?

    Also there is another server, which I know runs on 172104. That is the
    server from which my real mail is fetched to my local system by Lotus Notes.
    But when I send mail to my account on that server, DNS is resolved to
    17226 as per the mailet log. And finally james gives up trying to send
    that mail.

    I am making some mistake. What is it? Is there some info I haven't
    given you?
  • No.6 | | 1161 bytes | |

    I am querying the right DNS server. No doubts in that. But some sites are
    blocked. Maybe due to that timeout is happening. DNS query output is like
    this. Note that the domain is valid.
    DNS request timed out.
    timeout was 2 seconds.
    Name: [domain].com
    Address: 172104

    If I give a domain which is "blocked", it says "DNS request timed out.
    timeout was 2 seconds.
    DNS request timed out.
    timeout was 2 seconds." Yes, it is repeated twice.

    And about the other thing, I mentioned that instead of sending msgs to
    172104, it is sending to 17226. This is actually the routing path.
    In this case, this is the error in the log file.

    19/06/06 10:01:44 INF James.Mailet: RemoteDelivery: Temporary exception
    delivering mail (Mail1150371945914-0-to-[domain].com:
    javax.mail.MessagingException: No mail server(s) available at this time.
    at
    (RemoteDelivery.java:617)
    at
    (RemoteDelivery.java:912)
    at java.lang.Thread.run(Thread.java:534)

    Thanks for the help so far. Could the above exception be caused if the
    server requires SMTP authentication and I haven't enabled it in my
    config.xml?
  • No.7 | | 1571 bytes | |

    More info

    I queried the DNS server for MX entries. It has 4 entries. of which is
    17226. *.104 does not have an MX entry. Also indiatimes.com or
    gmail.com have no MX entries. This is from the DNSserver log.

    19/06/06 19:02:00 INF dnsserver: Couldn't resolve MX records for domain
    gmail.com.
    19/06/06 19:02:00 ERRR dnsserver: Couldn't resolve IP address for host
    gmail.com.

    Similar lines are found for indiatimes.com. I believe this will be found for
    any destination which doesn't have an MX entry in the DNS server. But how do
    I overcome this limitation? I am not the DNS server admin. I cannot change
    the entries obviously. I know I am asking you to solve a prob totally
    unrelated to James. Am very sorry. The corresponding mailet log entries
    follow.

    19/06/06 19:02:00 INF James.Mailet: RemoteDelivery: Storing message
    into outgoing after 2 retries
    19/06/06 19:02:00 INF James.Mailet: RemoteDelivery: No mail server found
    for: gmail.com
    19/06/06 19:02:00 INF James.Mailet: RemoteDelivery: Temporary exception
    delivering mail (
    javax.mail.MessagingException: There are no DNS entries for the hostname
    gmail.com. I cannot determine where to send this message.
    at
    (RemoteDelivery.java:398)
    at
    (RemoteDelivery.java:912)
    at java.lang.Thread.run(Thread.java:534)

    Thanks guys. I would like to know what it means when an SMTP server returns
    a response -1. It also says it could not connect to SMTP host. Does this
    tell anything about the destination server?
  • No.8 | | 2099 bytes | |

    Can you query an nameserver outside your network ?
    In linux this can be tested like:

    dig @217.195.0.253 james.apache.org MX

    If this work you can add this nameserver or any external you want to use
    to james config.
    Anyway if and nameserver not have the corresporing entry it should query
    the root servers to get information where to get the entry from.
    But maybe the used nameserver only server internal zones.

    bye
    Norman

    Am Montag, den 19.06.2006, 21:28 -0700 schrieb James User:
    More info

    I queried the DNS server for MX entries. It has 4 entries. of which is
    17226. *.104 does not have an MX entry. Also indiatimes.com or
    gmail.com have no MX entries. This is from the DNSserver log.

    19/06/06 19:02:00 INF dnsserver: Couldn't resolve MX records for domain
    gmail.com.
    19/06/06 19:02:00 ERRR dnsserver: Couldn't resolve IP address for host
    gmail.com.

    Similar lines are found for indiatimes.com. I believe this will be found for
    any destination which doesn't have an MX entry in the DNS server. But how do
    I overcome this limitation? I am not the DNS server admin. I cannot change
    the entries obviously. I know I am asking you to solve a prob totally
    unrelated to James. Am very sorry. The corresponding mailet log entries
    follow.

    19/06/06 19:02:00 INF James.Mailet: RemoteDelivery: Storing message
    into outgoing after 2 retries
    19/06/06 19:02:00 INF James.Mailet: RemoteDelivery: No mail server found
    for: gmail.com
    19/06/06 19:02:00 INF James.Mailet: RemoteDelivery: Temporary exception
    delivering mail (
    javax.mail.MessagingException: There are no DNS entries for the hostname
    gmail.com. I cannot determine where to send this message.
    at
    (RemoteDelivery.java:398)
    at
    (RemoteDelivery.java:912)
    at java.lang.Thread.run(Thread.java:534)

    Thanks guys. I would like to know what it means when an SMTP server returns
    a response -1. It also says it could not connect to SMTP host. Does this
    tell anything about the destination server?
  • No.9 | | 122 bytes | |

    No I cannot query other external DNS servers. Seems like I am restricted to
    using what's available in the network.
  • No.10 | | 643 bytes | |

    James User wrote:
    No I cannot query other external DNS servers. Seems like I am restricted to
    using what's available in the network.

    Talk to your system administrator.

    You said that your internal DNS server often does not reply correctly
    and that you can't access external DNS servers, so you seem to have DNS
    problems. James can't do anything for this. DNS is a needed service in
    order to run an SMTP server.

    Stefano

    To unsubscribe, e-mail: server-user-unsubscribe (AT) james (DOT) apache.org
    For additional commands, e-mail: server-user-help (AT) james (DOT) apache.org

Re: RemoteDelivery could not connect to SMTP host


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "DSM"

EMSDN.COM