Dovecot: Difference between revisions

From DWIKI
mNo edit summary
Line 46: Line 46:
http://www.freebsddiary.org/dovecot.php
http://www.freebsddiary.org/dovecot.php


=FAQ=
==the variables: %u, %h, %n etc==
http://wiki2.dovecot.org/Variables


==lmtp or lda?==
= FAQ =
 
== the variables: %u, %h, %n etc ==
 
[http://wiki2.dovecot.org/Variables http://wiki2.dovecot.org/Variables]
 
== lmtp or lda? ==
 
lmtp
lmtp


==quota-warning and selinux==
== quota-warning and selinux ==
 
Create file quotawarning.te:
Create file quotawarning.te:


Line 72: Line 77:
  semodule -i quotawarning.pp
  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/]


==quota check policy service==
== run in foreground ==
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==
== 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
==SOLR==
===Error: fts_solr: Lookup failed: 404 Not Found===


=Notes=
=Notes=

Revision as of 18:59, 16 January 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