Koozali.org: home of the SME Server

Procmail issue at my location

Sylvain

Procmail issue at my location
« on: August 21, 2003, 07:56:33 PM »
Hello all,

I had to restore our mail server on a new machine. Install all the contribs I need and I'm getting into this issue with procmail

When I go enable procmail
user-manager -> Process mail -> enable procmail

I do not receive anymore emails

here is a tail of one receiving message from outside

tail -f /var/log/qmail/current

@400000003f44d9511f01204c info msg 8077675: bytes 1699 from qp 23773 uid 400
@400000003f44d9512653ed84 starting delivery 6200: msg 8077675 to local sylvain@mail.kitco.com
@400000003f44d9512653fd24 status: local 2/10 remote 0/20
@400000003f44d9512654010c delivery 6199: success: forward:_qp_23773/did_0+0+1/
@400000003f44d951265404f4 status: local 1/10 remote 0/20
@400000003f44d951265408dc end msg 8077674
@400000003f44d9521ce20524 delivery 6200: success: procmail:_Couldn't_create_"/var/spool/mail/sylvain"/did_0+0+1/
@400000003f44d9521ce214c4 status: local 0/10 remote 0/20
@400000003f44d9521ce218ac end msg 8077675

There a message procmail:_Couldn't_create_"/var/spool/mail/sylvain"/did_0+0+1/

There is nothing under /var/spol/mail on my server

What do I missing

Here is log files of user Procmail

Folder: /home/e-smith/files/users/sylvain/Mail/test/new/1061476679.2 1875
procmail: Closing brace unexpected
procmail: Closing brace unexpected

Please if you been through that before, let me know what I am missing

Thank you!

Sylvain

Sylvain

Re: Procmail issue at my location
« Reply #1 on: August 21, 2003, 07:57:57 PM »
If I change the setting to receive email locally (not through procmail) I receive email

But I need procmail working :-0

robey

Re: Procmail issue at my location
« Reply #2 on: August 25, 2003, 10:59:59 AM »
Im experiencing the same problem
I get the following error :

@400000003f45659602c772dc delivery 9650: success: procmail:_Couldn't_create_"/var/spool/mail/anthony"/procmail:_[29144]_Fri_Aug_22_02:36:27_2003/procmail:_Assigning_"LOGABSTRACT=all"/procmail:_Assigning_"LOGFILE=/home/e-smith/files/users/anthony/procmail.log"/procmail:_Opening_"/home/e-smith/files/users/anthony/procmail.log"/did_0+0+1/

im stumped ...
I tried chmod /var/spool/mail/* to 777 just to see
No change

running 5.6 and im trying to migrate everyone to IMAP

will moving over to SME 6 fix this I wonder??

thx for the ear, whoever you are :)

Jon Blakely

Re: Procmail issue at my location
« Reply #3 on: August 25, 2003, 02:02:54 PM »
Sylvain,

There is a syntax error in your .procmailrc.

Jon

Sylvain

Re: Procmail issue at my location
« Reply #4 on: August 26, 2003, 01:00:41 AM »
OK a syntax error in my .procmailrc

here is my procmailrc:

SHELL=/bin/bash
DEFAULT=$HOME/Maildir/       ; OK it's where all mail goes in local mode
FORMAIL=/usr/bin/formail         ;
MAILDIR=$HOME/Mail             ; OK  It's where all IMAP folder are
PWDIR=$HOME                      ; Present Working dirrectory
SENDMAIL=/usr/sbin/sendmail

#some logging
VERBOSE=no
LOGFILE=$HOME/procmail.log

#delete


# ---------------------------------------
# Default Shell, Program & file locations
# ---------------------------------------
SHELL=/bin/bash
DEFAULT=$HOME/Maildir/
FORMAIL=/usr/bin/formail
MAILDIR=$HOME/Mail
PMDIR=$HOME
SENDMAIL=/usr/sbin/sendmail

# ------------
# some logging
# ------------
VERBOSE=no
LOGFILE=$HOME/procmail.log

# -----------------
# delete duplicates
# -----------------
:0 Wh: msgid.lock
| $FORMAIL -D 8192 msgid.cache

# -------------------------------
# SpamAssassin Router
# -------------------------------
:0fw
| /usr/bin/spamc


# --------------------------
# start of user pro.recipies
# --------------------------

:0
* ^From.*alex@zonev.com
$MAILDIR/Alez/

:0
* ^From.*sylvain_angers@yahoo.com
$MAILDIR/test/

# -------------------------------
# Spamassassin sort to ...
# -------------------------------
:0
* ^X-Spam-Status: Yes
    $HOME/Mail/junkmail/
  }
}

# --------------------------
# all else goes to the inbox
# --------------------------
:0
$DEFAULT


 
I read the man procmailrc and I will continu concentring on this issue.

Thank you John.

Dave Liquorice

Re: Procmail issue at my location
« Reply #5 on: August 27, 2003, 01:38:08 AM »
If you haven't spotted the sytax error it's in the "# Spamassassin sort to ..."
section. The two closeing curly braces shouldn't be there.

Now this file is built from a templates in /etc/e-smith/templates-user/.procmailrc and the fragment that writes that section is 95saSort. Have a look in there, though I have a feeling that the bug may lie within the scripts that call the fragments as I had suprious "0" (zero) in generated .procmail files if the sort option was turned off. I cured it by adding in a comment that is sent to the file if the option is off.

One for smebugs I think...

Cheers
Dave.

Gordon Rowell

Re: Procmail issue at my location
« Reply #6 on: August 27, 2003, 02:00:38 AM »
Dave Liquorice wrote:

>  [...]
> One for smebugs I think...

Nope - it's a contrib package. We don't make use of procmail
in any of our releases - it's installed, but unused.

Please contact the authors, or the devinfo list.

Gordon