I have a Ubuntu server running dovecot 1.2.9 with mail in mbox. There
are mail files in /var/mail/user and there are mail files in
/home/user/mail that correspond to the IMAP folders. In the config file
details below it shows mail_location: mbox:~/mail:INBOX=/var/mail/%u,
does that put the INBOX in /var/mail? Is INBOX in /var/mail/user to
allow local delivery or something? If I was using POP3 instead would
all the mail be in the INBOX?
Can I backup these files by just copying and if a file is destroyed,
copy them back?
# 1.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-33-generic i686 Ubuntu 10.04.3 LTS
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imaps
ssl_cert_file: /etc/ssl/certs/ssl-cert-snakeoil.pem
ssl_key_file: /etc/ssl/private/ssl-cert-snakeoil.key
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_max_userip_connections: 16
mail_privileged_group: mail
mail_location: mbox:~/mail:INBOX=/var/mail/%u
mbox_write_locks: fcntl dotlock
imap_capability: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND
UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 ESEARCH
ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
auth default:
passdb:
driver: pam
userdb:
driver: passwd
Thanks,
--
Knute Johnson
knute2011 at knutejohnson.com
Am 05.09.2011 19:52, schrieb Knute Johnson:> I have a Ubuntu server running dovecot 1.2.9 with mail in mbox. There > are mail files in /var/mail/user and there are mail files in > /home/user/mail that correspond to the IMAP folders. In the config > file details below it shows mail_location: > mbox:~/mail:INBOX=/var/mail/%u, does that put the INBOX in /var/mail?yes.> Is INBOX in /var/mail/user to allow local delivery or something? If > I was using POP3 instead would all the mail be in the INBOX?.. or on your local PC. If you do not want the /var/mail delivery, why not just change the mail_location to point to the home dir only?> > Can I backup these files by just copying and if a file is destroyed, > copy them back?Yes, as they are plain mbox format. cheers jc> > # 1.2.9: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-33-generic i686 Ubuntu 10.04.3 LTS > log_timestamp: %Y-%m-%d %H:%M:%S > protocols: imaps > ssl_cert_file: /etc/ssl/certs/ssl-cert-snakeoil.pem > ssl_key_file: /etc/ssl/private/ssl-cert-snakeoil.key > login_dir: /var/run/dovecot/login > login_executable: /usr/lib/dovecot/imap-login > mail_max_userip_connections: 16 > mail_privileged_group: mail > mail_location: mbox:~/mail:INBOX=/var/mail/%u > mbox_write_locks: fcntl dotlock > imap_capability: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE > IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND > UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 ESEARCH > ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS > auth default: > passdb: > driver: pam > userdb: > driver: passwd > > Thanks, >
On 9/5/2011 10:59 AM, Jakob Curdes wrote:>> Is INBOX in /var/mail/user to allow local delivery or something? If I >> was using POP3 instead would all the mail be in the INBOX? > .. or on your local PC. If you do not want the /var/mail delivery, why > not just change the mail_location to point to the home dir only?I would also have to change where the program that sendmail uses to deliver mail delivers the mail, correct? Thanks very much, -- Knute Johnson
.. or on your local PC. If you do not want the /var/mail delivery, why>> not just change the mail_location to point to the home dir only? > > I would also have to change where the program that sendmail uses to > deliver mail delivers the mail, correct?Yes, often this is procmail. You can set this in the respective config file with MAILDIR=$HOME Attention: "Maildir" here just is the mailbox location, procmail assumes the mbox format by default. If you actually use the "Maildir" _/format/_, you must specify MAILDIR=$HOME/ HTH, Jakob Curdes