From owner-freebsd-questions@FreeBSD.ORG Sun Aug 17 10:36:13 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 CFD82106568E for ; Sun, 17 Aug 2008 10:36:13 +0000 (UTC) (envelope-from freebsdemail@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.229]) by mx1.freebsd.org (Postfix) with ESMTP id 86DF38FC1D for ; Sun, 17 Aug 2008 10:36:13 +0000 (UTC) (envelope-from freebsdemail@gmail.com) Received: by qb-out-0506.google.com with SMTP id e34so1973730qbe.35 for ; Sun, 17 Aug 2008 03:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=IYWHAqFjWmbYdmwThtqZDNfJ6q9N27/YsebdZptCXGA=; b=WwdAv6WCPOd074naU3Hv+jsVzz6XR0rUfZ02dvnZ+BeUUSvISvItkoKy5j5NDcp3S3 Pyu2YEQ5CcyZde7aNCdBpk58/gnMTXpdUzm0yuGCfOpd2Iooyf+HYuQQSsFYAuJTsNz+ 80L+5e7zVn8QyK9S49qWqw1pve4+J7o6fo9tw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VqS/n+qf1XziaTNQVCKP/HttoBuyQ3/2uozl6EkeqOKcrp0ribz38eCu+yG5fEpNp8 aAPxcY3zMFjUL8v/kr3ItnDQzBURxfBGgrCeLnXSXgeEj/sbsqnV1XP03dlpW4PDAVfD YGbAKrxPWE82vvaNSXHtNa4GshP4X4/zw1CTM= Received: by 10.180.232.9 with SMTP id e9mr2534544bkh.62.1218969371617; Sun, 17 Aug 2008 03:36:11 -0700 (PDT) Received: by 10.180.244.3 with HTTP; Sun, 17 Aug 2008 03:36:11 -0700 (PDT) Message-ID: <5cdef660808170336j817877l5c2992cb9f8eba62@mail.gmail.com> Date: Sun, 17 Aug 2008 04:36:11 -0600 From: "Tom Stuart" To: "Giorgos Keramidas" In-Reply-To: <87wsignetr.fsf@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> 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: Sun, 17 Aug 2008 10:36:13 -0000 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] [12 7.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:0 0: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 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] Aug 17 04:31:34 firewall-1 sm-msp-queue[85147]: m7HAUIBd085137: to=root, ctladdr=user (1001/1001), delay=00:01:16, xdelay=00:00:00, mailer=relay, pri=120155, relay=[127.0.0.1 ] [127.0.0.1], dsn=2.0.0, stat=Sent (m7HAVYEI085148 Message accepted for delivery) Aug 17 04:31:35 firewall-1 sm-mta[85149]: m7HAVYEI085148: to=xxx@xxx.com, ctladdr= (1001/1001), delay=00:00:01, xdelay=00:0 0: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) Thank you all for the help thus far. I think we are close to finding the issue. On Sun, Aug 17, 2008 at 3:58 AM, Giorgos Keramidas wrote: > On Sat, 16 Aug 2008 16:27:50 -0600, "Tom Stuart" wrote: >> Here are my diffs for the files as requested. I'm thinking the actual >> issue may lay in my submit.mc configuration. Right now I have just the >> base file as I've tried editing it to no success so I changed it back >> to normal. I "assumed" you had to edit this line. I'll also note that >> the "smarthost" is a Windows 2003 Server running Exchange, relaying is >> enable >> >> FEATURE(`msp', `[127.0.0.1]')dnl >> >> and change the value to 10.0.0.2(which is the Smarthost IP), >> >> The 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# >> firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc >> firewall-1# > > Hmmm. Then this is probably the problem... > > If the remote server is an Exchange system, I am not sure if using it as > an MSP in `submit.mc' is supposed to work. > > Try resetting the `msp' value in `submit.mc' to: > > FEATURE(`msp', `[127.0.0.1]')dnl > > and set `SMART_HOST' in `firewall-1.xxx.com.mc' (not in the > `firewall-1.xxx.com.submit.mc' file): > > define(`SMART_HOST', `smtp.xxx.com') > > Then you should enable the `submit' and `msp_queue' sendmail processes > in `/etc/rc.conf' too: > > sendmail_enable="NO" > sendmail_outbound_enable="NO" > sendmail_submit_enable="YES" > sendmail_msp_queue_enable="YES" > >