PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Procmail gibt nicht an cyrus weiter



Russel-Athletic
14.04.04, 19:59
So mein procmail gibt nichts an meinen Cyrus Imap Server weiter. Was ich im moment haben will ist, dass ich gar nichts rausfiltere sondern alles ersteinmal in meinen Postkasten kommt. Später kann ich dann vielleicht ein paar Filter einbauen. Bzw eigentlich wäre es gut, wenn ihr mir noch folgendes bauen könntet:
Ich hab eine Liste mit Mailaddressen, die dann alle in den Ordner Spam verschoben werden sollen, wenn ich sie erhalte. Allerdings möchte ich nicht für jeden Mailaddresse einen Eintrag, sondern mehr eine variable in denen alle drinnstehen.
Mein System ist übrigens Debian.


Ausgabe von fetchmail:



fetchmail: 6.2.5 querying pop.gmx.de (protocol POP3) at Thu Jan 8 23:41:32 1998: poll started
fetchmail: POP3< +OK GMX POP3 StreamProxy ready <8062.1081965040@mp011>
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR Unknown command.
fetchmail: Unknown command.
fetchmail: Repoll immediately on ACCOUNT@pop.gmx.de
fetchmail: POP3< +OK GMX POP3 StreamProxy ready <29398.1081965040@mp006>
fetchmail: POP3> USER ACCOUNT
fetchmail: POP3< +OK May I have your password, please?
fetchmail: POP3> PASS *
fetchmail: POP3< +OK mailbox has 1 messages (1231 octets)
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 1231
1 message for ACCOUNT at pop.gmx.de (1231 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 1231
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK message follows
reading message ACCOUNTpop.gmx.de:1 of 1 (1231 octets)
#**************procmail: Error while writing to "/var/log/mail/.log"
procmail: Skipped "/usr/sbin/cyrdeliver -m user.engelzz"
flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK message deleted
fetchmail: POP3> QUIT
fetchmail: POP3< +OK bye
fetchmail: 6.2.5 querying pop.gmx.de (protocol POP3) at Thu Jan 8 23:41:39 1998: poll completed
fetchmail: normal termination, status 0




Meine procmailrc hab ich aus einem Tutorial, deswegen sieht sie so komisch aus.
procmail.rc



DELIVERMAIL="/usr/sbin/cyrdeliver"
LOGFILE="/var/log/mail/$user.log"
USERLOC="engelzz"
IMAP="$DELIVERMAIL -m user.$USERLOC"
BACKUP="$DELIVERMAIL -m user.$USERLOC.Backup"
SPAMIT="$DELIVERMAIL -m user.$USERLOC.SPAM"

:0 c
| $BACKUP


#next

:0
* ^Subject: This is spam
| $SPAMIT


#nextit
:0 w
@ $IMAP
:0 w
{
EXITCODE=$?
HOST
}



Falls ihr noch mehr Infos braucht fragt einfach.

THEReapMan
15.04.04, 00:05
Hi Russel-Athletic, leidensgenosse!

Bin mit meinem Mailserver ne ecke weiter. *ätsch* :p
naja spass beiseite. :D

hier mal meine procmailrc


#Logfile in das alles geloggt wird
LOGFILE=/var/log/procmail

#schiebe alle Mails die an nobody@gmx.de in das cyrus-postfach user.markus
:0
* ^TO.*nobody@gmx.de
|/usr/sbin/cyrdeliver -a -m markus

Russel-Athletic
15.04.04, 11:52
Hab mal meine procmailrc soweit verändert, alllerdings will cyrus iommernoch keine Mails haben. stattdessen landen die alle in /var/log/mail/engelzz

Edit: Hab null und o vertauscht, trotzdem geht es noch nicht


Folder: /usr/sbin/cyrdeliver -a -m engelzz 987
couldn't connect to lmtpd: Permission denied

Mhh muss ich das script als root laufen lassen? Und wenn nicht, welche Berechtigunegen müss welcher Ordner haben?

Edit: Hab das script jetzt als root laufen

P.S.: Man fasst es nicht. Ab jetzt bist du men persönlicher Ansprechpartner für Maildinge :D