Postfix und SpamAssassin laufen soweit, das sehe ich, weil die Mail im Header ein X-Check bekommen.(X-Spam-Status: No, score=0.0)
Doch procmailrc wird einfach übergangen.
Meine procmailrc
Code: Select all
# Path zum SpamAssassin Clienten
SPAMASSASSIN=/usr/bin/spamc
# SpamAssassin Lockfile
LOCKFILESPAMC=/var/spool/procmail/.spamclock
# Procmail Lockfile
LOCKFILEPROCM=/var/spool/procmail/.proclock
# die Mailbox in die Spam gelangen soll
SPAMBOX=/var/spool/mail/filter
# nur mails kleiner als 250 kb ueberpruefen
:0fw
* < 256000
| $SPAMASSASSIN
# Mails durch Spamassassin schleusen und X-Spam-Status Flag setzen
:0fw: $LOCKFILESPAMC
| $SPAMASSASSIN
# Mails mit X-Spam-Status Flag in Spambox leiten
#:0: $LOCKFILEPROCM
#* ^X-Spam-Status: Yes
#$SPAMBOX
:0 w
* ^Subject:.*gott
| sabine@domaine.de
:0 w
* ^Subject:.*gott
| sabine@domaine2.de
also alles was nach sabine@domaine.de mit Subject gott wird nach meine 2 Mailadresse (andere Server) umgeleitet.
Aber ich bekomme die immer auf sabine@domaine.de, dort wo ich die hinschicke.
Ich vermute den Fehler in der master.cf
Code: Select all
smtp inet n - n - - smtpd -o content_filter=filter:
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
#tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#localhost:10025 inet n - n - - smtpd -o content_filter=
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#cyrus unix - n n - - pipe
# user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#procmail unix - n n - - pipe
# flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
procmail unix - n n - 20 pipe flags=R user=nobody argv=/usr/bin/procmail -o SENDER=${sender}
retry unix - - n - - error
proxywrite unix - - n - 1 proxymap
dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d $(recipient)
filter unix - n n - - pipe
user=filter argv=/home/filter/sc/filter.sh -f ${sender} -- ${recipient}
#procmail unix - n n - 20 pipe flags=R user=nobody argv=/usr/bin/procmail -o SENDER=${sender}
in der main.cf habe ich z.B.
mailbox_command =/usr/bin/procmail
smtpd_sasl_type = dovecot
smtpd_sasl_path =smtpd
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
stehen.
Die /etc/procmailrc habe ich auch in /home/sabine kopiert.
Wo stellt man eigentlich ein, ob es eine Globale procmailrc in etc oder locale in home/user gibt?
müssen die Daten in der master.cf wirklich mit TABS getrennt werden, und nicht mit Leerzeichen?
ist das richtig, das in der master.cf z.B. hinter $recipient) ein Umbrucht ist? wie her:
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
(Suse11)