Package: sendmail Version: 8.15.2-8 Severity: normal Dear Maintainer,
After upgrade from jessie to stretch, sendmail is now deferring certain emails and logging a "timeout writing message to" The error/bounce is not correct because the host is availible and there are no timneout issues, the issue lies with a dns lookup error with one of the senders of the email (sendmail debug below). -- sendmail debug server names changed for privacy 250-fw1.domain.co.za Hello mailhub03.domain.co.za [x.x.x.236] (may be forged), pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-EXPN 250-VERB 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH DIGEST-MD5 CRAM-MD5 250-DELIVERBY 250 HELP >>> MAIL From:<valid@sender> SIZE=23640 BODY=7BIT AUTH=<> 250 2.1.0 <valid@sender>... Sender ok >>> RCPT To:<valid@rcpt> >>> DATA 250 2.1.5 <valid@rcpt>... Recipient ok 354 Enter mail, end with "." on a line by itself ferrelec.com.uy: Name server timeout timeout writing message to dsl-web04.domain.co.za. <valid@rcpt>... Deferred: Name server: dsl-web04.domain.co.za.: host name lookup failure Closing connection to dsl-web04.domain.co.za. The issue lies with a To: address in the mail ec...@ferrelec.com.uy which doesnt seem to have an MX record, whats confusing is the log entry by sendmail "timeout writing message to" dig mx ferrelec.com.uy ; <<>> DiG 9.10.3-P4-Debian <<>> mx ferrelec.com.uy ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 60854 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ferrelec.com.uy. IN MX dig any ferrelec.com.uy ;; Truncated, retrying in TCP mode. ; <<>> DiG 9.10.3-P4-Debian <<>> any ferrelec.com.uy ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60715 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ferrelec.com.uy. IN ANY ;; ANSWER SECTION: ferrelec.com.uy. 3600 IN NS gehena.movinet.com.uy. ferrelec.com.uy. 3600 IN NS ns04.movinet.com.uy. -- Package-specific info: Output of /usr/share/bug/sendmail/script: ls -alR /etc/mail: /etc/mail: total 372 drwxr-sr-x 7 smmta smmsp 4096 Jul 14 09:35 . drwxr-xr-x 96 root root 12288 Jul 25 14:57 .. -rwxr-xr-- 1 root smmsp 9536 Jul 14 09:35 Makefile -rw-r--r-- 1 root root 281 Dec 8 2016 address.resolve -rw-r--r-- 1 root root 3611 Jul 14 09:35 databases -rw-r----- 1 smmta smmsp 54 Jul 7 11:01 default-auth-info -rw-r--r-- 1 root smmsp 0 Jul 7 11:01 domaintable -rw-r----- 1 root smmsp 12288 Jul 14 09:35 domaintable.db -rw-r--r-- 1 root root 5659 Dec 8 2016 helpfile drwxr-sr-x 2 smmta smmsp 4096 Jul 14 09:36 m4 -rw-r--r-- 1 root root 18099 Jan 17 2017 mimedefang-filter -rw-r--r-- 1 root root 276 Jun 23 2010 mimedefang.pl.conf drwxr-xr-x 2 root root 4096 Jul 14 09:19 peers drwxr-xr-x 2 smmta smmsp 4096 Jul 7 11:01 sasl -rw-r--r-- 1 root smmsp 74239 Jul 14 09:35 sendmail.cf -rw-r--r-- 1 root root 73737 Jul 14 09:35 sendmail.cf.old -rw-r--r-- 1 root root 12236 Jul 14 09:35 sendmail.conf -rw-r--r-- 1 root smmsp 5948 Jul 14 09:35 sendmail.mc -rw-r--r-- 1 root root 149 Dec 8 2016 service.switch -rw-r--r-- 1 root root 180 Dec 8 2016 service.switch-nodns drwxr-sr-x 2 smmta smmsp 4096 Jul 7 11:01 smrsh -rw-r--r-- 1 root smmsp 44611 Jul 14 09:35 submit.cf -rw-r--r-- 1 root root 44053 Jul 14 09:35 submit.cf.old -rw-r--r-- 1 root smmsp 2374 Jul 14 09:35 submit.mc drwxr-xr-x 2 smmta smmsp 4096 Jul 7 11:01 tls -rw-r--r-- 1 root smmsp 0 Jul 7 11:01 trusted-users /etc/mail/m4: total 12 drwxr-sr-x 2 smmta smmsp 4096 Jul 14 09:36 . drwxr-sr-x 7 smmta smmsp 4096 Jul 14 09:35 .. -rw-r--r-- 1 root smmsp 790 Jan 30 22:27 clamav-milter.m4 -rw-r----- 1 root smmsp 0 Jul 7 11:01 dialup.m4 -rw-r----- 1 root smmsp 0 Jul 7 11:01 provider.m4 /etc/mail/peers: total 12 drwxr-xr-x 2 root root 4096 Jul 14 09:19 . drwxr-sr-x 7 smmta smmsp 4096 Jul 14 09:35 .. -rw-r--r-- 1 root root 328 Dec 8 2016 provider /etc/mail/sasl: total 16 drwxr-xr-x 2 smmta smmsp 4096 Jul 7 11:01 . drwxr-sr-x 7 smmta smmsp 4096 Jul 14 09:35 .. -rw-r----- 1 smmta smmsp 885 Jul 7 11:01 Sendmail.conf.2 -rwxr--r-- 1 root root 3685 Jul 14 09:35 sasl.m4 /etc/mail/smrsh: total 8 drwxr-sr-x 2 smmta smmsp 4096 Jul 7 11:01 . drwxr-sr-x 7 smmta smmsp 4096 Jul 14 09:35 .. lrwxrwxrwx 1 smmta smmsp 35 Oct 22 2013 doublebounce.pl -> /usr/share/sendmail/doublebounce.pl lrwxrwxrwx 1 root smmsp 26 Jul 7 11:01 mail.local -> /usr/lib/sm.bin/mail.local lrwxrwxrwx 1 root smmsp 17 Jul 7 11:01 procmail -> /usr/bin/procmail /etc/mail/tls: total 48 drwxr-xr-x 2 smmta smmsp 4096 Jul 7 11:01 . drwxr-sr-x 7 smmta smmsp 4096 Jul 14 09:35 .. -rw-r--r-- 1 root root 7 Jul 7 11:01 no_prompt -rw------- 1 root root 1191 Jul 7 11:01 sendmail-client.cfg -rw-r--r-- 1 root smmsp 1261 Jul 7 11:01 sendmail-client.crt -rw------- 1 root root 1029 Jul 7 11:01 sendmail-client.csr -rw-r----- 1 root smmsp 1679 Jul 7 11:01 sendmail-common.key -rw-r----- 1 root smmsp 1650 Jul 7 11:01 sendmail-common.prm -rw------- 1 root root 1191 Jul 7 11:01 sendmail-server.cfg -rw-r--r-- 1 root smmsp 1261 Jul 7 11:01 sendmail-server.crt -rw------- 1 root root 1029 Jul 7 11:01 sendmail-server.csr -rwxr--r-- 1 root root 3260 Jul 14 09:35 starttls.m4 sendmail.conf: DAEMON_NETMODE="Static"; DAEMON_NETIF="eth0"; DAEMON_MODE="Daemon"; DAEMON_PARMS=""; DAEMON_HOSTSTATS="No"; DAEMON_MAILSTATS="No"; QUEUE_MODE="${DAEMON_MODE}"; QUEUE_INTERVAL="10m"; QUEUE_PARMS=""; MSP_MODE="Cron"; MSP_INTERVAL="20m"; MSP_PARMS=""; MSP_MAILSTATS="${DAEMON_MAILSTATS}"; MISC_PARMS=""; CRON_MAILTO="root"; CRON_PARMS=""; LOG_CMDS="No"; HANDS_OFF="No"; AGE_DATA=""; DAEMON_RUNASUSER="No"; DAEMON_STATS="${DAEMON_MAILSTATS}"; MSP_STATS="${MSP_MAILSTATS}"; sendmail.mc: divert(-1)dnl divert(0)dnl define(`_USE_ETC_MAIL_')dnl include(`/usr/share/sendmail/cf/m4/cf.m4')dnl include(`/etc/mail/sasl/sasl.m4')dnl VERSIONID(`$Id: sendmail.mc, v 8.14.3-9 2009-03-01 18:51:56 cowboy Exp $') OSTYPE(`debian')dnl DOMAIN(`debian-mta')dnl undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS= FEATURE(`no_default_msa')dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=0.0.0.0')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=0.0.0.0')dnl define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl define(`confCONNECTION_RATE_THROTTLE', `15')dnl define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl FEATURE(`use_cw_file')dnl define(`confCW_FILE', `@LDAP')dnl FEATURE(`access_db', `LDAP')dnl FEATURE(`greet_pause', `1000')dnl 1 seconds FEATURE(`delay_checks', `friend', `n')dnl define(`confBAD_RCPT_THROTTLE',`3')dnl FEATURE(`conncontrol', `nodelay', `terminate')dnl FEATURE(`ratecontrol', `nodelay', `terminate')dnl LOCAL_CONFIG LOCAL_CONFIG Cwmailhub03.domain.co.za FEATURE(`use_cw_file')dnl FEATURE(`use_ct_file')dnl FEATURE(`mailertable', `LDAP')dnl FEATURE(`virtusertable', `LDAP')dnl FEATURE(`domaintable')dnl FEATURE(`smrsh')dnl FEATURE(`blacklist_recipients')dnl define(`confSMTP_LOGIN_MSG', `')dnl define(`confTO_IDENT', `0')dnl define(`confLDAP_CLUSTER',`mailhub.domain.co.za')dnl define(`ALIAS_FILE', `ldap:')dnl define(`confPRIVACY_FLAGS', `noexpn,novrfy,noverb,noetrn')dnl define(`confLOG_LEVEL', `10')dnl define(`confMAX_MESSAGE_SIZE',`15000000')dnl define(`confDOUBLE_BOUNCE_ADDRESS',`doublebounce')dnl FEATURE(`ldap_routing', `ldap -1 -T<TMPF> -v mailHost -k (&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))',`ldap -1 -T<TMPF> -v mailRoutingAddress -k (&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))')dnl define(`confLDAP_DEFAULT_SPEC',`-h "localhost" -b "dc=root"')dnl LDAPROUTE_DOMAIN_FILE(`@ldap:-k (&(objectClass=sendmailMTAClass)(sendmailMTAClassName=w)(|(sendmailMTACluster=mailhub.domain.co.za)(sendmailMTAHost=mailhub03.domain.co.za))) -v sendmailMTAClassValue')dnl INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m')dnl include(`/etc/mail/m4/clamav-milter.m4')dnl define(`confINPUT_MAIL_FILTERS', `clamav,mimedefang')dnl MAILER_DEFINITIONS MAILER(local)dnl MAILER(smtp)dnl LOCAL_CONFIG submit.mc... divert(-1)dnl divert(0)dnl define(`_USE_ETC_MAIL_')dnl include(`/usr/share/sendmail/cf/m4/cf.m4')dnl VERSIONID(`$Id: submit.mc, v 8.15.2-8 2016-12-08 18:43:49 cowboy Exp $') OSTYPE(`debian')dnl DOMAIN(`debian-msp')dnl FEATURE(`msp', `[127.0.0.1]', `25')dnl -- System Information: Debian Release: 9.1 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 4.9.0-3-686-pae (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages sendmail depends on: ii sendmail-base 8.15.2-8 ii sendmail-bin 8.15.2-8 ii sendmail-cf 8.15.2-8 ii sensible-mda 8.15.2-8 sendmail recommends no packages. Versions of packages sendmail suggests: pn rmail <none> pn sendmail-doc <none> Versions of packages sensible-mda depends on: ii libc6 2.24-11+deb9u1 ii procmail 3.22-25+b1 ii sendmail-bin [mail-transport-agent] 8.15.2-8 Versions of packages libmilter1.0.1 depends on: ii libc6 2.24-11+deb9u1 Versions of packages sendmail-bin depends on: ii debconf 1.5.61 ii libc6 2.24-11+deb9u1 ii libdb5.3 5.3.28-12+b1 ii libldap-2.4-2 2.4.44+dfsg-5 ii liblockfile1 1.14-1+b1 ii libsasl2-2 2.1.27~101-g0780600+dfsg-3 ii libssl1.1 1.1.0f-3 ii libwrap0 7.6.q-26 ii lsb-base 9.20161125 ii procps 2:3.3.12-3 ii sendmail-base 8.15.2-8 ii sendmail-cf 8.15.2-8 Versions of packages sendmail-bin suggests: ii libsasl2-modules 2.1.27~101-g0780600+dfsg-3 ii openssl 1.1.0f-3 ii sasl2-bin 2.1.27~101-g0780600+dfsg-3 pn sendmail-doc <none> -- no debconf information