From owner-freebsd-questions@FreeBSD.ORG Sat Jan 5 17:56:38 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 5710F16A41B for ; Sat, 5 Jan 2008 17:56:38 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4F5C513C448 for ; Sat, 5 Jan 2008 17:56:38 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so11774651waf.3 for ; Sat, 05 Jan 2008 09:56:37 -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:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=nHOevSevkRpnKF77TGBHtqS1DZJqrb3QHug5eFPQ5Zk=; b=QGKXISntI+/iqoMHoU3rAtamPGq4e5F+0Nphkie/wUL8JVtysFthC3xbyisb9tNIcu+RCqLt9aEEfs9wo5br9mioEbaFDFvu6PYRg5IKDifB+Cft6PNp0CRyOio28dqb1favOO5BxFH1Igd/7amH3/Ssoq7zLqrGcGc7eN+8tWc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=wS6wLoOss4DlXicDVJpI9W4OtbCsNCHq540QK9qz2okBxheC6uDGG/YfiPscwzNPsuRE6ZxVNdICvqWg6FHks78fLdjGBmoIB7rVAfhzpykSk+SmM/AzfjZJCbDGj/9rd6Abma36ogC8Zl/UMlm2XEEPN2MUTNIN0IbMFpVjFGg= Received: by 10.114.78.1 with SMTP id a1mr8956094wab.14.1199555797323; Sat, 05 Jan 2008 09:56:37 -0800 (PST) Received: from sniper ( [75.167.131.116]) by mx.google.com with ESMTPS id n37sm30850872wag.24.2008.01.05.09.56.35 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Jan 2008 09:56:35 -0800 (PST) From: Andrew Falanga To: FreeBSD Questions Date: Sat, 5 Jan 2008 10:56:24 -0700 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801051056.24362.af300wsm@gmail.com> Subject: How do I get sendmail working again 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: Sat, 05 Jan 2008 17:56:38 -0000 HI, I've gotten myself into a real fix at this point. (This is a continuation of the thread I started, "sendmail is broken, how do I fix?") I was trying to setup authentication based relaying using istructions at http://www.puresimplicity.net/~hemi/freebsd/sendmail.html. I must first say that I was trying to get authentication based relaying working by using the instructions in the handbook under the title "SMTP Authentication." The two set of instructions do overlap slightly. Well, after following the instructions at the former link, sendmail will no longer start and is complaining with errors as follows from the /var/log/maillog file: 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): pendaemonsocket: 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): pendaemonsocket: 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 Someone asked me to post the result of doing, "sockstat | grep ":25" just after starting the sendmail process. Well, here's that output: whitbap# /etc/rc.d/sendmail start Starting sendmail. whitbap# sockstat | grep :25 root sendmail 1133 3 tcp4 *:25 *:* root sendmail 1133 5 tcp6 *:25 *:* whitbap# sockstat | grep :25 root sendmail 1133 3 tcp4 *:25 *:* root sendmail 1133 5 tcp6 *:25 *:* whitbap# sockstat | grep :25 root sendmail 1133 3 tcp4 *:25 *:* root sendmail 1133 5 tcp6 *:25 *:* whitbap# sockstat | grep :25 root sendmail 1133 3 tcp4 *:25 *:* root sendmail 1133 5 tcp6 *:25 *:* whitbap# sockstat | grep :25 root sendmail 1133 3 tcp4 *:25 *:* root sendmail 1133 5 tcp6 *:25 *:* whitbap# sockstat | grep :25 root sendmail 1133 3 tcp4 *:25 *:* root sendmail 1133 5 tcp6 *:25 *:* whitbap# sockstat | grep :25 whitbap# I do know for a fact that it's sendmail that's killing itself. Without anything else running related to mail (sendmail or dovecot) I wrote a little C program to open a socket and bind to port 25 and it works ok. Please help me. I have got to get this working for the church and at this point, I'm not sure how to make it work. Andy