courier-imapd: Maildir in /var/mail/
courier-imapd: Maildir in /var/mail/
Ich bin gerade dabei, postfix, courier-imapd und (sobald die beiden laufen) noch ein paar andere Programme aufzusetzen. Postfix tut auch wunderbar, eingehende Nachrichten werden über "mail_spool_directory = /var/mail/" nach /var/mail/$username/new/ ausgeliefert. Wie bringe ich courier-imapd jetzt bei, dass er die Mails da suchen soll? Alles, was ich bisher gefunden hab, beschreibt nur Maildir innerhalb von $HOME, was ich persönlich aber ungern hätte. Das ganze läuft auf einem Debian Sarge.
Re: courier-imapd: Maildir in /var/mail/
aus imapd ( 8 ):
HTH.
Code: Select all
The last daisy-chained command is imapd, which is the actual IMAP
server, which is started from the logged-in account's home directory.
The sole argument to imapd is the pathname to the default IMAP mailbox,
which is usually ./Maildir. Some authentication modules are capable of
specifying a different filename, by setting the MAILDIR environment
variable.Code: Select all
FILES AND ENVIRONMENT VARIABLES
MAILDIR
MAILDIR - if defined, imapd changes its directory to the one
specified by this environment variable. Otherwise imapd changes
its directory to the one specified on the command line.Code: Select all
Other environment variables are initialized from the /etc/courier/imapd
and /etc/courier/imapd-ssl configuration files. These files are loaded
into the environment by the system startup script that runs couri-
ertcpd.
Code: Select all
# This file is automatically generated by maintainer scripts.
# You may modifiy this file, but additional values and format
# modifications will not be preserved.
MAILDIR="Maildir"
Re: courier-imapd: Maildir in /var/mail/
Teilweise. Aber wenn ich das richtig verstehe, bedeutet MAILDIR=/var/mail/ doch, dass die Mails in /var/mail/ gesucht werden, und nicht in /var/mail/$user/. Und die Variable MAILDIR wird ja schon beim Start den Daemon gesetzt, oder?dodolin wrote:HTH.
Re: courier-imapd: Maildir in /var/mail/
Das siehst du richtig. Deshalb denke ich, geht es wohl nur über diesen Weg hier:
benutzt, solltest du mal hier weiterlesen: http://www.kernel.org/pub/linux/libs/pa ... html#ss6.5 und dir dann /etc/security/pam_env.conf anschauen.
HTH. :)
Sofern duSome authentication modules are capable of
specifying a different filename, by setting the MAILDIR environment
variable.
Code: Select all
dominik@trinity:~$ grep authmodulelist= /etc/courier/authdaemonrc
authmodulelist="authpam"HTH. :)
Re: courier-imapd: Maildir in /var/mail/
Ja, das sieht gut aus. Dann kann ich ja nachher wieder basteln :-D