Re: sendmail: no local mailer

2003-04-03 Thread Oleg V. Nauman
On Wed, Apr 02, 2003 at 03:18:18PM -0700, Nate Williams wrote:
evantd Sendmail has not been working on my system for some time now. I
evantd can't say exactly how long, but my guess is that it broke when I
evantd upgraded to RELENG_5_0. This is how sendmail is invoked (by
evantd default) and it's output.

evantd # sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
evantd 451 4.0.0 No local mailer defined: Bad address
evantd 554 5.0.0 QueueDirectory (Q) option must be set

/etc/mail/sendmail.cf is a bogus (empty?) file.  One way to fix this is:

cd /etc/mail
mv sendmail.cf sendmail.cf~bogus
make
make restart
   
   This happened on one of my -stable boxes lately when doing a upgrade
   using buildworld.  For some (unknown) reason m4 bombed out and created
   an empty .cf file.
   
   I fixed it by doing something similar to what was done above, although
   why m4 failed is a mystery
  
  Some patch:
  
  --- /usr/src/etc/sendmail/Makefile.orig Wed Apr  2 23:51:19 2003
  +++ /usr/src/etc/sendmail/Makefile Wed Apr  2 23:51:50 2003
   -1,7 +1,7 
   # (#)Makefile 8.19 (Berkeley) 1/14/97
   # $FreeBSD: src/etc/sendmail/Makefile,v 1.21 2002/07/29 09:40:06 ru Exp $
  
  -M4=  m4
  +M4=  /usr/bin/m4
   CHMOD=   chmod
   ROMODE=444
   RM=  rm -f
  
 
 This shouldn't be necessary, since m4 is in the path in buildworld, is

installworld, you meant?

 it not?  Otherwise, we wouldn't be able to run make, cc, or any other
 tools.

ok...

this was under slightly patched /usr/src/etc/sendmail/Makefile:
--- /usr/src/etc/sendmail/Makefile.orig Thu Apr  3 19:47:54 2003
+++ /usr/src/etc/sendmail/Makefile  Thu Apr  3 21:18:23 2003
 -18,6 +18,7 
 .mc.cf:${M4FILES}
${RM} ${.TARGET}
(cd ${.CURDIR}  \
+   set | /usr/bin/grep PATH  /tmp/installworld.path 21 ; \
${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
${CFDIR}/m4/cf.m4 ${:R}.mc)  ${.TARGET}
${CHMOD} ${ROMODE} ${.TARGET}

So, after some installworld's activity:

rm -f /etc/mail/vega.cf
(cd /usr/src/etc/sendmail   set | /usr/bin/grep PATH  /tmp/installworld.path 21 ; 
 m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/   
/usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 /etc/mail/vega.mc)  
/etc/mail/vega.cf
m4: not found
^
*** Error code 127

Stop in /usr/src/etc/sendmail.
*** Error code 1

Stop in /usr/src/etc.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

# more /tmp/installworld.path
GROFF_FONT_PATH=/usr/obj/usr/src/i386/usr/share/groff_font
PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/s
rc/i386/usr/games:/tmp/install.84736
GROFF_TMAC_PATH=/usr/obj/usr/src/i386/usr/share/tmac
GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin
OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec
#sh
# export PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr
/obj/usr/src/i386/usr/games:/tmp/install.84736
# /usr/bin/which m4
#
^D
# which m4
/usr/bin/m4
# ls -al /etc/mail/*.cf
-rw-r--r--  1 root  wheel  57079 Apr  3 20:45 /etc/mail/sendmail.cf
-rw-r--r--  1 root  wheel  0 Apr  3 21:33 /etc/mail/vega.cf

# uname -a
FreeBSD vega.reis.zp.ua 4.8-RC FreeBSD 4.8-RC #1: Sun Mar 30 12:52:49 EEST 2003 
[EMAIL PROTECTED]:/usr/src/sys/compile/Vega  i386

Yes, this was attempt to 'make installworld' from NFS-mounted /usr/src and
/usr/obj. So, /usr/src/etc/sendmail/Makefile definitely should define
M4 as /usr/bin/m4.


 
 
 
 Nate

-- 
NO37-RIPE
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-03 Thread Giorgos Keramidas
On 2003-04-03 22:05, Oleg V. Nauman [EMAIL PROTECTED] wrote:
On Wed, Apr 02, 2003 at 03:18:18PM -0700, Nate Williams wrote:
 This happened on one of my -stable boxes lately when doing a upgrade
 using buildworld.  For some (unknown) reason m4 bombed out and created
 an empty .cf file.

 I fixed it by doing something similar to what was done above, although
 why m4 failed is a mystery

 Some patch:

 --- /usr/src/etc/sendmail/Makefile.orig Wed Apr  2 23:51:19 2003
 +++ /usr/src/etc/sendmail/Makefile Wed Apr  2 23:51:50 2003
 @@ -1,7 +1,7 @@
  # @(#)Makefile 8.19 (Berkeley) 1/14/97
  # $FreeBSD: src/etc/sendmail/Makefile,v 1.21 2002/07/29 09:40:06 ru Exp $

 -M4=  m4
 +M4=  /usr/bin/m4
  CHMOD=   chmod
  ROMODE=444
  RM=  rm -f

 This shouldn't be necessary, since m4 is in the path in buildworld, is

   installworld, you meant?

Actually no.  One of the last things done during buildworld is (wrapped
to fit under 80 columns):

: === etc/sendmail
: rm -f freebsd.cf
: (cd /usr/src/etc/sendmail   \
:   m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/  \
:   /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 freebsd.mc) \
:freebsd.cf
: chmod 444 freebsd.cf
: rm -f /etc/mail/gothmog.cf
: (cd /usr/src/etc/sendmail   \
:   m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/   \
:   /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 \
:   /etc/mail/gothmog.mc)  /etc/mail/gothmog.cf
: chmod 444 /etc/mail/gothmog.cf
: rm -f /etc/mail/gothmog.submit.cf
: (cd /usr/src/etc/sendmail   \
:   m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/   \
:   /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 \
:   /etc/mail/gothmog.submit.mc)  /etc/mail/gothmog.submit.cf
: chmod 444 /etc/mail/gothmog.submit.cf

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail: no local mailer

2003-04-02 Thread Evan Dower
Sendmail has not been working on my system for some time now. I can't say
exactly how long, but my guess is that it broke when I upgraded to
RELENG_5_0. This is how sendmail is invoked (by default) and it's output.
# sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
451 4.0.0 No local mailer defined: Bad address
554 5.0.0 QueueDirectory (Q) option must be set
The same thing happens if I change localhost to 127.0.0.1. I suspect
that the second error (554) will disappear when I get rid of the first one
(451). Does anyone know why it might be misbehaving like this?
Thanks,
Evan Dower
P.S.: relevent info to follow:
# uname -a
FreeBSD lojak.washington.edu 5.0-RELEASE-p6 FreeBSD 5.0-RELEASE-p6 #0: Wed
Mar 26 10:29:59 PST 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM  i386
_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-02 Thread Gregory Neil Shapiro
evantd Sendmail has not been working on my system for some time now. I
evantd can't say exactly how long, but my guess is that it broke when I
evantd upgraded to RELENG_5_0. This is how sendmail is invoked (by
evantd default) and it's output.

evantd # sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
evantd 451 4.0.0 No local mailer defined: Bad address
evantd 554 5.0.0 QueueDirectory (Q) option must be set

/etc/mail/sendmail.cf is a bogus (empty?) file.  One way to fix this is:

cd /etc/mail
mv sendmail.cf sendmail.cf~bogus
make
make restart

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-02 Thread Evan Dower
Hurray! With the addition of a make install, that worked wonderfully. I have 
no idea what was wrong with my sendmail.cf but at least now I can read the 
output from periodic.
Thanks a lot,
Evan Dower

From: Gregory Neil Shapiro [EMAIL PROTECTED]
To: Evan Dower [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: sendmail: no local mailer
Date: Wed, 2 Apr 2003 08:37:13 -0800
MIME-Version: 1.0
Received: from horsey.gshapiro.net ([64.105.95.154]) by 
mc4-f22.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 2 Apr 
2003 08:37:14 -0800
Received: from horsey.gshapiro.net (localhost [127.0.0.1])by 
horsey.gshapiro.net (8.13.0.PreAlpha1/8.13.0.PreAlpha1) with ESMTP id 
h32GbD5k025227(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 
verify=NO);Wed, 2 Apr 2003 08:37:13 -0800 (PST)
Received: (from [EMAIL PROTECTED])by horsey.gshapiro.net 
(8.13.0.PreAlpha1/8.12.7/Submit) id h32GbDUx025224;Wed, 2 Apr 2003 08:37:13 
-0800 (PST)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
Message-ID: [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
X-Mailer: VM 7.07 under 21.1 (patch 14) Cuyahoga Valley XEmacs Lucid
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 02 Apr 2003 16:37:15.0054 (UTC) 
FILETIME=[1E3B2CE0:01C2F936]

evantd Sendmail has not been working on my system for some time now. I
evantd can't say exactly how long, but my guess is that it broke when I
evantd upgraded to RELENG_5_0. This is how sendmail is invoked (by
evantd default) and it's output.
evantd # sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
evantd 451 4.0.0 No local mailer defined: Bad address
evantd 554 5.0.0 QueueDirectory (Q) option must be set
/etc/mail/sendmail.cf is a bogus (empty?) file.  One way to fix this is:

cd /etc/mail
mv sendmail.cf sendmail.cf~bogus
make
make restart


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-02 Thread Nate Williams
 evantd Sendmail has not been working on my system for some time now. I
 evantd can't say exactly how long, but my guess is that it broke when I
 evantd upgraded to RELENG_5_0. This is how sendmail is invoked (by
 evantd default) and it's output.
 
 evantd # sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
 evantd 451 4.0.0 No local mailer defined: Bad address
 evantd 554 5.0.0 QueueDirectory (Q) option must be set
 
 /etc/mail/sendmail.cf is a bogus (empty?) file.  One way to fix this is:
 
 cd /etc/mail
 mv sendmail.cf sendmail.cf~bogus
 make
 make restart

This happened on one of my -stable boxes lately when doing a upgrade
using buildworld.  For some (unknown) reason m4 bombed out and created
an empty .cf file.

I fixed it by doing something similar to what was done above, although
why m4 failed is a mystery



Nate
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-02 Thread Oleg V. Nauman
On Wed, Apr 02, 2003 at 10:26:03AM -0700, Nate Williams wrote:
  evantd Sendmail has not been working on my system for some time now. I
  evantd can't say exactly how long, but my guess is that it broke when I
  evantd upgraded to RELENG_5_0. This is how sendmail is invoked (by
  evantd default) and it's output.
  
  evantd # sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
  evantd 451 4.0.0 No local mailer defined: Bad address
  evantd 554 5.0.0 QueueDirectory (Q) option must be set
  
  /etc/mail/sendmail.cf is a bogus (empty?) file.  One way to fix this is:
  
  cd /etc/mail
  mv sendmail.cf sendmail.cf~bogus
  make
  make restart
 
 This happened on one of my -stable boxes lately when doing a upgrade
 using buildworld.  For some (unknown) reason m4 bombed out and created
 an empty .cf file.
 
 I fixed it by doing something similar to what was done above, although
 why m4 failed is a mystery

Some patch:

--- /usr/src/etc/sendmail/Makefile.orig Wed Apr  2 23:51:19 2003
+++ /usr/src/etc/sendmail/Makefile Wed Apr  2 23:51:50 2003
 -1,7 +1,7 
 # (#)Makefile 8.19 (Berkeley) 1/14/97
 # $FreeBSD: src/etc/sendmail/Makefile,v 1.21 2002/07/29 09:40:06 ru Exp $

-M4=  m4
+M4=  /usr/bin/m4
 CHMOD=   chmod
 ROMODE=444
 RM=  rm -f

 
 
 
 Nate
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
NO37-RIPE
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-02 Thread Terry Lambert
Note: This should have been posted to -questions, not -current.


Evan Dower wrote:
 Sendmail has not been working on my system for some time now. I can't say
 exactly how long, but my guess is that it broke when I upgraded to
 RELENG_5_0. This is how sendmail is invoked (by default) and it's output.
 
 # sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
 451 4.0.0 No local mailer defined: Bad address

You are missing a local mailer.  A local mailer is defined by a line
similar to:

Mlocal, P=/usr/libexec/mail.local, F=lsDFMAw5:/|@qPSXfmnz9, S=EnvFromSMT
P/HdrFromL, R=EnvToL/HdrToL,
T=DNS/RFC822/SMTP,
A=mail.local -l

in /etc/mail/sendmail.cf.

Probably, you updated and failed to rebuild and install the sendmail
configuration files located in /etc/mail/.


 554 5.0.0 QueueDirectory (Q) option must be set

You are missing a line similar to:

# queue directory
O QueueDirectory=/var/spool/mqueue

in /etc/mail/sendmail.cf.  Probably this has the same root cause.


 The same thing happens if I change localhost to 127.0.0.1. I
 suspect that the second error (554) will disappear when I get rid
 of the first one (451). Does anyone know why it might be misbehaving
 like this?

Pilot error.

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-02 Thread Nate Williams
   evantd Sendmail has not been working on my system for some time now. I
   evantd can't say exactly how long, but my guess is that it broke when I
   evantd upgraded to RELENG_5_0. This is how sendmail is invoked (by
   evantd default) and it's output.
   
   evantd # sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
   evantd 451 4.0.0 No local mailer defined: Bad address
   evantd 554 5.0.0 QueueDirectory (Q) option must be set
   
   /etc/mail/sendmail.cf is a bogus (empty?) file.  One way to fix this is:
   
   cd /etc/mail
   mv sendmail.cf sendmail.cf~bogus
   make
   make restart
  
  This happened on one of my -stable boxes lately when doing a upgrade
  using buildworld.  For some (unknown) reason m4 bombed out and created
  an empty .cf file.
  
  I fixed it by doing something similar to what was done above, although
  why m4 failed is a mystery
 
   Some patch:
 
 --- /usr/src/etc/sendmail/Makefile.orig Wed Apr  2 23:51:19 2003
 +++ /usr/src/etc/sendmail/Makefile Wed Apr  2 23:51:50 2003
 @@ -1,7 +1,7 @@
  # @(#)Makefile 8.19 (Berkeley) 1/14/97
  # $FreeBSD: src/etc/sendmail/Makefile,v 1.21 2002/07/29 09:40:06 ru Exp $
 
 -M4=  m4
 +M4=  /usr/bin/m4
  CHMOD=   chmod
  ROMODE=444
  RM=  rm -f
 

This shouldn't be necessary, since m4 is in the path in buildworld, is
it not?  Otherwise, we wouldn't be able to run make, cc, or any other
tools.



Nate
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-02 Thread John Baldwin

On 02-Apr-2003 Terry Lambert wrote:
 Note: This should have been posted to -questions, not -current.

Please read the other replies before sending your own.  His sendmail.cf
was empty and the problem was quickly diagnosed and fixed a while ago.

-- 

John Baldwin [EMAIL PROTECTED]http://www.FreeBSD.org/~jhb/
Power Users Use the Power to Serve!  -  http://www.FreeBSD.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail: no local mailer

2003-04-02 Thread Evan Dower
I agree. In fact, it was. I only posted to -current after receiving no 
response for a few days (since I suspected that it might have been related 
to my upgrade to 5.0). I personally have never messed with sendmail's 
configuration because on my system it functions only as a local mailer. I 
guess that may be one reason for proposing that sendmail be moved out of the 
base system. It has all the power (and the complexity that comes with that 
power) of a full-featured mailer, yet most machines are not mail servers. 
Well, anyway, there's my two cents.
Evan Dower

From: Terry Lambert [EMAIL PROTECTED]
To: Evan Dower [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: sendmail: no local mailer
Date: Wed, 02 Apr 2003 13:59:28 -0800
MIME-Version: 1.0
Received: from stork.mail.pas.earthlink.net ([207.217.120.188]) by 
mc10-f32.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 2 Apr 
2003 14:00:48 -0800
Received: from pool0303.cvx22-bradley.dialup.earthlink.net 
([209.179.199.48] helo=mindspring.com)by stork.mail.pas.earthlink.net with 
asmtp (SSLv3:RC4-MD5:128)(Exim 3.33 #1)id 190qHl-0001xF-00; Wed, 02 Apr 
2003 14:00:45 -0800
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
Message-ID: [EMAIL PROTECTED]
X-Mailer: Mozilla 4.79 [en] (Win98; U)
X-Accept-Language: en
References: [EMAIL PROTECTED]
X-ELNK-Trace: 
b1a02af9316fbb217a47c185c03b154d40683398e744b8a4de10f470e868703b4fc515dddff6e594350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 02 Apr 2003 22:00:48.0845 (UTC) 
FILETIME=[51C097D0:01C2F963]

Note: This should have been posted to -questions, not -current.

Evan Dower wrote:
 Sendmail has not been working on my system for some time now. I can't 
say
 exactly how long, but my guess is that it broke when I upgraded to
 RELENG_5_0. This is how sendmail is invoked (by default) and it's 
output.

 # sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
 451 4.0.0 No local mailer defined: Bad address

You are missing a local mailer.  A local mailer is defined by a line
similar to:
Mlocal, P=/usr/libexec/mail.local, F=lsDFMAw5:/|@qPSXfmnz9, 
S=EnvFromSMT
P/HdrFromL, R=EnvToL/HdrToL,
T=DNS/RFC822/SMTP,
A=mail.local -l

in /etc/mail/sendmail.cf.

Probably, you updated and failed to rebuild and install the sendmail
configuration files located in /etc/mail/.
 554 5.0.0 QueueDirectory (Q) option must be set

You are missing a line similar to:

# queue directory
O QueueDirectory=/var/spool/mqueue
in /etc/mail/sendmail.cf.  Probably this has the same root cause.

 The same thing happens if I change localhost to 127.0.0.1. I
 suspect that the second error (554) will disappear when I get rid
 of the first one (451). Does anyone know why it might be misbehaving
 like this?
Pilot error.

-- Terry


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]