...


Ich gehe mal davon aus, das Du hier irgendwas verwechselst:

Absolut m�glich.



fetchmail: holt nut E-Mails vom internet mit pop3 oder imap ab

Hab ich so verstanden.


procmail: MDA -> sortiert mails in definierte Postf�cher

Ja, und �bergibt sie dann jeweils an postfix um sie einzusortieren, oder? So hab ich das jedenfalls verstanden. Aber ich habe in Sachen email noch ein paar gro�e Wissensl�cken... :(


postfix: MTA -> Mail Transport Agent der zum ausliefern von Mails an den ISP verwendet wird.

postfix schmei�t jede einzelne Mail in die Mailbox des Besitzers, also nach /home/mail/user/XXXXX/ Bei mir jedenfalls.

Sprich, postfix hat nichts mit fetchmail oder procmail tu tun. Jeder hat eine andere aufgabe. - Und das ist auch gut so.

Da ich das Gef�hl habe irgendwas falsch, doppelt (speziell MTA, weil lmtp von cyrus UND sendmail-Interface von postfix) oder gar nicht gemacht zu haben hier mal meine Configs. Evtl kann man da mal ein wenig
aufr�umen:


Eingesetzte Software

amavis-postfix   0.3.12pre5.20020310-5 aus woody
postfix          1.1.11.0-3 aus sarge
procmail         3.22-8 aus sarge

cyrus-sasl-2.1.17 ist Eigenbau
cyrus-imapd-2.1.16 ist Eigenbau
fetchmail 6.2.5+SSL+NLS ist Eigenbau


/etc/imapd.conf ================

configdirectory: /var/lib/cyrus
defaultpartition: default
partition-default: /home/mail
admins: cyrus
srvtab: /var/lib/cyrus/srvtab
allowanonymouslogin: no
sasl_pwcheck_method: saslauthd
sendmail: /usr/sbin/sendmail
lmtpsocket: /var/lib/cyrus/socket/lmtp
umask: 077

tls_cert_file: /var/lib/cyrus/ssl/server.cert
tls_key_file: /var/lib/cyrus/ssl/server.key


/etc/cyrus.conf ================

START {
recover cmd="ctl_cyrusdb -r"
}

SERVICES {
imaps           cmd="imapd -s" listen="imaps" prefork=0
lmtpunix        cmd="lmtpd" listen="/var/lib/cyrus/socket/lmtp" prefork=1
}

EVENTS {
checkpoint      cmd="ctl_cyrusdb -c" period=30
delprune        cmd="ctl_deliver -E 3" at=0400
tlsprune        cmd="tls_prune" at=0400
}

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

... (standard)

#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/deliver -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=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}


# only used by postfix-tls
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes


localhost:10025 inet n - n - - smtpd -o content_filter=
amavis unix - n n - 10 pipe user=amavis argv=/usr/sbin/amavis ${sender} ${recipient}



/etc/postfix/main.cf =====================

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 = yes
myhostname = foo
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = foo, localhost
relayhost =
mailbox_transport = cyrus
#mailbox_transport = lmtp:unix:/var/lib/cyrus/socket/lmtp
mynetworks = 192.168.0.0/24, 192.168.1.0/24, 127.0.0.0/8
mailbox_command = procmail -t -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
content_filter = amavis:


/etc/fetchmailrc =================

poll pop.gmx.net protocol pop3 user "xxxxxxx" there
with password "asdfasdf" mda "/usr/bin/procmail -t"

...

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

DELIVERMAIL="/usr/bin/deliver"
COMSAT=no
LOGFILE=/var/log/procmail.log
## Wenn es schief geht ein protokoll LOGABSTRACT=all
LOGABSTRACT=no
VERBOSE=on

### spam ###

:0 w
[EMAIL PROTECTED]
| $DELIVERMAIL -a backup -m user.backup.spam

### backups aller mails ###
:0 c
| $DELIVERMAIL -a backup -m user.backup


# Falls keine andere Regel greift


:0 w
*^*.*@
| $DELIVERMAIL -a ich -m user.ich.unfiltered



--
Mit freundlichen Gruessen
Bjoern Schmidt



--
Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/


Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)



Antwort per Email an