Re: [exim] Can't send email. - with debug mode.

Top Page
Delete this message
Reply to this message
Author: sam
Date:  
CC: exim-users
Old-Topics: Re: [exim] Can't send email. Please help :(
Subject: Re: [exim] Can't send email. - with debug mode.
sam wrote:

> sam wrote:
>
>> Hi,
>>
>> I m a newbie with exim, any suggestion is highly appreciated.
>> Here is the descriptoin.
>> I m running exim 4.42 with cyrus-imap2.2 and sasl2 in FreeBSD 5.3.
>> Authtentication with imap2.2 is fine. I can login to it without problem.
>> The only problem is when I send email thru Exim, it failed to
>> authenticate due to the top level domain name (domain.com) is not
>> found for the local IP address. The error is as follow:
>> # tail -f /var/log/exim/mainlog
>> 2004-10-12 10:51:00 unexpected disconnection while reading SMTP
>> command from ([192.168.4.235]) [192.168.4.235]
>> 2004-10-12 10:54:30 exim 4.42 daemon started: pid=3650, -q30m,
>> listening for SMTP on port 25 (IPv6 and IPv4)
>> 2004-10-12 10:54:30 Start queue run: pid=3651
>> 2004-10-12 10:54:30 1CH5Tf-000PO9-9Q Message is frozen
>> 2004-10-12 10:54:30 1CH5Te-000PN7-Mm Message is frozen
>> 2004-10-12 10:54:30 End queue run: pid=3651
>> 2004-10-12 10:54:48 no host name found for IP address 192.168.4.235
>> 2004-10-12 10:54:48 H=([192.168.4.235]) [192.168.4.235] sender verify
>> fail for <sam.wun@???>: Unknown user
>> 2004-10-12 10:54:48 H=([192.168.4.235]) [192.168.4.235]
>> F=<sam.wun@???> rejected RCPT <john@???>: Sender verify
>> failed
>> 2004-10-12 10:54:54 unexpected disconnection while reading SMTP
>> command from ([192.168.4.235]) [192.168.4.235]
>>
>> Of course the dns setting does not have IP associated with the top
>> level domain name, but only with the FQDN, that is eg. host.mydot.com
>>
>> The following output from exim shown that the local IP 192.168.4.254 
>> (the one has the exim and imap server hosted) is assoicate with 
>> at.mydot.com:
>> # exim -bh 
>> 192.168.4.254                                                                                   

>>
>>
>> **** SMTP testing session as if from host 192.168.4.254
>> **** but without any ident (RFC 1413) callback.
>> **** This is not for real!
>>
>> >>> host in host_lookup? yes (matched "*")
>> >>> looking up host name for 192.168.4.254
>> >>> IP address lookup yielded at.mydot.com
>> >>> gethostbyname2 looked up these IP addresses:
>> >>> name=at.mydot.com address=192.168.4.254
>> >>> checking addresses for at.mydot.com
>> >>> 192.168.4.254 OK
>> >>> host in host_reject_connection? no (option unset)
>> >>> host in sender_unqualified_hosts? no (option unset)
>> >>> host in recipient_unqualified_hosts? no (option unset)
>> >>> host in helo_verify_hosts? no (option unset)
>> >>> host in helo_try_verify_hosts? no (option unset)
>> >>> host in helo_accept_junk_hosts? no (option unset)
>> 220 at.mydot.com ESMTP Exim 4.42 Tue, 12 Oct 2004 11:10:06 +0800
>>
>> the following command shonw that mydot.com is really refer to 
>> at.mydot.com:
>> # host mydot.com
>> mydot.com mail is handled (pri=10) by at.mydot.com
>> # host 
>> at.mydot.com                                                                                         

>>
>> at.mydot.com has address 192.168.4.254
>>
>> Can anyone help me to resolve this problem?
>> Thanks
>> sam
>>
>>
> The file configuration in the exim directory is made to authenticate
> with cyrus-imap:
> local_delivery:
> driver = lmtp
> command = "/usr/cyrus/bin/deliver -l"
> batch_max = 20
> user = cyrus
>
> If there is any other suggestion related to this setting please let me
> know.
>

Hi,
I used commandline debuging mode test it, it appeared the routing
between host.mydot.com and mydot.com has mis-configuration. The error is
as follow:
commandline:
# exim -d john@???
...
<snip>
--------> dnslookup router <--------
local_part=root domain=at.mydot.com
checking domains
at.mydot.com in "at.mydot.com:mydot.com"? yes (matched "at.mydot.com")
at.mydot.com in "! +local_domains"? no (matched "! +local_domains")
dnslookup router skipped: domains mismatch
...<snip>...

in exim/mainlog file:
2004-10-12 11:57:08 1CHDmb-00017a-VZ <= root@??? U=root P=local
S=282
2004-10-12 11:57:08 1CHDmb-00017a-VZ ** john@???: Unknown user
2004-10-12 11:57:08 1CHDme-00017c-Ii <= <> R=1CHDmb-00017a-VZ U=mailnull
P=local S=1087
2004-10-12 11:57:08 1CHDmb-00017a-VZ Completed
2004-10-12 11:57:08 1CHDme-00017c-Ii User 0 set for local_delivery
transport is on the never_users list
2004-10-12 11:57:08 1CHDme-00017c-Ii == root@??? R=localuser
T=local_delivery defer (-29): User 0 set for local_delivery transport is
on the never_users list

Thanks
Sam