From owner-freebsd-questions@FreeBSD.ORG Tue Jan 8 19:01:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B4DCFE36 for ; Tue, 8 Jan 2013 19:01:23 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 7F6F6647 for ; Tue, 8 Jan 2013 19:01:22 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id r08J4Nd1025687 for freebsd-questions@freebsd.org; Tue, 8 Jan 2013 13:04:23 -0600 (CST) Date: Tue, 8 Jan 2013 13:04:23 -0600 (CST) From: Robert Bonomi Message-Id: <201301081904.r08J4Nd1025687@mail.r-bonomi.com> To: freebsd-questions@freebsd.org Subject: Re: sendmail not working In-Reply-To: <50EC52D0.9020505@rcn.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2013 19:01:23 -0000 > From owner-freebsd-questions@freebsd.org Tue Jan 8 11:12:57 2013 > Date: Tue, 08 Jan 2013 12:09:36 -0500 > From: Robert Huff > To: Robert Bonomi > Subject: Re: sendmail not working > Cc: freebsd-questions@freebsd.org > > On 1/8/2013 9:18 AM, Robert Bonomi wrote: > > >>>> I have compiled sendmail following the instructions in the > >>>> cyrus-sasl port. Sendmail starts, but no mail is processed > >>>> either way. /var/log/maillog has this: > >>> > >>> No clue, except the first message might be saying it's not going to > >>> honor anything from .forward because it's in a group writable > >>> directory which would be considered a security issue. Try making > >>> /home/huff group read only? > >> > >> Done. Restarted sendmail (all parts). Still no mail processed. > > > WHAT HAPPENS when you 'telnet' to your mailserver port(s) and try > > doing smtp transaction(s) manually? > > I don't get the SMTP prompt. "Insufficient data" a) does telnet say "connected"? b) if yes, how long did you wait for the banner? (if there's a DNS problem, it can be 90 seconds befre the banner line) For testing, consider running sendmail in -foreground (not as a daemon) with the debug level turned up. > > WHAT HAPPENS when you -try- to send an email _out_? > > Do you get an error email? > > No. > > > Does it show in the outbound mail queue? > > (if it's in the queue, look at the qf* file, to see why it is > > deferred.) > > In /var/spool/mqueue: > > V8 T1357573913 K1357659459 N175 P15690892 I0/111/1420867 Mreply: read > error from local Fws > $_localhost [127.0.0.1] > $rESMTP > $sjerusalem.litteratus.org > ${daemon_flags} > ${if_addr}127.0.0.1 > S A<> MDeferred: Connection reset by local > rRFC822; huff@jerusalem.litteratus.org > RPFD: H?P?Return-Path: H??Received: > from jerusalem.litteratus.org (localhost [127.0.0.1]) > by jerusalem.litteratus.org (8.14.6/8.14.6) with ESMTP id r07FoGPd052948 > for ; Mon, 7 Jan 2013 10:51:53 -0500 > (EST) > (envelope-from huff@jerusalem.litteratus.org) > H?x?Full-Name: Robert Huff H??Received: (from root@localhost) by > jerusalem.litteratus.org (8.14.6/8.14.6/Submit) id r07FoGrl052947 for > huff; Mon, 7 Jan 2013 10:50:16 -0500 (EST) > (envelope-from huff) > H??Date: Mon, 7 Jan 2013 10:50:16 -0500 (EST) H??From: Robert Huff > H??Message-Id: > <201301071550.r07FoGrl052947@jerusalem.litteratus.org> H??To: > undisclosed-recipients:; H??X-Spam-Status: No, score=4.3 required=5.0 > tests=ALL_TRUSTED,EMPTY_MESSAGE, MISSING_HEADERS,MISSING_SUBJECT > autolearn=no version=3.3.2 H??X-Spam-Level: **** > H??X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on > jerusalem.litteratus.org > > > What do the sendmail log messages say? > > Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward > /home/huff/.forward.jerusalem+: Group writable directory Supposedly you fixed the above problem. But sendmail disagrees. check permissions on / /home and /home/huff if any are symlinks, check the 'pointed-to' directory as well. > Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward > /home/huff/.forward+: Group writable directory > Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward > /home/huff/.forward.jerusalem: Group writable directory > Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward > /home/huff/.forward: Group writable directory > Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: smtpquit: mailer > local exited with exit value 1 Jan 8 10:12:44 jerusalem sm-mta[28896]: > r05KsfdB048780: to=, delay=2+18:16:27, xdelay=00:00:00, > mailer=local, pri=56791038, relay=local, dsn=4.4.2, stat=Deferred: > Connection reset by local ok, it's been trying to deliver for nearly three days. with local delivery (program mail.local) failing. mail.local can fail for a number of reasons that shouldn't happen. check permissions on the mailbox directory also owner/permissions on the mailbox, for starters. maildir quota set??