Dovecot: Difference between revisions

From DWIKI
mNo edit summary
(20 intermediate revisions by the same user not shown)
Line 3: Line 3:
=Docs=
=Docs=
*http://www.rename-it.nl/dovecot/
*http://www.rename-it.nl/dovecot/
*http://wiki.dovecot.org/
*[[dovecot postfix ldap]]
*[[Dovecot on debian]]
=Important settings=
/proc/sys/fs/inotify/max_user_instances
/proc/sys/fs/inotify/max_user_instances


=Dovecot and ldap=
=Dovecot and ldap=
*[[Dovecot postfix ldap]]
*http://wiki.dovecot.org/AuthDatabase/LDAP
*http://wiki.dovecot.org/AuthDatabase/LDAP
*http://workaround.org/articles/ispmail-etch/#etc-dovecot-dovecot-conf
*http://workaround.org/articles/ispmail-etch/#etc-dovecot-dovecot-conf
*http://manurevah.com/blah/index.php/linux/pysieved-on-workaround.php
*http://manurevah.com/blah/index.php/linux/pysieved-on-workaround.php
*http://wanderingbarque.com/howtos/mailserver/mailserver.html
*http://wanderingbarque.com/howtos/mailserver/mailserver.html
=Postfix=
==Using deliver with postfix==
http://wiki.dovecot.org/LDA/Postfix


=ManageSieve=
=ManageSieve=
Line 17: Line 32:
*http://libsieve-php.exit0.net/
*http://libsieve-php.exit0.net/


Squirrelmail has avelsieve
Squirrelmail has [[avelsieve]]
 
=Testing=
==Show configuration==
dovecot -n
 
deliver


=SSL=
=SSL=
Line 26: Line 47:


=FAQ=
=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==
==run in foreground==
  dovecot -F
  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==
==Fatal: Namespace initialization failed==
Line 42: Line 96:
==user XXX is missing UID (set mail_uid)==
==user XXX is missing UID (set mail_uid)==
System fails to look up UID for user, configure a userdb besides the password db
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

Revision as of 13:30, 11 February 2019

Homepage

Docs

Important settings

/proc/sys/fs/inotify/max_user_instances
/proc/sys/fs/inotify/max_user_instances


Dovecot and ldap

Postfix

Using deliver with postfix

http://wiki.dovecot.org/LDA/Postfix

ManageSieve

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