sendmail not working

Robert Bonomi bonomi at mail.r-bonomi.com
Tue Jan 8 19:01:23 UTC 2013


> From owner-freebsd-questions at freebsd.org  Tue Jan  8 11:12:57 2013
> Date: Tue, 08 Jan 2013 12:09:36 -0500
> From: Robert Huff <roberthuff at rcn.com>
> To: Robert Bonomi <bonomi at mail.r-bonomi.com>
> Subject: Re: sendmail not working
> Cc: freebsd-questions at 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<huff at jerusalem.litteratus.org> A<> MDeferred: Connection reset by local 
> rRFC822; huff at jerusalem.litteratus.org 
> RPFD:<huff at jerusalem.litteratus.org> H?P?Return-Path: <A g> 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 <huff at jerusalem.litteratus.org>; Mon, 7 Jan 2013 10:51:53 -0500 
>  (EST)
>  (envelope-from huff at jerusalem.litteratus.org)
>  H?x?Full-Name: Robert Huff H??Received: (from root at 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 
>  <huff at jerusalem.litteratus.org> H??Message-Id: 
>  <201301071550.r07FoGrl052947 at 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.  <wry grin>
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=<huff at localhost>, 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??





More information about the freebsd-questions mailing list