[Postfixbuch-users] OT web-cyradm autocreateinboxfolders?

Marcel Hartmann mail at marcel-hartmann.com
Sa Mär 10 11:11:58 CET 2007


Hallo,

> ich habe ein postfix Setup mit web-cyradm laufen.
> Die Konfiguration scheint soweit in ordnung zu sein, wenn ich Mailboxen
> anlege
> und einmal mit pop oderimap eingelogt bin, dannerstellt mir
> autocreateinboxfolders = yes
> alle notwendigen Dirs in /var/spool/imap/* und man kann die Mailbox
> nutzen.
> 
> Das Problem was ich dabei habe ist folgendes:
> 
> Wenn ich eine Mailbox neu anlege dann sehe ich im Maillog ein Login per
> imap
> vom cyrus User.
> 
> Mar 10 10:50:15 localhost imap[7557]: accepted connection Mar 10
> 10:50:15
> localhost imap[7557]: login: localhost [127.0.0.1] cyrus plaintext User
> logged in Mar 10 10:50:15 localhost imap[8040]: accepted connection Mar
> 10
> 10:50:15 localhost imap[8040]: login: localhost [127.0.0.1] cyrus
> plaintext
> User logged in
> 
> Dieser erstellt mir aber keine mailbox Directorys, so dass mein Server
> noch
> keine Mails für dieses Konto annimmt, weil dieses noch nicht
> eingerichtet
> ist. Ich muss erst einmal mit dem Client einloggen damit er die Dirs
> erstellt, ab dem Zeitpunkt nimmt mein Postfix dann auch Mals dafür an.
> 
> Ich möchte nun, dass das web-cyradm mir gleich die notwendigen Dirs
> anlegt
> wenn ich eine neue Mailbox speichere, so dass nicht erst ein Client
> Login
> dafür erforderlich ist.
> 
> Weiss jemand Rat?
> 
> Es handelt sich um ein standard Web-cyradm nach Anleitung von Luc
> Delouw.
> Sollten logs fehlen, poste ich die bei Bedarf gleich in dieListe.

Ein kleiner nachtrag, hier das Log wenn ich eine Mail sende an Mailboxen die
noch nie mit client eingeloggt waren:

Mar 10 11:04:46 localhost postfix/smtpd[13359]: connect from
dyndsl-085-016-207-077.ewe-ip-backbone.de[85.16.207.77]
Mar 10 11:04:46 localhost postfix/smtpd[13359]: B576C508A25:
client=dyndsl-085-016-207-077.ewe-ip-backbone.de[85.16.207.77],
sasl_method=LOGIN, sasl_username=domain.de0001
Mar 10 11:04:46 localhost postfix/cleanup[14002]: B576C508A25:
message-id=<000a01c762fb$86ee5c70$94cb1550$@de>
Mar 10 11:04:46 localhost postfix/qmgr[14912]: B576C508A25:
from=<info at domain.de>, size=977, nrcpt=1 (queue active)
Mar 10 11:04:49 localhost postfix/smtpd[13359]: disconnect from
dyndsl-085-016-207-077.ewe-ip-backbone.de[85.16.207.77]
Mar 10 11:04:49 localhost postfix/smtpd[14011]: connect from
localhost[127.0.0.1]
Mar 10 11:04:49 localhost postfix/smtpd[14011]: 89A1A508A27:
client=localhost[127.0.0.1]
Mar 10 11:04:49 localhost postfix/cleanup[14002]: 89A1A508A27:
message-id=<000a01c762fb$86ee5c70$94cb1550$@de>
Mar 10 11:04:49 localhost postfix/smtpd[14011]: disconnect from
localhost[127.0.0.1]
Mar 10 11:04:49 localhost amavis[11381]: (11381-03) Passed CLEAN,
[85.16.207.77] <info at domain.de> -> < domain.de0005 at mailrelay.domain.de>,
Message-ID: <000a01c762fb$86ee5c70$94cb1
550$@de>, mail_id: lX65rjeapv1k, Hits: -0.498, 2698 ms
Mar 10 11:04:49 localhost postfix/smtp[14006]: B576C508A25:
to=<domain.de0005 at mailrelay.domain.de>, orig_to=<test2 at domain.de>,
relay=127.0.0.1[127.0.0.1], delay=3, status=sent (2
50 2.6.0 Ok, id=11381-03, from MTA([127.0.0.1]:10025): 250 Ok: queued as
89A1A508A27)
Mar 10 11:04:49 localhost postfix/qmgr[14912]: 89A1A508A27:
from=<info at domain.de>, size=1207, nrcpt=1 (queue active)
Mar 10 11:04:49 localhost postfix/qmgr[14912]: B576C508A25: removed
Mar 10 11:04:49 localhost lmtpunix[13925]: accepted connection
Mar 10 11:04:49 localhost lmtpunix[13925]: lmtp connection preauth'd as
postman
Mar 10 11:04:49 localhost master[14015]: about to exec
/usr/lib/cyrus-imapd/lmtpd
Mar 10 11:04:49 localhost lmtpunix[13925]: IOERROR: opening
/var/spool/imap/i/user/domain^de0005/cyrus.header: No such file or directory
Mar 10 11:04:49 localhost lmtpunix[13925]: verify_user(user.domain^de0005)
failed: System I/O error
Mar 10 11:04:49 localhost lmtpunix[14015]: executed
Mar 10 11:04:49 localhost postfix/lmtp[14014]: 89A1A508A27:
to=<domain.de0005 at mailrelay.domain.de>,
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=0,
status=defe
rred (host /var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] said: 451
4.3.0 System I/O error (in reply to RCPT TO command))

postfix nimmt die mail an und stellt sie dem amavisd zu, dieser prüft die
Mail auf SPAM/Viren und gibt sie dann weiter. Aber wenn sie dann vom
lmtpunix in das Userdir zugestellt werden soll, scheitert die Sache weil der
User nur in MySQL bekannt ist aber bisher keine Dirs in /var/spool/imap hat.

Wichtig ist dann auch beim Löschen von Mailboxen, das er die Dirs dannauch
wieder entfernd. Das geht derzeit auch nicht leider.

Lieben Gruß
Marcel




Mehr Informationen über die Mailingliste Postfixbuch-users