From owner-freebsd-questions@FreeBSD.ORG Fri Jan 4 23:25:49 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 4957416A469 for ; Fri, 4 Jan 2008 23:25:49 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id E6D2D13C4CE for ; Fri, 4 Jan 2008 23:25:48 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so11215495waf.3 for ; Fri, 04 Jan 2008 15:25:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=CkiWVi2E8qccsKZl62zkcsTvhSA4bfYfFJYN694VHRs=; b=cvqHRZ0Xze/0LlyjA9du2C/KYlOL03oLp1uNI/8sdWG8zNzv2nwkfFq5CBBBAQ6YmWNpl6VaRUmD+8B8LKOJcLYFfx8PIgJsth5QU+IZAz3UOx3BgV1oXfa+AAo/PyRM8/CJKG7c97mximWkEdlq7ysNwouy2rTJ/wyrsg1/cCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=pES4CsPuh4/hVvFsr0QJ3+lJTwp2VjefvyjtGDcs76bOKSNuxxO3mWV3D8knN2HzhFbtnARcEYVLpXEpb5BlCg8TOZewJ1Mj4tJdPg62DYq0ixOLphA5D5S6b7CWnYt3iXCYsdEHedXtNvMjdQ82Wi9/AZqAvwLz+1po/1msjsM= Received: by 10.114.254.1 with SMTP id b1mr17968432wai.140.1199489148674; Fri, 04 Jan 2008 15:25:48 -0800 (PST) Received: from sniper ( [71.221.161.152]) by mx.google.com with ESMTPS id g25sm30158159wag.37.2008.01.04.15.25.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Jan 2008 15:25:47 -0800 (PST) From: Andrew Falanga To: Derek Ragona Date: Fri, 4 Jan 2008 16:25:42 -0700 User-Agent: KMail/1.9.6 References: <200801011017.21412.af300wsm@gmail.com> <200801021403.18813.af300wsm@gmail.com> <6.0.0.22.2.20080102151441.023c22d8@mail.computinginnovations.com> In-Reply-To: <6.0.0.22.2.20080102151441.023c22d8@mail.computinginnovations.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801041625.42685.af300wsm@gmail.com> Cc: FreeBSD Questions Subject: Re: sendmail is broken, how do I fix 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, 04 Jan 2008 23:25:49 -0000 On Wednesday 02 January 2008 14:18:53 Derek Ragona wrote: > At 03:03 PM 1/2/2008, Andrew Falanga wrote: > > > While you think there is nothing on that port something is running not > > > letting that socket connection. Try rebooting the system and see if > > > the problem is still there. > > > > > > -Derek > > > >I did try that too. Didn't work. > > Have you tried telnet to the IP and port 25? If it is sendmail, you can > see that from the banner, also you can watch the maillog file in /var/log. > > I suspect you have another process tying up that port. > > -Derek The problem seems to be sendmail itself. Here's what I've done to isolate the problem. 1) changed /etc/rc.conf to NOT start sendmail or anything mail related -- sendmail (external stuff, the local daemon still starts in /etc/defaults/rc.conf) -- dovecot -- saslauthd I know that saslauthd isn't exactly mail related but I installed it for sendmail 2) rebooted the computer (and verified that it did actually reboot by using uptime). I'm not sitting in front of this computer, I'm "ssh-ing" into it. 3) once restarted, I wrote a little C program to open a socket and then bind the ip address 192.168.2.23 (the machines IP) and port 25 to that socket. The effectiveness of this program was verified using sockstat. If necessary, I will post the source code, but didn't see much need to now. The program worked and the bind(2) call made no complaints. 4) Stopped ALL sendmail processes (/etc/rc.d/sendmail stop) 5) edited /etc/rc.conf and re-enabled the "external" sendmail process 6) Started sendmail and now see the exact same problems in /var/log/maillog: see below Jan 4 17:36:42 whitbap sm-mta[975]: starting daemon (8.13.8): SMTP+queueing@00:30:00 Jan 4 17:36:42 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:36:42 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:36:42 whitbap sm-msp-queue[979]: starting daemon (8.13.8): queueing@00:30:00 Jan 4 17:36:42 whitbap sm-mta[978]: m010sNBM004564: to=, delay=3+23:42:19, xdelay=00:00:00, mailer=esmtp, pri=2555114, relay=mail02.interchangeusa.com. [63.251.210.81], dsn=4.0.0, stat=Deferred: Connection refused by mail02.interchangeusa.com. Jan 4 17:36:47 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:36:47 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:36:52 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:36:52 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:36:57 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:36:57 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:37:02 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:37:02 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:37:07 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:37:07 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:37:12 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:37:12 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:37:17 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:37:17 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:37:22 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:37:22 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:37:27 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:37:27 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 4 17:37:32 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket Jan 4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting What does one do when sendmail is it's own worst enemy? Any help is greatly appreciated because I don't understand at all what I could have done to this. If necessary, I'll post my .mc file for all to read. Heck, I'll post whatever is necessary because this has to be working. Andy