Dovecot: Difference between revisions

From DWIKI
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
[http://www.dovecot.org/ Homepage]
[http://www.dovecot.org/ Homepage]


=Docs=
 
*http://www.rename-it.nl/dovecot/
= Docs =
*http://wiki.dovecot.org/
 
*[[dovecot postfix ldap]]
*[http://www.rename-it.nl/dovecot/ http://www.rename-it.nl/dovecot/]
*[[Dovecot on debian]]
*[http://wiki.dovecot.org/ http://wiki.dovecot.org/]
*[[Dovecot_postfix_ldap|dovecot postfix ldap]]  
*[[Dovecot_on_debian|Dovecot on debian]]  
*https://doc.dovecot.org/configuration_manual/fts/solr/
 
=Important settings=
/proc/sys/fs/inotify/max_user_instances
/proc/sys/fs/inotify/max_user_instances
 
 


=Dovecot and ldap=
=Dovecot and ldap=
Line 39: Line 49:
http://www.freebsddiary.org/dovecot.php
http://www.freebsddiary.org/dovecot.php


=FAQ=
 
==run in foreground==
= FAQ =
 
== the variables: %u, %h, %n etc ==
 
[http://wiki2.dovecot.org/Variables 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/ https://sys4.de/en/blog/2013/04/08/postfix-dovecot-mailbox-quota/]
 
== run in foreground ==
 
  dovecot -F
  dovecot -F


==dovecot-ltmp: User doesn't exist==
== dovecot-ltmp: User doesn't exist ==
 
After adding user or virtuser, sometimes lmtp doesn't pick it up.
After adding user or virtuser, sometimes lmtp doesn't pick it up.
  postfix reload
  postfix reload


==Fatal: Namespace initialization failed==
== Fatal: Namespace initialization failed ==
 
== Where's the bugtracker? ==
 
[http://dovecot.org/list/dovecot/2007-January/018786.html http://dovecot.org/list/dovecot/2007-January/018786.html]
 
== What's that strange attachment in quota bounces? ==
 
[http://tools.ietf.org/html/rfc3798 http://tools.ietf.org/html/rfc3798]


==Where's the bugtracker?==
== i changed clock and it crashed ==
http://dovecot.org/list/dovecot/2007-January/018786.html


==What's that strange attachment in quota bounces?==
[http://wiki.dovecot.org/TimeMovedBackwards http://wiki.dovecot.org/TimeMovedBackwards]
http://tools.ietf.org/html/rfc3798


==i changed clock and it crashed==
== user XXX is missing UID (set mail_uid) ==
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
System fails to look up UID for user, configure a userdb besides the password db


==check LMTP socket==
== check LMTP socket ==
 
   socat - UNIX:/var/spool/postfix/private/dovecot-lmtp
   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
==SOLR==
===Error: fts_solr: Lookup failed: 404 Not Found===


=Notes=
=Notes=
Line 68: Line 129:
There's been issues on several OSes that didn't agree on env related functions, see lib/env-util.c
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
See http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html putenv etc
[[Category:Mail]]

Latest revision as of 21:55, 26 February 2022

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

SOLR

Error: fts_solr: Lookup failed: 404 Not Found

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