Procmail gibt nicht an fetchmail weiter
Procmail gibt nicht an fetchmail weiter
Hi,
also cyrus läuft und ich habe auch eine mailbox angelegt, zm bsp user.antorox. Jetzt hole ich meine mails mit fetchmail
ab. Dieses soll die mails zu procmail weitergeben, die dann wiederum in der imap mailbox von cyrus landen sollen.
Wenn ich fetchmail - v aufrufe passiert folgendes:
[antorox@base root]$ fetchmail: POP3< +OK message follows
#*****************.************************procmai l: Error while writing to "/var/log/procmail"
couldn't connect to lmtpd: Permission denied
procmail: Error while writing to "/usr/lib/cyrus-imapd/deliver"
geflusht
Ich kann über meinen postfix senden mit einem Windows Email Clienten " The Bat ". Das ist kein Problem, aber eben keine
empfangen. Ich kann mich zwar in meinen email server einloggen, aber die email, die fetchmail abholt kommt nicht anbei
cyrus imap.
Hier meine fetchmailrc:
poll pop.gmx.net protocol pop3 user antorox@gmx.net password geheim mda "/usr/bin/procmail ~/.procmailrc"
Hier meineprocmailrc:
LOGFILE=/var/log/procmail
:0
* ^TO.*antorox@gmx.net
|/usr/lib/cyrus-imapd/deliver -a -m antorox
Ã?brigens bleibt das logfile leer ...
Meine cyrus.conf:
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=5
imaps cmd="imapd -s" listen="imaps" prefork=1
pop3 cmd="pop3d" listen="pop3" prefork=3
pop3s cmd="pop3d -s" listen="pop3s" prefork=1
sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=3
# nntps cmd="nntpd -s" listen="nntps" prefork=1
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
}
--------------
meine main.cf von postfix:
soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = base
mydomain = base.local
myorigin = $myhostname
inet_interfaces = all
mydestination = $base.local, localhost.$base.local, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains = $mydestination
relayhost = [smtprelay.t-online.de]
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
-------
meine master.cf:
mtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#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 fifo - - n 300 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
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/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
------------
Komme leider nicht mehr weiter ......
Wie bereits oben erwähnt immer dieses:
#*****************.************************procmai l: Error while writing to "/var/log/procmail"
couldn't connect to lmtpd: Permission denied
procmail: Error while writing to "/usr/lib/cyrus-imapd/deliver"
geflusht
fetchmail: POP3> DELE 1
bash: +OK: Keine Berechtigung
bereitet mir starke Kopfschmerzen
cya
also cyrus läuft und ich habe auch eine mailbox angelegt, zm bsp user.antorox. Jetzt hole ich meine mails mit fetchmail
ab. Dieses soll die mails zu procmail weitergeben, die dann wiederum in der imap mailbox von cyrus landen sollen.
Wenn ich fetchmail - v aufrufe passiert folgendes:
[antorox@base root]$ fetchmail: POP3< +OK message follows
#*****************.************************procmai l: Error while writing to "/var/log/procmail"
couldn't connect to lmtpd: Permission denied
procmail: Error while writing to "/usr/lib/cyrus-imapd/deliver"
geflusht
Ich kann über meinen postfix senden mit einem Windows Email Clienten " The Bat ". Das ist kein Problem, aber eben keine
empfangen. Ich kann mich zwar in meinen email server einloggen, aber die email, die fetchmail abholt kommt nicht anbei
cyrus imap.
Hier meine fetchmailrc:
poll pop.gmx.net protocol pop3 user antorox@gmx.net password geheim mda "/usr/bin/procmail ~/.procmailrc"
Hier meineprocmailrc:
LOGFILE=/var/log/procmail
:0
* ^TO.*antorox@gmx.net
|/usr/lib/cyrus-imapd/deliver -a -m antorox
Ã?brigens bleibt das logfile leer ...
Meine cyrus.conf:
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=5
imaps cmd="imapd -s" listen="imaps" prefork=1
pop3 cmd="pop3d" listen="pop3" prefork=3
pop3s cmd="pop3d -s" listen="pop3s" prefork=1
sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=3
# nntps cmd="nntpd -s" listen="nntps" prefork=1
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
}
--------------
meine main.cf von postfix:
soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = base
mydomain = base.local
myorigin = $myhostname
inet_interfaces = all
mydestination = $base.local, localhost.$base.local, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains = $mydestination
relayhost = [smtprelay.t-online.de]
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
-------
meine master.cf:
mtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#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 fifo - - n 300 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
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/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
------------
Komme leider nicht mehr weiter ......
Wie bereits oben erwähnt immer dieses:
#*****************.************************procmai l: Error while writing to "/var/log/procmail"
couldn't connect to lmtpd: Permission denied
procmail: Error while writing to "/usr/lib/cyrus-imapd/deliver"
geflusht
fetchmail: POP3> DELE 1
bash: +OK: Keine Berechtigung
bereitet mir starke Kopfschmerzen
cya
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Procmail gibt nicht an fetchmail weiter
Ã?ndere in
Code: Select all
|/usr/lib/cyrus-imapd/deliver -a -m antoroxCode: Select all
|/usr/lib/cyrus-imapd/deliver -a antorox -m user.antoroxRe: Procmail gibt nicht an fetchmail weiter
Hi,
nach Aufruf von fetchmail unter dem User antorox steht in der procmail log:
Subject: a
Folder: /usr/lib/cyrus-imapd/deliver -a antorox -m user.antorox 1387
couldn't connect to lmtpd: Permission denied
cya
nach Aufruf von fetchmail unter dem User antorox steht in der procmail log:
Subject: a
Folder: /usr/lib/cyrus-imapd/deliver -a antorox -m user.antorox 1387
couldn't connect to lmtpd: Permission denied
cya
Re: Procmail gibt nicht an fetchmail weiter
Code: Select all
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtpDas ganze Setup ist ein Chaos - verstehe ich das richtig, daß Postfix da letztendlich überhaupt nicht betroffen ist?
Warum setzt Dur den mailbox_transport nicht auf Cyrus, legst einen virtual-Eintrag für Deinen User/Deine Adresse an und läßt die Zustellung dann per Postfix und Cyrus regeln, wenn die eh laufen?
flo.
Re: Procmail gibt nicht an fetchmail weiter
Hi,
es scheint mailserver aufsetzen ist wohl sehr schwierig.
Wie jetzt permissions für lmpt ? rwx für alle ....
also so wie ich das sehe landen alle mails in diesem Folder:
couldn't connect to lmtpd: Permission denied
procmail: Error while writing to "/usr/lib/cyrus-imapd/deliver"
Subject: test
Folder: /var/mail/antorox 1376
das heisst es funktioniert nichts ;-). Trotzdem läuft cyrus:
telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK base.base.local Cyrus POP3 v2.2.12-Invoca-RPM-2.2.12-1.1.fc3 server ready <6564324.1129405458@base.base.local>
Den mailbox_transport habe ich auf cyrus geändert.
cya
es scheint mailserver aufsetzen ist wohl sehr schwierig.
Wie jetzt permissions für lmpt ? rwx für alle ....
also so wie ich das sehe landen alle mails in diesem Folder:
couldn't connect to lmtpd: Permission denied
procmail: Error while writing to "/usr/lib/cyrus-imapd/deliver"
Subject: test
Folder: /var/mail/antorox 1376
das heisst es funktioniert nichts ;-). Trotzdem läuft cyrus:
telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK base.base.local Cyrus POP3 v2.2.12-Invoca-RPM-2.2.12-1.1.fc3 server ready <6564324.1129405458@base.base.local>
Den mailbox_transport habe ich auf cyrus geändert.
cya
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Procmail gibt nicht an fetchmail weiter
Ã?ndere den Eintrag für lmptd in der cyrus.conf mal in "lmtpd -a". Ist zwar keine saubere Lösung, sorgt aber dafür, dass die Mails erstmal in die Mailboxen geschoben werden können.
Re: Procmail gibt nicht an fetchmail weiter
Hi,
jetzt kommt:
1 Nachricht für antorox@gmx.net bei pop.gmx.net (1255 Oktetts).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 1255
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK message follows
Nachricht antorox@gmx.net@pop.gmx.net:1 von 1 wird gelesen (1255 Oktetts)
#*********procmail: Missing argument
geflusht
Hm, da ich einige Parameter in dr Zwischenzeit geändert habe nun noch mal ne zusammenfassung:
Also, so solls aussehen:
FETCHMAIL -> abholen
PROCMAIL -> sortieren
POSTFIX -> mta, kann mails empfangen und versenden
CYRUS-IMAP -> imap server
Die Mails werden mittels FETCHMAIL von den jeweiligen Mailservern geholt, an PROCMAIL weitergericht und dort gefiltert. Danach werden die Mails mittles CYRUS-IMAPD allen Usern zur Verfügung gestellt. Als MTA kommt POSTFIX zum Einsatz.
Ich habe wie gesagt die mailbox user.antorox angelegt und der cyrus imap server läuft auch. Genauso wie postfix.
Jetzt nochmal meine confs:
imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
------------
main.cf:
soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = base
mydomain = base.local
myorigin = $myhostname
inet_interfaces = all
mydestination = $base.local, localhost.$base.local, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains = $mydestination
relayhost = [smtprelay.t-online.de]
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
mailbox_command = /usr/bin/procmail -t -a $EXTENSION
mailbox_transport = cyrus
------------
master.cf:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#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 fifo - - n 300 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
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/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
---------
cyrus.conf:
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=5
imaps cmd="imapd -s" listen="imaps" prefork=1
pop3 cmd="pop3d" listen="pop3" prefork=3
pop3s cmd="pop3d -s" listen="pop3s" prefork=1
sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=3
# nntps cmd="nntpd -s" listen="nntps" prefork=1
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd -a" listen="/var/spool/postfix/public/lmtp"" prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
}
-----------------
.procmailrc
LOGFILE=/var/log/procmail
:0
* ^TO.*antorox@gmx.net
|/usr/lib/cyrus-imapd/deliver -a antorox -m user.antorox
---
.fetchmailrc
poll pop.gmx.net protocol pop3 user antorox@gmx.net password geheim mda "/usr/bin/procmail -t -a $EXTENSION "
-------
die beiden Dateien procmailrc und fetchmailrc ligen in Home Verzeichnis von Antorox.
Ich logge mich als User Antorox ein und starte fetchmail mit : fetchmail -v
In der log procmail steht wie gesagt immer:
Subject: fdbdbdsbsb
Folder: /usr/lib/cyrus-imapd/deliver -a antorox -m user.antorox 1382
couldn't connect to lmtpd: Permission denied
cya
:)
jetzt kommt:
1 Nachricht für antorox@gmx.net bei pop.gmx.net (1255 Oktetts).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 1255
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK message follows
Nachricht antorox@gmx.net@pop.gmx.net:1 von 1 wird gelesen (1255 Oktetts)
#*********procmail: Missing argument
geflusht
Hm, da ich einige Parameter in dr Zwischenzeit geändert habe nun noch mal ne zusammenfassung:
Also, so solls aussehen:
FETCHMAIL -> abholen
PROCMAIL -> sortieren
POSTFIX -> mta, kann mails empfangen und versenden
CYRUS-IMAP -> imap server
Die Mails werden mittels FETCHMAIL von den jeweiligen Mailservern geholt, an PROCMAIL weitergericht und dort gefiltert. Danach werden die Mails mittles CYRUS-IMAPD allen Usern zur Verfügung gestellt. Als MTA kommt POSTFIX zum Einsatz.
Ich habe wie gesagt die mailbox user.antorox angelegt und der cyrus imap server läuft auch. Genauso wie postfix.
Jetzt nochmal meine confs:
imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
------------
main.cf:
soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = base
mydomain = base.local
myorigin = $myhostname
inet_interfaces = all
mydestination = $base.local, localhost.$base.local, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains = $mydestination
relayhost = [smtprelay.t-online.de]
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
mailbox_command = /usr/bin/procmail -t -a $EXTENSION
mailbox_transport = cyrus
------------
master.cf:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#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 fifo - - n 300 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
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/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
---------
cyrus.conf:
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=5
imaps cmd="imapd -s" listen="imaps" prefork=1
pop3 cmd="pop3d" listen="pop3" prefork=3
pop3s cmd="pop3d -s" listen="pop3s" prefork=1
sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=3
# nntps cmd="nntpd -s" listen="nntps" prefork=1
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd -a" listen="/var/spool/postfix/public/lmtp"" prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
}
-----------------
.procmailrc
LOGFILE=/var/log/procmail
:0
* ^TO.*antorox@gmx.net
|/usr/lib/cyrus-imapd/deliver -a antorox -m user.antorox
---
.fetchmailrc
poll pop.gmx.net protocol pop3 user antorox@gmx.net password geheim mda "/usr/bin/procmail -t -a $EXTENSION "
-------
die beiden Dateien procmailrc und fetchmailrc ligen in Home Verzeichnis von Antorox.
Ich logge mich als User Antorox ein und starte fetchmail mit : fetchmail -v
In der log procmail steht wie gesagt immer:
Subject: fdbdbdsbsb
Folder: /usr/lib/cyrus-imapd/deliver -a antorox -m user.antorox 1382
couldn't connect to lmtpd: Permission denied
cya
:)
Re: Procmail gibt nicht an fetchmail weiter
Code: Select all
FETCHMAIL -> abholen
PROCMAIL -> sortieren
POSTFIX -> mta, kann mails empfangen und versenden
CYRUS-IMAP -> imap server
Die Mails werden mittels FETCHMAIL von den jeweiligen Mailservern geholt, an PROCMAIL weitergericht und dort gefiltert. Danach werden die Mails mittles CYRUS-IMAPD allen Usern zur Verfügung gestellt. Als MTA kommt POSTFIX zum Einsatz.Code: Select all
mailbox_transport=cyrusCode: Select all
poll pop.gmx.net proto pop3
user antorox@gmx.net with pass "geheim" is antorox hereCode: Select all
lmtpunix cmd="lmtpd -a" listen="/var/spool/postfix/public/lmtp"" prefork=1 Nochmal - bei Deinem Setup (fetchmail --> procmail --> cyrus) ist kein Postfix beteiligt, bei Mails über SMTP sieht das allerdings wieder anders aus!
flo.
Re: Procmail gibt nicht an fetchmail weiter
Hi,
die mails landen alle nachwievor in /var/spool/mail und leider nicht in cyrus, auch mit Deinen Ã?nderungen.
Hm, ich werd noch verrückt ....
cya
die mails landen alle nachwievor in /var/spool/mail und leider nicht in cyrus, auch mit Deinen Ã?nderungen.
Hm, ich werd noch verrückt ....
cya
Re: Procmail gibt nicht an fetchmail weiter
Probier mal, ob eine mail per Konsole Dich erreicht und bau das Stück für Stück auf.
Die delivery-Optionen sehen mir wild aus - welche Ausgabe hat das Programm, wenn Du es per "--help" aufrufst? Und welche Distri ist das - ist das überhaupt ein Linux oder ein BSD?
flo.
Die delivery-Optionen sehen mir wild aus - welche Ausgabe hat das Programm, wenn Du es per "--help" aufrufst? Und welche Distri ist das - ist das überhaupt ein Linux oder ein BSD?
flo.
Re: Procmail gibt nicht an fetchmail weiter
Hi,
ist Fedora Core 3 ohne acpi gebootet aber mit sel linux. Wenn ich ne mail per console per smtp raushaue erreicht, die irgendeinen mail account bei einem Provider.
cya
ist Fedora Core 3 ohne acpi gebootet aber mit sel linux. Wenn ich ne mail per console per smtp raushaue erreicht, die irgendeinen mail account bei einem Provider.
cya
Re: Procmail gibt nicht an fetchmail weiter
gut - Zustellung per SMTP geht dann :-)
Ich meinte aber eher lokale Zustellung z.B. an antorox ...
Ach ja - bei Zustellung über lokalen lmtp-Socket muß der einliefernde Prozeß als User "cyrus" laufen - wenn Du das direkt als "antorox" machst, läuft Dein fetchmail und Dein procmail als "antorox". Ã?hnliche permission-Probleme hast Du ja auch schon beim Logfile.
flo.
P.S.: Dachte schon, daß wäre eine OS X-Server-Kiste ;-)
Ich meinte aber eher lokale Zustellung z.B. an antorox ...
Code: Select all
echo "test 1" | mail -s "Subject" antoroxAch ja - bei Zustellung über lokalen lmtp-Socket muß der einliefernde Prozeß als User "cyrus" laufen - wenn Du das direkt als "antorox" machst, läuft Dein fetchmail und Dein procmail als "antorox". Ã?hnliche permission-Probleme hast Du ja auch schon beim Logfile.
flo.
P.S.: Dachte schon, daß wäre eine OS X-Server-Kiste ;-)
Re: Procmail gibt nicht an fetchmail weiter
Hi,
hm also unter dem User Antorox passiert gar nix. Swizch ich in der Konsole auf cyrus passiert auch nix. Es kommt keineMail an, wenn ich mich von einer Windows Kiste per imap/pop3 aquf meinen server connecte.
Ã?brigens ist vorhin eine mail eingetrullert, die ich über über einen provider zu mir geschickt habe und dann mit fetchmail mal irgendwann geflusht habe. Hier dr Header. Hat allerdings 30 minuten innerhalb meines Systems gebraucht. War auch die einzige Mail von ca. 50, ohne viel an den Einstellungen rumzudrehen. Scheint wohl ein kleiner Witz :) gewesen zu sein.
X-Kaspersky: Checked
Return-Path: <cIrox@hardtekk.org>
Received: from murder ([unix socket])
by base.base.local (Cyrus v2.2.12-Invoca-RPM-2.2.12-1.1.fc3) with LMTPA;
Sun, 16 Oct 2005 01:13:11 +0200
X-Sieve: CMU Sieve 2.2
Received: from localhost (base.base.local [127.0.0.1])
by base (Postfix) with ESMTP id B3A7A8C616
for <antorox@localhost>; Sun, 16 Oct 2005 00:47:33 +0200 (CEST)
X-Flags: 0000
Delivered-To: GMX delivery to antorox@gmx.net
Received: from pop.gmx.net [213.165.64.20]
by localhost with POP3 (fetchmail-6.2.5)
for antorox@localhost (single-drop); Sun, 16 Oct 2005 00:47:33 +0200 (CEST)
Received: (qmail invoked by alias); 15 Oct 2005 22:46:59 -0000
---
Also das die fetchmailrc und die procmailrc im home Verzeichnis von Antorox ligen und ich fetchmail -a unter antorox ausführe ist aber richtig ?
cya
hm also unter dem User Antorox passiert gar nix. Swizch ich in der Konsole auf cyrus passiert auch nix. Es kommt keineMail an, wenn ich mich von einer Windows Kiste per imap/pop3 aquf meinen server connecte.
Ã?brigens ist vorhin eine mail eingetrullert, die ich über über einen provider zu mir geschickt habe und dann mit fetchmail mal irgendwann geflusht habe. Hier dr Header. Hat allerdings 30 minuten innerhalb meines Systems gebraucht. War auch die einzige Mail von ca. 50, ohne viel an den Einstellungen rumzudrehen. Scheint wohl ein kleiner Witz :) gewesen zu sein.
X-Kaspersky: Checked
Return-Path: <cIrox@hardtekk.org>
Received: from murder ([unix socket])
by base.base.local (Cyrus v2.2.12-Invoca-RPM-2.2.12-1.1.fc3) with LMTPA;
Sun, 16 Oct 2005 01:13:11 +0200
X-Sieve: CMU Sieve 2.2
Received: from localhost (base.base.local [127.0.0.1])
by base (Postfix) with ESMTP id B3A7A8C616
for <antorox@localhost>; Sun, 16 Oct 2005 00:47:33 +0200 (CEST)
X-Flags: 0000
Delivered-To: GMX delivery to antorox@gmx.net
Received: from pop.gmx.net [213.165.64.20]
by localhost with POP3 (fetchmail-6.2.5)
for antorox@localhost (single-drop); Sun, 16 Oct 2005 00:47:33 +0200 (CEST)
Received: (qmail invoked by alias); 15 Oct 2005 22:46:59 -0000
---
Also das die fetchmailrc und die procmailrc im home Verzeichnis von Antorox ligen und ich fetchmail -a unter antorox ausführe ist aber richtig ?
cya
Re: Procmail gibt nicht an fetchmail weiter
Herzlichen Glühstrumpf - schau Dir den Header an: fetchmail --(SMTP)-->postfix --(LMTP)--> cyrus. Das ist das Setup, daß ich Dir vorhin vorgeschlagen habe. Daß zwischendurch mal eine halbe Stunde vergehen kann, wenn Du ständig an der config schraubst, kann schon mal passieren. Nachdem ja vorhin noch der Vertipper in der imap-Config drin war, kann es auch daran gelegen haben, daß plötzlich überhaupt mal ein lmtp verfügbar war, den LMTP über Localhost hast Du ja für Cyrus nicht aktiviert.antorox wrote:X-Kaspersky: Checked
Return-Path: <cIrox@hardtekk.org>
Received: from murder ([unix socket])
by base.base.local (Cyrus v2.2.12-Invoca-RPM-2.2.12-1.1.fc3) with LMTPA;
Sun, 16 Oct 2005 01:13:11 +0200
X-Sieve: CMU Sieve 2.2
Received: from localhost (base.base.local [127.0.0.1])
by base (Postfix) with ESMTP id B3A7A8C616
for <antorox@localhost>; Sun, 16 Oct 2005 00:47:33 +0200 (CEST)
X-Flags: 0000
Delivered-To: GMX delivery to antorox@gmx.net
Received: from pop.gmx.net [213.165.64.20]
by localhost with POP3 (fetchmail-6.2.5)
for antorox@localhost (single-drop); Sun, 16 Oct 2005 00:47:33 +0200 (CEST)
Received: (qmail invoked by alias); 15 Oct 2005 22:46:59 -0000
Ja, prinzipiell schon, immerhin funktioniert bis dahin ja alles, aber Du umgehst einen ganzen Sack voller permission-Probleme, wenn Du die Mails aus fetchmail per SMTP an Deinen postfix schickst, denn die Zustellung postfix --> cyrus mußt Du eh sicherstellen.antorox wrote: Also das die fetchmailrc und die procmailrc im home Verzeichnis von Antorox ligen und ich fetchmail -a unter antorox ausführe ist aber richtig ?
flo.
Re: Procmail gibt nicht an fetchmail weiter
Hi,
so ich habs hinbekommen :).
Hab mich übrigens im Topic verschrieben ;-) .... Fetchmail liefert mail nicht über Procmail zu Cyrus aus ....
Was nun genau der Ausschlag war weiß ich auch noch! nicht so genau. Erstmal hab ich die Rechte geändert
und dann half mir dieser Artikel weiter:
http://www.linuxforen.de/forums/showthr ... ge=1&pp=15
Fazit bei mir sieht das jetzt so aus:
[root@base ~]# ls -al /var/lib/imap/socket/lmtp
srwxrwxrwx 1 root root 0 16. Okt 10:52 /var/lib/imap/socket/lmtp
[root@base ~]# ls -al /usr/lib/cyrus-imapd/deliver
-rwsrwxrwx 1 cyrus mail 851764 5. Apr 2005 /usr/lib/cyrus-imapd/deliver
erst postfix starten , dann cyrus !!!
in postfix (main.cf):
mailbox_transport = lmtp:unix:/pfad/zu/imap/socket
in cyrus (cyrus.conf):
lmtpunix cmd="lmtpd -a" listen="/pfad/zu/imap/socket" prefork=0
der parameter '-a' schaltet die authentifizierung ab, deshalb auf die filepermissions für den socket achten. prefork muss evtl. auch angepasst werden.
im procmail log steht jetzt folgendes:
Subject: dsgfdsgdsg Folder: usr/lib/cyrus-imapd/deliver -a antorox -m user.antorox 1403
im maillog das:
Oct 16 11:00:29 base master[911]: about to exec /usr/lib/cyrus-imapd/lmtpd
Oct 16 11:00:29 base lmtpunix[911]: executed
Oct 16 11:00:29 base lmtpunix[911]: accepted connection
Oct 16 11:00:29 base lmtpunix[911]: lmtp connection preauth'd as postman
Oct 16 11:00:29 base lmtpunix[911]: duplicate_check: <1835219047.20051016110010@hardtekk.org> user.antorox 0
Oct 16 11:00:29 base lmtpunix[911]: mystore: starting txn 2147483654
Oct 16 11:00:29 base lmtpunix[911]: mystore: committing txn 2147483654
Oct 16 11:00:29 base lmtpunix[911]: duplicate_mark: <1835219047.20051016110010@hardtekk.org> user.antorox
1129453229 4
Oct 16 11:01:29 base master[850]: process 911 exited, status 0
also nix mehr von "deliver" .....
kann sein, daß einige Sachen noch durcheinader sind, aber es funnzt.
Danke nochmal ... fetchmail, procmail, cyrus, postfix läuft nun.
cya
so ich habs hinbekommen :).
Hab mich übrigens im Topic verschrieben ;-) .... Fetchmail liefert mail nicht über Procmail zu Cyrus aus ....
Was nun genau der Ausschlag war weiß ich auch noch! nicht so genau. Erstmal hab ich die Rechte geändert
und dann half mir dieser Artikel weiter:
http://www.linuxforen.de/forums/showthr ... ge=1&pp=15
Fazit bei mir sieht das jetzt so aus:
[root@base ~]# ls -al /var/lib/imap/socket/lmtp
srwxrwxrwx 1 root root 0 16. Okt 10:52 /var/lib/imap/socket/lmtp
[root@base ~]# ls -al /usr/lib/cyrus-imapd/deliver
-rwsrwxrwx 1 cyrus mail 851764 5. Apr 2005 /usr/lib/cyrus-imapd/deliver
erst postfix starten , dann cyrus !!!
in postfix (main.cf):
mailbox_transport = lmtp:unix:/pfad/zu/imap/socket
in cyrus (cyrus.conf):
lmtpunix cmd="lmtpd -a" listen="/pfad/zu/imap/socket" prefork=0
der parameter '-a' schaltet die authentifizierung ab, deshalb auf die filepermissions für den socket achten. prefork muss evtl. auch angepasst werden.
im procmail log steht jetzt folgendes:
Subject: dsgfdsgdsg Folder: usr/lib/cyrus-imapd/deliver -a antorox -m user.antorox 1403
im maillog das:
Oct 16 11:00:29 base master[911]: about to exec /usr/lib/cyrus-imapd/lmtpd
Oct 16 11:00:29 base lmtpunix[911]: executed
Oct 16 11:00:29 base lmtpunix[911]: accepted connection
Oct 16 11:00:29 base lmtpunix[911]: lmtp connection preauth'd as postman
Oct 16 11:00:29 base lmtpunix[911]: duplicate_check: <1835219047.20051016110010@hardtekk.org> user.antorox 0
Oct 16 11:00:29 base lmtpunix[911]: mystore: starting txn 2147483654
Oct 16 11:00:29 base lmtpunix[911]: mystore: committing txn 2147483654
Oct 16 11:00:29 base lmtpunix[911]: duplicate_mark: <1835219047.20051016110010@hardtekk.org> user.antorox
1129453229 4
Oct 16 11:01:29 base master[850]: process 911 exited, status 0
also nix mehr von "deliver" .....
kann sein, daß einige Sachen noch durcheinader sind, aber es funnzt.
Danke nochmal ... fetchmail, procmail, cyrus, postfix läuft nun.
cya