Re: [Dovecot] Dovecot not delivering mail.

2010-01-06 Thread Thomas Wolf

Timo Sirainen schrieb:

On 5.1.2010, at 13.55, Charles Marcus wrote:


In other words, would you really have to remember to run dovecot -n -c
per your example above?

I ask because I've never used it with a config file in a non-default
location.

If this is correct, I would consider it a bug - dovecot -n should know
which config file it is using, and outout accordingly.


How would it know what config file Dovecot is using? The config file needs to be read before it even knows where the base_dir is. 

 What if there are multiple Dovecots running? The main problem
 here is that Ubuntu for some reason decided to use dovecot-postfix.conf
 instead of the default dovecot.conf..

Depends on the package that is installed:

t...@mail2:~$ apt-cache search dovecot
dovecot-common - secure mail server that supports mbox and maildir mailboxes
dovecot-dev - header files for the dovecot mail server
dovecot-imapd - secure IMAP server that supports mbox and maildir mailboxes
dovecot-pop3d - secure POP3 server that supports mbox and maildir mailboxes
dovecot-postfix - full mail server stack provided by Ubuntu server team

The package dovecot-postfix installs and uses dovecot-postfix.conf but
unfortunately also puts the default dovecot.conf in /etc/dovecot
(driving everyone crazy who blindly follows howtos editing
dovecot.conf). Highly recommended to remove/rename dovecot.conf in this
configuration.

Thomas







Re: [Dovecot] Dovecot not delivering mail.

2010-01-06 Thread Thomas Wolf

Pascal Volk schrieb:

On 01/06/2010 02:15 PM Thomas Wolf wrote:

…
The package dovecot-postfix installs and uses dovecot-postfix.conf but
unfortunately also puts the default dovecot.conf in /etc/dovecot
(driving everyone crazy who blindly follows howtos editing
dovecot.conf). Highly recommended to remove/rename dovecot.conf in this
configuration.


And there is big fat warning at the top of the unbuntus's dovecot.conf
file:
# -- WARNING ---

# If there's a file /etc/dovecot/dovecot-postfix.conf, which is part of
# dovecot-postfix package, it will be used instead of dovecot.conf.

# Keep in mind that, if that file exist, none of the changes in
# /etc/dovecot/dovecot.conf will have effect on dovecot's configuration.
# In that case you should customize /etc/dovecot/dovecot-postfix.conf.

# -- WARNING ---

Further more, the file /usr/share/doc/dovecot-postfix/README.Debian
contains:
dovecot's init script checks existance of /etc/dovecot/dovecot-postfix.conf
and if that file exists, it reads it instead of /etc/dovecot/dovecot.conf.

Sorry, but I really can't understand, why the most unbuntu users seems
to be unable to read AND understand so simple written documentation. :(



I agree (that's why i wrote ..who *blindly* follows howtos).
Nevertheless, renaming /etc/dovecot/dovecot.conf helps troubleshooting
while using dovecot-postfix (forgetting -c when using deliver elsewhere
for example)

Thomas







Re: [Dovecot] Dovecot not delivering mail.

2010-01-05 Thread Thomas Wolf

Charles Marcus schrieb:

Question: if you use an alternate location for the config file, and
start dovecot with that config file properly, does plain 'dovecot -n'
output what is in the config file that is in use? Or the one in the
default location?


It's the default location:

t...@mail2:~$ pgrep -lf dovecot
28900 /usr/sbin/dovecot -c /etc/dovecot/dovecot-postfix.conf
28901 dovecot-auth
t...@mail2:~$ dovecot -n
# 1.1.11: /etc/dovecot/dovecot.conf
Error: Can't open configuration file /etc/dovecot/dovecot.conf: No such 
file or directory

Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
t...@mail2:~$

Thomas



Re: [Dovecot] Dovecot+Sieve Please Help!...

2009-11-16 Thread Thomas Wolf

Andrey Garkin schrieb:

Dovecot Sieve Plugin...

2. dovecot.sieve file in /home/vmail/kipalex.ru/and...@kipalex.ru
require fileinto;
if header :contains Subject ***SPAM*** {
fileinto /home/vmail/kipalex.ru/and...@kipalex.ru/.Spam/new;
}


AFAIK it should just be

fileinto Spam

Thomas