PDA

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



Antorox
15.10.05, 16:52
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

cya

d3viL
15.10.05, 22:06
wenn ich das jetzt richtig sehe ist deine procmailrc falsch

schau mal hier klick (http://www.linuxforen.de/forums/showthread.php?t=196794) hatte genau das selbe problem...
ab Beitrag #5 wirds interessant für dich.

MfG

Antorox
16.10.05, 18:34
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/showthread.php?t=116202&page=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