From owner-freebsd-questions@freebsd.org Sun Jun 26 06:38:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD8D9B808F6 for ; Sun, 26 Jun 2016 06:38:52 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 663B218D1 for ; Sun, 26 Jun 2016 06:38:51 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ppp103-111.static.internode.on.net (HELO lillith-iv.ovirt.dyndns.ws) ([150.101.103.111]) by ipmail06.adl2.internode.on.net with ESMTP; 26 Jun 2016 16:03:42 +0930 X-Envelope-From: ws@au.dyndns.ws X-Envelope-To: freebsd-questions@freebsd.org Received: from predator-ii.buffyverse (predator-ii.buffyverse [172.17.17.136]) by lillith-iv.ovirt.dyndns.ws (8.14.9/8.14.9) with ESMTP id u5Q6XQoS047344; Sun, 26 Jun 2016 16:03:31 +0930 (ACST) (envelope-from ws@au.dyndns.ws) Message-ID: <1466922806.1888.12.camel@au.dyndns.ws> Subject: Re: Sendmail and mimedefang, help. From: Wayne Sierke To: Bernt Hansson , freebsd-questions@freebsd.org Date: Sun, 26 Jun 2016 16:03:26 +0930 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (lillith-iv.ovirt.dyndns.ws [172.17.17.142]); Sun, 26 Jun 2016 16:03:31 +0930 (ACST) X-Scanned-By: MIMEDefang 2.75 on 172.17.17.142 X-Scanned-By: SpamAssassin 3.004000(2014-02-07) X-Scanned-By: ClamAV X-Spam-Score: -2.9 () ALL_TRUSTED,BAYES_00 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 06:38:53 -0000 On Mon, 2016-06-20 at 13:32 +0200, Bernt Hansson wrote: > Hello list! > > I'm trying to setup mimedefang and sendmail on a replacement machine. > > This is how I start mimedefang > > mimedefang -c -k -p /var/spool/MIMEDefang/defang.pid -m  > /var/spool/MIMEDefang/multiplexor.sock -U mailnull > > The multiplexor > > mimedefang-multiplexor -U mailnull -s  > /var/spool/MIMEDefang/multiplexor.sock -l > > Getting this in /var/log/maillog > > mimedefang-multiplexor[13560]: started; minSlaves=1, maxSlaves=2,  > maxRequests=500, maxIdleTime=300, busyTimeout=120, clientTimeout=10 > mimedefang-multiplexor[13560]: Starting slave 0 (pid 13561) (1 > running):  > Bringing slaves up to minSlaves (1) > mimedefang[13564]: MIMEDefang alive. slavesReservedForLoopback=-1  > AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0  > doSenderCheck=0 doRecipientCheck=0 > mimedefang[13564]: Multiplexor alive - entering main loop > > I've tried differnt users like daemon, smmsp, operator, nobody and > even  > sane. > But no luck. > > Getting an e-mail, sendmail respond with this > > sm-mta[11617]: u5JM06Qf011617: Milter (mimedefang): local socket > name  > /var/spool/MIMEDefang/mimedefang.sock unsafe > > > Permissions on /var/spool/MIMEDefang/ > > drwx------  2 mailnull  mailnull    512 20 Jun 13:28 MIMEDefang > > So what can I do? > Hi Bernt, I recall running into this problem some years ago but I think the mimedefang port was improved quite a bit since then in providing better defaults and run-time configuration options. The only immediate difference I can find on my current mail system is: drwx--x---  28 mailnull  mailnull  1024 Jun 26 15:50 /var/spool/MIMEDefang/ It's possible that is a remnant of a "chmod g-r[w]" in order to address the "mimedefang.sock unsafe" issue, although I'm only guessing at that and it may not be related or relevant at all. If you have installed the mimedefang port you could try starting it using "system" methods e.g. "service mimedefang [one]start" or similar and see if there's any difference in behaviour? Wayne