From owner-freebsd-questions@FreeBSD.ORG Mon Aug 18 13:51:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A588106567A for ; Mon, 18 Aug 2008 13:51:11 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 269648FC1B for ; Mon, 18 Aug 2008 13:51:10 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl22-219.kln.forthnet.gr [77.49.149.219]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id m7IDocRM022950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 18 Aug 2008 16:50:44 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m7IDobCF012178; Mon, 18 Aug 2008 16:50:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m7IDoa7Z012177; Mon, 18 Aug 2008 16:50:36 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: "Tom Stuart" References: <5cdef660808151349j462df140pcec0d76109ac17b3@mail.gmail.com> <6.0.0.22.2.20080815192128.024bf890@mail.computinginnovations.com> <5cdef660808151749n722a5b92ufcf85e59b1e0b4b@mail.gmail.com> <871w0pqtw7.fsf@kobe.laptop> <5cdef660808161527y96510dfte86e08a5dbc7a9e2@mail.gmail.com> <87wsignetr.fsf@kobe.laptop> <5cdef660808170336j817877l5c2992cb9f8eba62@mail.gmail.com> Date: Mon, 18 Aug 2008 16:50:36 +0300 In-Reply-To: <5cdef660808170336j817877l5c2992cb9f8eba62@mail.gmail.com> (Tom Stuart's message of "Sun, 17 Aug 2008 04:36:11 -0600") Message-ID: <87hc9ijutv.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m7IDocRM022950 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.485, required 5, ALL_TRUSTED -1.80, AWL -0.78, BAYES_00 -2.60, WHOIS_CONTACTPRIV 2.70) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org, Derek Ragona Subject: Re: Sendmail email delays X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2008 13:51:11 -0000 On Sun, 17 Aug 2008 04:36:11 -0600, "Tom Stuart" wrote: > I made the changes to rc.conf as suggested. Also below are the new diffs. > > firewall-1# diff freebsd.mc firewall-1.xxx.com.mc > 77c77 > < dnl define(`SMART_HOST', `your.isp.mail.server') > --- >> define(`SMART_HOST', `smtp.xxx.com') > firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc > > I have restarted sendmail(Stop,Start) and the interactive mail(mail or > mailx) is still delivered instantly. However when swatch is sending > mail it is still delayed. I will post some of the maillog in hopes of > isolation of the issue. I also notice this error File descriptors > missing on startup: stdout, stderr; Bad file descriptor(Only when > sending via swatch). > > Maillog from mail -s test root > Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125: > from=username, size=29, class=0, nrcpts=1, > msgid=<200808171026.m7HAQnRC085125@firewall-1.xxx.com>, > relay=root@localhost > Aug 17 04:26:49 firewall-1 sm-mta[85126]: m7HAQnOJ085126: > from=, size=400, class=0, nrcpts=1, > msgid=200808171026.m7HAQnRC085125@firewall-1.xxx.com>, > proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] > Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125: > to=root, ctladdr=user (1001/1001), > delay=00:00:00, xdelay=00:00:00, > mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1], > dsn=2.0.0, stat=Sent (m7HAQnOJ085126 Message accepted for delivery) > Aug 17 04:26:50 firewall-1 sm-mta[85127]: m7HAQnOJ085126: > to=xxx@xxx.com, ctladdr= (1001/1001), > delay=00:00:01, xdelay=00:00:01, > mailer=relay, pri=30702, relay=smtp.xxx.com. [10.0.0.2], > dsn=2.0.0, stat=Sent (<200808171026.m7HAQnRC085125@firewall-1.xxx.com> Queued mail for delivery) > > Maillog from swatch -- Delayed Receipt(1-10 minutes) note this is all > relating to the same message. > > Aug 17 04:30:18 firewall-1 sendmail[85137]: > File descriptors missing on startup: stdout, stderr; Bad file descriptor > Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137: > from=user, size=155, class=0, nrcpts=1, > msgid=<200808171030.m7HAUIBd085137@firewall-1.xxx.com>, > relay=root@localhost > Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137: > to=root, delay=00:00:00, mailer=relay, pri=30155, stat=queued This part means that Sendmail, for some reason, failed to resolve one of the addresses involved. Are you using DNS to resolve `localhost'? Maybe that's why it times out, and it queues the message until the next time the queue runner wakes up... Two other interesting bits of information that ay help us find out what's going on are: (1) Your sendmail_xxx options in /etc/rc.conf: # fgrep sendmail_ /etc/rc.conf (2) The value of `DirectSubmissionModifiers' in sendmail.cf and submit.cf: # fgrep DirectSubmissionModifiers /etc/mail/sendmail.cf \ /etc/mail/submit.cf > Aug 17 04:31:34 firewall-1 sm-mta[85148]: m7HAVYEI085148: > from=, size=517, class=0, nrcpts=1, > msgid=<200808171030.m7HAUIBd085137@firewall-1.xxx.com>, > proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] A minute later, the queue runner wakes up... > Aug 17 04:31:35 firewall-1 sm-mta[85149]: m7HAVYEI085148: > to=xxx@xxx.com, ctladdr= (1001/1001), > delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30819, relay=smtp.xxx.com. [10.0.0.2], > dsn=2.0.0, stat=Sent (<200808171030.m7HAUIBd085137@firewall-1.xxx.com> Queued mail for delivery) ... and sends it normally.