procmail
[Top] [All Lists]

Re: Setup problem

2001-12-17 05:39:57
Thanks for your help.
First, I am using v3.22 (sorry for the confusion, a late night typing
error!)

procmail -v | head -1 yields the following output:
=============
procmail v3.22 2001/09/10
    Copyright (c) 1990-2001, Stephen R. van den Berg    <srb(_at_)cuci(_dot_)nl>
    Copyright (c) 1997-2001, Philip A. Guenther
<guenther(_at_)sendmail(_dot_)com>

Submit questions/answers to the procmail-related mailinglist by sending to:
        <procmail-users(_at_)procmail(_dot_)org>

And of course, subscription and information requests for this list to:
        <procmail-users-request(_at_)procmail(_dot_)org>

Locking strategies:     dotlocking, fcntl()
Default rcfile:         $HOME/.procmailrc
Your system mailbox:    /var/spool/mail/root
===============

What is the Mlocal config file (forgive my ignorance I'm quite new to this)?
My sendmail.cf file is located in the /etc directory (copy attached)

My .procmailrc file looks like this:
================
PATH=/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin
MAILDIR=$HOME/
DEFAULT=$MAILDIR/mbox
#
:0
* ^TO_*julie@
/var/spool/mail/julie
#
:0
* ^TO_*ben@
/var/spool/mail/ben
#
:0
* ^Subject:.*[BibleWorks]
Bibleworks
#
:0
* ^Subject:.*[newbie]
Mandrake
#
:0
* ^From.*"Cron Daemon"
Cron
#
:0
* ^From.*packard
StJohns
#
:0
* ^From.*jervis
StJohns
#
:0
* From.*pratt
StJohns
#
:0
* From.*atkinson
Nigel
============================

Thanks for pointing me to the log file. /var/log/mail/errors contains the
following line:
Dec 17 11:02:48 calvin procmail[24139]: Suspicious rcfile
"/home/mark/.procmailrc"


Your script yielded the following output:
===============================
# procdiag v20011217.0110
# procdiag run at Mon Dec 17 11:24:15 GMT 2001

# general account information:
USER: mark (mark)
GROUPS: mark mail cdrom usb cdwriter audio xgrp family church
SHELL: /bin/bash
MAIL: /var/spool/mail/mark
hostname: calvin (calvin.stjohns.net)
FQDN: calvin.stjohns.net

# user info from /etc/passwd (password is masked):
mark:x:501:501:Mark Lucas:/home/mark:/bin/bash

# system identifiers (if discernable):
OSTYPE: linux-gnu
MACHTYPE: i586-mandrake-linux-gnu
UNAME: Linux calvin.stjohns.net 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001
i586 unknown

# The current shell path is (not to be confused with the MTA-defined path):
PATH:
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/home/
mark/bin:/usr/X11R6/bin:/usr/games

# formail and procmail information (as per versions in the current path):
0755  1 root     root       27800 Thu Nov 29 09:51:07 2001 /usr/bin/formail
formail v3.22 2001/09/10

6755  1 root     mail       71372 Thu Nov 29 09:51:07 2001 /usr/bin/procmail
procmail v3.22 2001/09/10
Locking strategies:     dotlocking, fcntl()
Default rcfile:         $HOME/.procmailrc
Your system mailbox:    /var/spool/mail/mark

# various procmail configuration elements:
mailbox="/var/spool/mail/mark"
mta="/usr/sbin/sendmail"
host="calvin.stjohns.net"
version="3.22"
linebuf="2048"
shell="/bin/bash"
path="/home/mark/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
shellmetas="&|<>~;?*["

# sed version or other identifier
0755  1 root     root       57180 Mon Mar 26 07:27:51 2001 /bin/sed
which: no what in
(/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/home
/mark/bin:/usr/X11R6/bin:/usr/games)
GNU sed version 3.02

Copyright (C) 1998 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.

# sh info (intended to show whether sh is sh or a symlink to another shell)
lrwxrwxrwx    1 root     root            4 Nov 28 10:32 /bin/sh -> bash

# sendmail program information:
which: no sendmail in
(/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/home
/mark/bin:/usr/X11R6/bin:/usr/games)
Use of uninitialized value in -r at -e line 4.
Use of uninitialized value in concatenation (.) at -e line 6.
: file not found or insufficient permission
./procdiag.sh: sendmail: command not found

# Determining Mlocal in sendmail.cf
In /etc/sendmail.cf:
DMlocalhost.localdomain

# my name for error messages
--
Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -a $h -d $u
Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
NOTE: procmail appears to be the LDA
NOTE: There is no /etc/mail/sendmail.cf file.

# file permissions and ownership:
0730 70 mark     mark        4096 Mon Dec 17 11:21:20 2001 /home/mark/
CAUTION: /home/mark perms exceed 0755: curb back to 0710
0644  1 mark     mark           4 Sun Dec 16 17:53:10 2001
/home/mark/.forward
0770  1 mark     mark         389 Sat Dec 15 16:43:41 2001
/home/mark/.procmailrc
CAUTION: /home/mark/.procmailrc perms exceed 0755: curb back to 0750
NOTE: There is no /etc/procmailrc file.
NOTE: There is no /etc/procmailrcs file.
NOTE: There is no /home/mark/Mail file.
NOTE: There is no /home/mark/mail file.
NOTE: There is no /home/mark/.procmail file.
0600  1 mark     mail           0 Mon Dec 17 11:02:55 2001
/var/spool/mail/mark

# procdiag report end
===================================

I installed procmail from an rpm, I've never had much luck compiling source
for some reason.

Thanks for your help,

        Mark Lucas



----- Original Message -----
From: "Professional Software Engineering" 
<PSE-L(_at_)mail(_dot_)professional(_dot_)org>
To: <procmail-users(_at_)procmail(_dot_)org>
Sent: Sunday, December 16, 2001 8:44 PM
Subject: Re: Setup problem


At 16:42 2001-12-16 +0000, Mark Lucas did say:
Hi. I just can't seem to get procmail to run!

I'm running Mandrake 8.0 on my server with Sendmail, Fetchmail, UW IMAP
and
Procmail (v2.2.2).

Uh????

what do you get when you run:

         procmail -v | head -1

*THAT* would be a version number.  The "2.2.2" you're citing for the
procmail version is gibberish, and if it _were_ a valid version, it'd be
from the early to mid 1990's.

I've checked the settings in Sendmail and it seems to be pointing to
Procmail ok.

We must take your word on that, since you don't cite your Mlocal config.

If you have made changes to the sendmail.cf, have you _restarted_ sendmail
to reflect those changes?

I've checked and re-checked my .procmailrc file and it all looks OK.

Again, we must take your word on that since you provide no evidence.  Try
renaming the .procmailrc entirely to remove it from the picture.

What does your /var/log/maillog or /var/log/messages say when you attempt
delivery?  A common mistake is a failure to set permissions correctly, and
either sendmail or procmail (as LDA) should emit some message to that
effect to the log.


I _just_ happen to be developing a script to assist with this diagnostic
process.  Perhaps you can fetch it from:

         <http://www.professional.org/procmail/procdiag.sh>

(Note that it executes procmail several times for version and
configuration
info, so if you do have a bad build of procmail, you'll need to resolve
that before diagnosing basic config trouble)

Execute it, evaluate the results, then after assuring yourself that it
isn't passing your root password or somesuch to the universe, post the
results here.

If I type procmail on the command line then it just seems to hang.

         ls -al `which procmail`

What am I doing wrong?

We should start with what real version of procmail you're running.  You
might have a lousy build from Mandrake (sad but true - they've got
problems
in their distribution of the commercial packaged version).  Have you
considered downloading the procmail source (3.15 or 3.22), and building
that?

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer:
<http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the
list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

Attachment: sendmail.cf
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>