Dovecot: Difference between revisions
mNo edit summary |
m (→FAQ) |
||
Line 49: | Line 49: | ||
==the variables: %u, %h, %n etc== | ==the variables: %u, %h, %n etc== | ||
http://wiki2.dovecot.org/Variables | http://wiki2.dovecot.org/Variables | ||
==lmtp or lda?== | |||
lmtp | |||
==quota-warning and selinux== | ==quota-warning and selinux== | ||
Line 99: | Line 102: | ||
==Error: quota: net_connect_unix(/var/run/dovecot/quota-warning) failed: Permission denied== | ==Error: quota: net_connect_unix(/var/run/dovecot/quota-warning) failed: Permission denied== | ||
check/set owner, group and mode in service quota-warning section | check/set owner, group and mode in service quota-warning section | ||
=Notes= | =Notes= |
Revision as of 13:30, 11 February 2019
Docs
Important settings
/proc/sys/fs/inotify/max_user_instances /proc/sys/fs/inotify/max_user_instances
Dovecot and ldap
- Dovecot postfix ldap
- http://wiki.dovecot.org/AuthDatabase/LDAP
- http://workaround.org/articles/ispmail-etch/#etc-dovecot-dovecot-conf
- http://manurevah.com/blah/index.php/linux/pysieved-on-workaround.php
- http://wanderingbarque.com/howtos/mailserver/mailserver.html
Postfix
Using deliver with postfix
http://wiki.dovecot.org/LDA/Postfix
ManageSieve
- Sieve
- careful with dovecot-sieve on freebsd, it links against the stable dovecot, not dovecot-devel
- http://wiki.dovecot.org/ManageSieve
- http://www.iana.org/assignments/sieve-extensions
- http://libsieve-php.exit0.net/
Squirrelmail has avelsieve
Testing
Show configuration
dovecot -n
deliver
SSL
On FreeBSD
/usr/local/share/dovecot/
http://www.freebsddiary.org/dovecot.php
FAQ
the variables: %u, %h, %n etc
http://wiki2.dovecot.org/Variables
lmtp or lda?
lmtp
quota-warning and selinux
Create file quotawarning.te:
module dovecot-quota-warning 1.0;
require { type dovecot_t; type dovecot_deliver_exec_t; class file { read execute open getattr execute_no_trans }; }
#============= dovecot_t ============== allow dovecot_t dovecot_deliver_exec_t:file { read execute open getattr execute_no_trans };
Then run:
semodule_package -o quotawarning.pp -m quotawarning.mod semodule -i quotawarning.pp
quota check policy service
https://sys4.de/en/blog/2013/04/08/postfix-dovecot-mailbox-quota/
run in foreground
dovecot -F
dovecot-ltmp: User doesn't exist
After adding user or virtuser, sometimes lmtp doesn't pick it up.
postfix reload
Fatal: Namespace initialization failed
Where's the bugtracker?
http://dovecot.org/list/dovecot/2007-January/018786.html
What's that strange attachment in quota bounces?
http://tools.ietf.org/html/rfc3798
i changed clock and it crashed
http://wiki.dovecot.org/TimeMovedBackwards
user XXX is missing UID (set mail_uid)
System fails to look up UID for user, configure a userdb besides the password db
check LMTP socket
socat - UNIX:/var/spool/postfix/private/dovecot-lmtp
Error: quota: net_connect_unix(/var/run/dovecot/quota-warning) failed: Permission denied
check/set owner, group and mode in service quota-warning section
Notes
getenv/setenv/clearenv
There's been issues on several OSes that didn't agree on env related functions, see lib/env-util.c See http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html putenv etc