LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-23-2006, 01:20 PM   #1
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Rep: Reputation: 15
Exim, cannot send mail


Hi,
I'm trying to set up a mail server with Exim. I can receive mail, though I can't send it. When I send a message I get this reply from the server:
Code:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  some-email-address@domain.com
    host lookup did not complete: retry timeout exceeded
I don't really understand why I get this message and what I can do about it.
When I do nslookup gmail.com or nslookup hotmail.com I get a good result.
What can I do to solve this?
Thanks in advance,
Ruben
 
Old 01-23-2006, 01:49 PM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 383

Rep: Reputation: 31
A host lookup not completing implies that you have something going on with DNS that is not right. Something that you can try is:

exim -bt -d9 some-email-address@domain.com

and see what the results are. -d9 is debugging information, and may be a bit much at that level, but worth looking at regardless.
 
Old 01-23-2006, 03:53 PM   #3
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
Thanks for the fast reply
The -d9 setting did not work, though I tried the -d-resolver (found it using the manual pages) and it gave me this output:
exim4 -bt -d-resolver some-email@gmail.com (I replaced the real email with some-email, and my own domain name with my-domain)
Code:
Exim version 4.50 uid=0 gid=0 pid=3124 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=3124
  auxiliary group list: <none>
configuration file is /var/lib/exim4/config.autogenerated
log selectors = 00000ffc 00020800
trusted user
admin user
user name "root" extracted from gecos field "root"
originator: uid=0 gid=0 login=root name=root
sender address = root@my-domain
Address testing: uid=0 gid=102 euid=0 egid=102
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Testing some-email@gmail.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering some-email@gmail.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing some-email@gmail.com
--------> hubbed_hosts router <--------
local_part=some-email domain=gmail.com
checking domains
expansion of "${if exists{/etc/exim4/hubbed_hosts}{partial-lsearch;/etc/exim4/hubbed_hosts}fail}" forced failure: assume not in this list
hubbed_hosts router skipped: domains mismatch
--------> dnslookup_relay_to_domains router <--------
local_part=some-email domain=gmail.com
checking domains
gmail.com in "@:localhost:localhost.localdomain:my-domain:my-other-domain"? no (end of list)
gmail.com in ""? no (end of list)
gmail.com in "! +local_domains : +relay_to_domains"? no (end of list)
dnslookup_relay_to_domains router skipped: domains mismatch
--------> dnslookup router <--------
local_part=some-email domain=gmail.com
checking domains
cached no match for +local_domains
cached lookup data = NULL
gmail.com in "! +local_domains"? yes (end of list)
R: dnslookup for some-email@gmail.com
calling dnslookup router
dnslookup router called for some-email@gmail.com
  domain = gmail.com
DNS lookup of gmail.com (MX) gave TRY_AGAIN
gmail.com in dns_again_means_nonexist? no (option unset)
returning DNS_AGAIN
dnslookup router: defer for some-email@gmail.com
  message: host lookup did not complete
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=3124 terminating with rc=1 >>>>>>>>>>>>>>>>
some-email@gmail.com cannot be resolved at this time:
  host lookup did not complete
I hope this is what you where looking for, or that you are now able to find where the problem is.
Thanks in advance,
Ruben
 
Old 01-23-2006, 04:41 PM   #4
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 383

Rep: Reputation: 31
Quote:
Originally Posted by Ruben2
Code:
--------> dnslookup router <--------
local_part=some-email domain=gmail.com
checking domains
cached no match for +local_domains
cached lookup data = NULL
gmail.com in "! +local_domains"? yes (end of list)
R: dnslookup for some-email@gmail.com
calling dnslookup router
dnslookup router called for some-email@gmail.com
  domain = gmail.com
DNS lookup of gmail.com (MX) gave TRY_AGAIN
gmail.com in dns_again_means_nonexist? no (option unset)
returning DNS_AGAIN
dnslookup router: defer for some-email@gmail.com
  message: host lookup did not complete
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=3124 terminating with rc=1 >>>>>>>>>>>>>>>>
some-email@gmail.com cannot be resolved at this time:
  host lookup did not complete
This is the section that gives the most help. Notice that it appears to be trying to do a DNS lookup against the host "router"? Your router unfortunately has no idea what to do with a DNS request, which is what is causing you this grief.

Here is a webpage that will probably help you out in fixing this particular problem.

http://www.exim.org/exim-html-4.00/doc/html/FAQ_3.html

Specifically, I think you need to change your dnslookup entry to something that is legit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot send mail due to exim log file permission zahoo Linux - General 3 11-03-2005 11:42 AM
how to get exim to send email? SciYro Linux - Software 4 09-08-2004 07:26 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM
[EXIM] I can send mail without giving a password? Akropolis Linux - Networking 0 06-09-2004 01:21 PM
exim/mutt - local user can't send mail to isp lea Linux - Software 1 12-12-2002 07:31 AM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration