🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comm.software.mailserver
Article #16

procmail geht nicht

#16
From: Gerhard Engler
Date: Fri, 09 Jan 2004 04:28
110 lines
4322 bytes
Hallo Newsgroup,

ich k�mpfe nun schon den ganzen Feiertag mit dem gleichen Problem:

Meine Mails sollen folgenden Weg gehen Postfix -> procmail -> cyrus-imapd.

Leider kommen Sie nicht in den imap-Postf�chern an. Wenn ich procmail
herauslasse geht alles hervorragend (also mit mailbox_transport = cyrus
in der main.cf).

In der /var/log/procmail.log landet leider gar nichts.

Hat jemand eine Idee?

Vielen Dank!


Nach einer Anleitung (http://www.daniel-lewin.de) sehen meine
Konfigurationsdateien folgenderma�en aus:

/etc/postfix/main.conf ========================================

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no
append_dot_mydomain = no
myhostname = gustav.duck
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = gustav.duck, gustav, localhost.duck, localhost
relayhost = mail.gmx.net
mynetworks = 127.0.0.0/8, 192.168.1.0/24, 192.168.2.0/24, 192.168.1.3.0/24
mailbox_transport = procmail
mailbox_size_limit = 0
recipient_delimiter =
mail_owner = postfix
default_transport = smtp
canonical_maps = hash:/etc/postfix/canonical
luser_relay = administrator@gustav.duck


/etc/postfix/master.cf ===========================================

smtp   inet n - - - - smtpd
#628   inet n - - - - qmqpd
pickup   fifo n - - 60 1 pickup
cleanup   unix n - - - 0 cleanup
qmgr   fifo n - - 300 1 qmgr
#qmgr   fifo n - - 300 1 nqmgr
rewrite   unix - - - - - trivial-rewrite
bounce   unix - - - - 0 bounce
defer   unix - - - - 0 bounce
flush   unix n - - 1000? 0 flush
smtp   unix - - - - - smtp
showq     unix n - - - - showq
error     unix - - - - - error
local   unix - n n - - local
virtual   unix - n n - - virtual
lmtp   unix - - n - - lmtp
cyrus   unix - n n - - pipe
   flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
procmail  unix - n n - - pipe
   flags=R user=mail argv=/usr/bin/procmail -t -m USER=${user}
EXTENSION=${extension} /etc/procmail/procmailrc
uucp   unix - n n - - pipe
   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail    unix  -       n       n       -       -       pipe
   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
   flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop
-f$sender $recipient
scalemail-backend unix - n n - 2 pipe
   flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}


/etc/procmail/procmailrc =============================================


LOGFILE="/var/log/procmail.log"
VERBOSE=on
DELIVERMAIL="/usr/sbin/cyrdeliver"
INBOX="$DELIVERMAIL -e -a $USER -q -m user.$USER"
SPAM="$INBOX.Spam"

# --- From-Zeile l�schen, ---
# --- sonst funktioniert cydeliver nicht !! ---
:0fw
| formail -f -I "From "

# --- in Ordner sortieren ---
:0w
* ^X-Spam-Check: Spam
| $SPAM

# --- wenn noch nichtzugestellt, an INBOX zustellen --
:0w
| $INBOX

# --- und Schluss ---
:0w
{
EXITCODE=$?
HOST
}
Technical Details
Message-ID: <claltb.9p.ln@ID-63192.user.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!dialin-212-144-165-224.arcor-ip.NET!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: 1101c9,bd06470099d4b5a2,start
X-Google-Attributes: gid1101c9,public
X-Google-Thread: fb9fe,bd06470099d4b5a2,start
X-Google-Attributes: gidfb9fe,public
X-Google-Thread: f55df,bd06470099d4b5a2,start
X-Google-Attributes: gidf55df,public
X-Google-ArrivalTime: 2004-01-08 20:29:14 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!dialin-212-144-165-224.arcor-ip.NET!not-for-mail
From: "Gerhard Engler" <gerhard.engler@gmx.de>
Newsgroups: de.comm.software.mailserver,at.linux,de.comp.os.unix.linux.misc
Subject: procmail geht nicht
Date: Fri, 9 Jan 2004 05:28:26 +0100
Lines: 115
Message-ID: <claltb.9p.ln@ID-63192.user.dfncis.de>
NNTP-Posting-Host: dialin-212-144-165-224.arcor-ip.net (212.144.165.224)
X-Trace: news.uni-berlin.de 1073622553 8692421 212.144.165.224 ([63192])
X-Orig-Path: ID-63192.user.dfncis.de!nobody
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300