From owner-freebsd-questions@FreeBSD.ORG Fri Aug 15 21:04:29 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 8CBF21065678 for ; Fri, 15 Aug 2008 21:04:29 +0000 (UTC) (envelope-from freebsdemail@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.232]) by mx1.freebsd.org (Postfix) with ESMTP id 50EE58FC19 for ; Fri, 15 Aug 2008 21:04:29 +0000 (UTC) (envelope-from freebsdemail@gmail.com) Received: by qb-out-0506.google.com with SMTP id e34so1289385qbe.35 for ; Fri, 15 Aug 2008 14:04:28 -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:mime-version:content-type; bh=4HSPcRO1r5Thm8KgqRpYnqQH2hyGZj7USrA2QTNL4w0=; b=Cx4dc6PV1YD/1VIgkA/YsJTGPxFGVISR2xxYEM0GCXUoCOFN4Oc/UP598d8nS0IE+o KkhzlQU4VMCov24e+sRKOxmXduYMzkQFynBsiA9OFh0cwY3qmqv0OwTwHxqMwTvkwwtS CUrUmPPiLFi70Itb30Xpa8BSXXbSvHAa3PLfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=dAoZRvCJyGHLaoodvIbcZcqXKFx0ZU1zsHsxFXsqdPOHdXCm3iXoKujfrZxYfFA5FV 5b16kOBo7aAau3D/o3uhezDAkIGUG2oxA3hHxtiXOr5apL+6H//rZStZsHFFQDgpsLR1 4IR8GZlidUhklK8pPoZqxpfrSjI9r6uO4KhW0= Received: by 10.181.23.2 with SMTP id a2mr1960941bkj.24.1218833384829; Fri, 15 Aug 2008 13:49:44 -0700 (PDT) Received: by 10.181.12.5 with HTTP; Fri, 15 Aug 2008 13:49:44 -0700 (PDT) Message-ID: <5cdef660808151349j462df140pcec0d76109ac17b3@mail.gmail.com> Date: Fri, 15 Aug 2008 14:49:44 -0600 From: "Tom Stuart" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Fri, 15 Aug 2008 21:04:29 -0000 I've been having trouble sending email that was sent via a process(swatch). I can send emails fine via command-line and receive immediately to the forwarded address. However when sent via swatch it can take 5-10 minutes. These entries appear in /var/log/mailllog. Note this is all relating to the same email and notice the 11 minute delay. Thanks in advance for any help. Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: from=username, size=155, class=0, nrcpts=1, msgid=< 200808152035.m7FKZCXf072747@firewall-1.xxx.com>, relay=root@l ocalhost Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: to=root, delay=00:00:00, mailer=relay, pri=30155, stat=queued Aug 15 14:43:18 firewall-1 sendmail[72762]: m7FKhHx8072762: from=username, size=0, class=0, nrcpts=0, relay=root@localhost Aug 15 14:46:03 firewall-1 sm-mta[72794]: m7FKk3wc072794: from=< username@firewall-1.xxx.com>, size=512, class=0, nrcpts=1, msgid=< 200808152035.m7FKZCXf072747@firewall-1.xxx.com>, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Aug 15 14:46:03 firewall-1 sm-msp-queue[72793]: m7FKZCXf072747: to=root, ctladdr=username (1001/1001), delay=00:10:51, xdelay=00:00:00, mailer=relay, pri=120155, relay=[127.0.0.1 ] [127.0.0.1], dsn=2.0.0, stat=Sent (m7FKk3wc072794 Message accepted for delivery) Aug 15 14:46:03 firewall-1 sm-mta[72795]: m7FKk3wc072794: to= username@xxx.com, ctladdr= (1001/1001), delay=00:00:00, xdelay=00:0 0:00, mailer=relay, pri=30809, relay=smtp.xxx.com. [10.0.0.2], dsn=2.0.0, stat=Sent ( <200808152035.m7FKZCXf072747@firewall-1.xxx.com> Queued mail for delivery) I think its important to know these details: firewall-1# uname -a FreeBSD firewall-1.xxx.com 7.0-RC1 FreeBSD 7.0-RC1 #2: Tue Feb 5 07:10:05 MST 2008 root@firewall-1.xxx:/usr/obj/usr/src/sys/FIREWALL-1 i386 There is a .forward file in /root to forward root's mail to username@xxx.comwhich is to be sent via smarthost. I have the smarthost "DS" parameter in /etc/mail/sendmail.cf configured to use DSsmtp.xxx.com /etc/hosts contains localhost 127.0.0.1 firewall-1 firewall-1.xxx.com smtp.xxx.com 10.0.0.2