PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : fetchmail/procmail/mutt problem



EsPo
30.12.04, 21:32
Hallo zusammen,
ich hab ein kleines problem mit meiner mail konfiguration. Also ich hole via fetchmail meine mails leite diese weiter an procmail und will sie mir nun mit mutt anschauen nur da beginnt das problem beim filtern erstellt er keine mailbox laut mutt. Versenden tu ich mit msmtp.

Hier die configs,



msmtprc:
account default
host smtp.gmail.com
from xxx
auth plain
user xxx
password xxx
tls




fetchmail:
poll pop.gmail.com timeout 60 with proto POP3
user "xxx" there
with password "xxx"
is espo here options fetchall
ssl
mda '/usr/bin/procmail'




procmail:
HOME=/Users/espo
PATH=$HOME/bin:/usr/bin/:/usr/ucb/:/bin/:/usr/local/bin/:.
MAILDIR=$HOME/Mail/
LOGFILE=$MAILDIR/.from
LOCKFILE=$HOME/.lockmail
LISTEN=$MAILDIR/lists/
PERSONAL=$MAILDIR/personal/

# Antivirus und Spam

:0fw
| /usr/local/bin/clamfilter.pl

:0:
* ^X-Virus-Found: yes
$MAILDIR/Virus/.

:0fw: spamassassin.lock
| /usr/bin/spamassassin -a

:0fw
| /usr/local/bin/clamfilter.pl

:0:
* ^X-Virus-Found: yes
$MAILDIR/Virus/.

:0fw: spamassassin.lock
| /usr/bin/spamassassin -a

:0:
* ^X-Spam-Status: Yes
$MAILDIR/Spam/.

# Delivers system notification

:0:
* ^From.*Cron\ Daemon.*
$MAILDIR/Inbox

# local filter rules

:0:
* ^(To|Cc|Bcc).*insa@xxx.it.*
$MAILDIR/Indox

:0:
* ^From.*navimarin@gmail.com
$MAILDIR/navi

:0:
* ^From.*moritz.lutz@gmx.net
$MAILDIR/Inbox




mutt:
set alias_file="~/.aliases"
source ~/.aliases
set sendmail=/usr/bin/msmtp
set implicit_autoview
set sort=threads
set mbox="~/mail/Inbox"
set folder="~/mail/"
set record="~/mail/sent"
set spoolfile="~/mail/Inbox"
set include=yes
set indent_str="> "

set print_command="muttprint"
# Alle Header sollen an Muttprint �bergeben werden
macro index p "<display-toggle-weed> <print-message> <display-toggle-weed> <exit>"
macro pager p "<display-toggle-weed> <print-message> <display-toggle-weed>"
set print="yes"
# Jede Mail einzeln drucken
set print_split


mailboxes ~/mail/Inbox ~/mail/navi ~/mail/lists/holarse
color header yellow black Subject:
color header brightcyan default .
color header brightred default "^X-Spam"
color header magenta default "^List"
color body brightyellow default [_a-z\.\$A-Z0-9-]+@[a-zA-Z0-9\./\-]+
color body blue default (http|ftp)://[_a-zA-Z0-9\./~\-]+
color quoted green default
color signature brightblue default
color indicator blue default
color attachment blue default
color tree red default
color indicator red default
color status blue default
color tilde blue default
color normal default default
color body green default "^gpg: Good signature from"
color body brightred default "^gpg: Bad signature from"
color body brightred default "^gpg: BAD signature from"
color body brightred default "^gpg: Note: This key has expired!"
color body brightyellow default "^gpg: WARNING: This key is not certified with a trusted signature!"
color body brightyellow default "^gpg: There is no indication that the signature belongs to the owner."
color body brightyellow default "^gpg: can't handle these multiple signatures"
color body brightyellow default "^gpg: signature verification suppressed"
color body brightyellow default "^gpg: invalid node with packet of type"
color header red default 'X-Mailer:.*Outlook'
color header red default 'X-MimeOLE: Produced By Microsoft*'

set editor="nano"
set pager_context=3
set pager_format="[%4C/%4m] (%S%Z) %%=%N $i %> [%lL]"
set pager_index_lines=6
set pager_stop
set ispell="/usr/bin/ispell"
my_hdr X-OpenSource: Have a lot of Fun
my_hdr Reply-To: xxx
my_hdr X-PGP-Key: FOO

bind index c change-folder
set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %s"
set query_command="abook --mutt-query '%s'"
macro index a "|abook --add-email\n" 'add sender to abook'
macro pager a "|abook --add-email\n" 'add sender to abook'
macro index y "|urlview\n"
macro pager y "|urlview\n"

macro index f !"fetchmail -v"\r

set use_from=no
my_hdr From: "Moritz 'eSpo' Lutz <xxx>

# spamassassin report and classify as spam
macro index S "|/usr/bin/spamassassin -r"
# spamassassin classify as ham
macro index H "|/usr/bin/sa-learn --ham --no-rebuild --single"
# rebuild the spamassassin bayes filter db
macro index R "|/usr/bin/sa-learn --rebuild"


mfg eSpo

carnil
02.01.05, 10:17
Hallo espo

Ich weiss nicht inwiefern das hilft, aber beim lesen dieses Beitrags ist mir folgendes aufgefallen: Müssen denn die mailboxen in du die entsprechenden Mail verschoben werden sollen ich schon existieren? Also $MAILDIR/Spam beispielweise. Ein anderer Punkt:


:0:
* ^X-Virus-Found: yes
$MAILDIR/Virus/.

:0fw: spamassassin.lock
| /usr/bin/spamassassin -a

:0:
* ^X-Spam-Status: Yes
$MAILDIR/Spam/.

Ist der Punkt hinter Virus/. bzw. Spam/. beabsichtigt?

Hmm, ok der thread ist schon etwas älter, vielleicht hast Du ja das Problem schon gelöst.

MfG carnil

EsPo
02.01.05, 10:25
Nein das ding tut immer noch net. Auch wenn ich die Punkte dahinter weg mach . Was hast du den gemeint mit die muessen schon existieren? Das versteh ich net so ganz :)

mfg eSpo

EsPo
02.01.05, 13:29
HOME=/Users/espo
PATH=$HOME/bin:/usr/bin/:/usr/ucb/:/bin/:/usr/local/bin/:.
MAILDIR=/Users/espo/mail/
LOGFILE=$MAILDIR/.from
LOCKFILE=$HOME/.lockmail

# Antivirus und Spam

:0fw
| /usr/local/bin/clamfilter.pl

:0:
* ^X-Virus-Found: yes
Virus/

:0fw: spamassassin.lock
| /usr/bin/spamassassin -a

:0:
* ^X-Spam-Status: Yes
Spam/

# Delivers system notification

:0:
* ^From.*Cron\ Daemon.*
Inbox/

# local filter rules

#:0:
# ^(To|Cc|Bcc).*insa@xxx.it.*

:0:
* ^From.*navimarin@gmail.com

so gehoert es problem is geloest!