[Pkg-exim4-users] Re: Exim4 delivery question (More info)

Wayne Topa huntbrittany@intergate.com
Tue, 7 Jun 2005 18:15:36 -0400


Wayne Topa(linuxone@intergate.com) is reported to have said:
> 
> 
> Marc
> 
>   Here are the results of the debug
> 
> ---  with cram_md5 + plain + login all enabled ----
> 
> 2005-06-06 09:04:15 1DfHDv-00034s-D5 cram_md5 authenticator failed H=smtp.intergate.com [216.139.64.8] 535 5.7.0 authentication failed
> 2005-06-06 09:04:16 1DfHDv-00034s-D5 => pkg-exim4-users@lists.alioth.debian.org F=<huntbrittany@intergate.com> P=<huntbrittany@intergate.com> R=smarthost T=remote_smtp_smarthost S=314 H=smtp.intergate.com [216.139.64.8]:25 C="250 2.0.0 j56D6mja007303 Message accepted for delivery" QT=3m17s DT=3s
> 2005-06-06 09:04:16 1DfHDv-00034s-D5 Completed QT=3m17s
> 
> 
> Maybe they did get my mail?  Cram_md5 still fails but the mail was accepted????
> 
> ---------- Plain + Login enabled -------------------
> 
> 2005-06-06 09:23:14 1DfHZS-0003zH-MI "wtopa@intergate.com" from env-from rewritten as "huntbrittany@intergate.com" by rule 2
> 2005-06-06 09:23:14 1DfHZS-0003zH-MI "wtopa@intergate.com" from from: rewritten as "huntbrittany@intergate.com" by rule 2
> 2005-06-06 09:23:14 1DfHZS-0003zH-MI <= huntbrittany@intergate.com U=wtopa P=local S=303 from <wtopa@intergate.com> for pkg-exim4-users@lists.alioth.debian.org
> 2005-06-06 09:23:22 1DfHZS-0003zH-MI => pkg-exim4-users@lists.alioth.debian.org F=<huntbrittany@intergate.com> P=<huntbrittany@intergate.com> R=smarthost T=remote_smtp_smarthost S=314 H=smtp.intergate.com [216.139.64.8]:25 C="250 2.0.0 j56DPsJK008513 Message accepted for delivery" QT=8s DT=7s
> 2005-06-06 09:23:22 1DfHZS-0003zH-MI Completed QT=8s
> 
> 
> Other then the ISP being very inconsistant, the only thing I wonder about is the 
> "wtopa@intergate.com".  Shouldn't that be wtopa@localhost or wtopa@buddy.mtntop.home
> which is the local domain?  In the /etc/email-addresses it reads
> wtopa:  huntbrittany@intergate.com
> 
> Sorry about the lack of your replies.  I forgot to add the list to my
> .mailfilterrc.  I got your replies from the archives.  Thanks!!!

Here is the relevent portion from echo foo |/usr/sbin/exim4 -d
pkg-exim4-users@lists.alioth.debian.org.

>>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>
--------> linuxone@intergate.com <--------
search_tidyup called
changed uid/gid: remote delivery to linuxone@intergate.com with transport=remote_smtp_smarthost
  uid=114 gid=114 pid=20651
  auxiliary group list: <none>
set_process_info: 20651 delivering 1DfJ6t-0005N1-IZ using remote_smtp_smarthost
T: remote_smtp_smarthost for linuxone@intergate.com
remote_smtp_smarthost transport entered
  linuxone@intergate.com
intergate.com in queue_smtp_domains? no (option unset)
checking status of smtp.intergate.com
locking /var/spool/exim4/db/retry.lockfile
locked /var/spool/exim4/db/retry.lockfile
opened hints database /var/spool/exim4/db/retry: flags=0
dbfn_read: key=T:smtp.intergate.com:216.139.64.8
dbfn_read: key=T:smtp.intergate.com:216.139.64.8:1DfJ6t-0005N1-IZ
no host retry record
no message retry record
smtp.intergate.com [216.139.64.8] status = usable
216.139.64.8 in serialize_hosts? no (option unset)
delivering 1DfJ6t-0005N1-IZ to smtp.intergate.com [216.139.64.8] (linuxone@intergate.com)
set_process_info: 20651 delivering 1DfJ6t-0005N1-IZ to smtp.intergate.com [216.139.64.8] (linuxone@intergate.com)
set_process_info: 20648 delivering 1DfJ6t-0005N1-IZ: waiting for a remote delivery subprocess to finish
selecting on subprocess pipes
Connecting to smtp.intergate.com [216.139.64.8]:25 ... connected
waiting for data on socket
read response data: size=89
  SMTP<< 220 corpweb.trip.net ESMTP Sendmail 8.13.4/8.13.4; Mon, 6 Jun 2005 10:04:43 -0500 (CDT)
216.139.64.8 in hosts_avoid_esmtp? no (option unset)
  SMTP>> EHLO buddy.mtntop.home
waiting for data on socket
read response data: size=258
  SMTP<< 250-corpweb.trip.net Hello host-69-95-18-11.roc.choiceone.net [69.95.18.11], pleased to meet you
         250-ENHANCEDSTATUSCODES
         250-PIPELINING
         250-8BITMIME
         250-SIZE 40000000
         250-DSN
         250-ETRN
         250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
         250-DELIVERBY
         250 HELP
216.139.64.8 in hosts_require_tls? no (option unset)
using PIPELINING
216.139.64.8 in hosts_require_auth? no (option unset)
gethostbyname2(af=inet6) returned 4 (NO_DATA)
gethostbyname2 looked up these IP addresses:
  name=smtp.intergate.com address=216.139.64.8
216.139.64.8 in hosts_try_auth? yes (matched "smtp.intergate.com")
scanning authentication mechanisms
search_open: lsearch "/etc/exim4/passwd.client"
search_find: file="/etc/exim4/passwd.client"
  key="smtp.intergate.com" partial=-1 affix=NULL starflags=1
LRU list:
  :/etc/exim4/passwd.client
  End
internal_search_find: file="/etc/exim4/passwd.client"
  type=lsearch key="smtp.intergate.com"
file lookup required for smtp.intergate.com
  in /etc/exim4/passwd.client
lookup yielded: Login.Passwd
 search_open: lsearch "/etc/exim4/passwd.client"
  cached open
search_find: file="/etc/exim4/passwd.client"
  key="smtp.intergate.com" partial=-1 affix=NULL starflags=1
LRU list:
  :/etc/exim4/passwd.client
  End
internal_search_find: file="/etc/exim4/passwd.client"
  type=lsearch key="smtp.intergate.com"
cached data used for lookup of smtp.intergate.com
  in /etc/exim4/passwd.client
lookup yielded: Login.Passwd
  SMTP>> AUTH CRAM-MD5
waiting for data on socket
read response data: size=58
  SMTP<< 334 PDM1Mjg2MDczNDMuMTA3NzQwOThAY29ycHdlYi50cmlwLm5ldD4=
  SMTP>> ************************************************************
waiting for data on socket
read response data: size=33
  SMTP<< 535 5.7.0 authentication failed
cram_md5 authenticator yielded 2
LOG: MAIN
  cram_md5 authenticator failed H=smtp.intergate.com [216.139.64.8] 535 5.7.0 authentication failed
plain authenticator yielded 12
login authenticator yielded 12
  SMTP>> MAIL FROM:<boss@localhost> SIZE=1298
  SMTP>> RCPT TO:<linuxone@intergate.com>
  SMTP>> DATA
waiting for data on socket
read response data: size=143
  SMTP<< 250 2.1.0 <boss@localhost>... Sender ok
  SMTP<< 250 2.1.5 <linuxone@intergate.com>... Recipient ok
  SMTP<< 354 Enter mail, end with "." on a line by itself
  SMTP>> writing message and terminating "."
writing data block fd=6 size=278 timeout=300
waiting for data on socket
read response data: size=56
  SMTP<< 250 2.0.0 j56F4h03015992 Message accepted for delivery
journalling linuxone@intergate.com
ok=1 send_quit=1 send_rset=0 continue_more=0 yield=0 first_address is NULL
transport_check_waiting entered
  sequence=1 local_max=500 global_max=-1
locking /var/spool/exim4/db/wait-remote_smtp_smarthost.lockfile
locked /var/spool/exim4/db/wait-remote_smtp_smarthost.lockfile
opened hints database /var/spool/exim4/db/wait-remote_smtp_smarthost: flags=2
dbfn_read: key=smtp.intergate.com
no messages waiting for smtp.intergate.com
  SMTP>> QUIT
set_process_info: 20651 delivering 1DfJ6t-0005N1-IZ: just tried smtp.intergate.com [216.139.64.8] for linuxone@intergate.com: result OK
Leaving remote_smtp_smarthost transport
set_process_info: 20651 delivering 1DfJ6t-0005N1-IZ (just run remote_smtp_smarthost for linuxone@intergate.com in subprocess)
search_tidyup called
reading pipe for subprocess 20651 (not ended)
read() yielded 5
selecting on subprocess pipes
reading pipe for subprocess 20651 (not ended)
read() yielded 105
selecting on subprocess pipes
reading pipe for subprocess 20651 (not ended)
read() yielded 2
Z0 item read
remote delivery process 20651 ended
set_process_info: 20648 delivering 1DfJ6t-0005N1-IZ
post-process linuxone@intergate.com (0)
linuxone@intergate.com delivered
LOG: MAIN
  Completed QT=25s
end delivery of 1DfJ6t-0005N1-IZ
search_tidyup called
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=20648 terminating with rc=0 >>>>>>>>>>>>>>>>

It still looks like the ISP's smtp server is screwed up, to me.

Just updated and now running exim4 4.50-8.  Noticed that TLS is
enabled by default and, as my smtp server doesn't use it, I have to
disable all the tls_* entries or I can't send mail.  Commenting them
out allows me to send again.

While reading the new Docs,
/usr/share/doc/exim4-base/README.Debian.gz, I see that there is a way
to enable TLS mentioned (as if it wasn't enabled by default).
"Now, enable TLS by setting the macro MAIN_TLS_ENABLE in a local
configuration file (documented below)."

The "documented below" mentions the file
/etc/exim4/exim4.conf.localmacros.  There is no exim4.conf.localmacros
file.  I suppose that means you have to create it but I can't find
anything about how to add an entry to disable the MAIN_TLS_ENABLE macro.

Sorry for the delay in this reply.  A storm hit here yesterday and
caused us to lose power for 22 hours.

Thanks again

Wayne