Re: Subject tag [Dovecot] is gone

2014-06-11 Thread Koenraad Lelong

op 10-06-14 17:37, Koenraad Lelong schreef:


I looked at some messages on the server. Not trace of those List-lines.
I think I will get in touch with Watchguard to see if they remove those
lines.


I subscribed to dovecot with a home-account. There I do have those 
RFC2919 lines.
I also just whitelisted the dovecot-list on my Watchguard. I'll see if 
that changes anything.
But I also filed a bug-report with Watchguard concerning this. You 
would think such a company should know better.


Koenraad.


Re: Subject tag [Dovecot] is gone

2014-06-10 Thread Koenraad Lelong

op 09-06-14 22:27, Timo Sirainen schreef:

I've actually been thinking about it almost since the beginning. It's just been 
annoying waste of space on my screen. And more importantly nowadays it's also 
breaking DKIM/DMARC signatures. So if somebody still uses Subject-based 
filtering it's about time to switch to List-ID header based filtering now.

Another thing I'm wondering about is if I should allow text/html parts, because 
removing them will also break the DKIM signatures. Or mainly I'd like to allow 
only multipart/alternative with text/plain + text/html, but I don't think I can 
configure Mailman to support that.


Hi,

Just wanted to ask what happened to [Dovecot] when I saw this mail. 
Could you tell me how to find the List_ID ? I looked at the raw mail, 
but I didn't find it :


some removed stuff and anonymized...
Received: from wursti.dovecot.fi (wursti.dovecot.fi [87.106.245.223])
by mailbox.ace-electronics.be (Postfix) with SMTP id 808B2A0427
for dovecotatace-electronics.be; Mon,  9 Jun 2014 22:28:22 +0200 
(CEST)
Received: from wursti.dovecot.fi (localhost.localdomain [127.0.0.1])
by wursti.dovecot.fi (Postfix) with ESMTP id 16BC421F32;
Mon,  9 Jun 2014 22:27:56 +0200 (CEST)
Received: from talvi.dovecot.org (unknown [137.117.229.219])
by wursti.dovecot.fi (Postfix) with ESMTP;
Mon,  9 Jun 2014 22:27:52 +0200 (CEST)
Received: from [100.90.112.97] (localhost [127.0.0.1])
by talvi.dovecot.org (Postfix) with ESMTP id 0165E235C1;
Mon,  9 Jun 2014 20:28:43 + (UTC)
Received: by talvi.dovecot.org (Postfix, from userid 506)
id B242523584; Mon,  9 Jun 2014 20:28:39 + (UTC)
Received: from wursti.dovecot.fi (unknown [87.106.245.223])
by talvi.dovecot.org (Postfix) with ESMTP id 51A3023584
for dovecot@dovecot.org; Mon,  9 Jun 2014 20:28:39 + (UTC)
Received: from [192.168.10.103] (cs181255018.pp.htv.fi [82.181.255.18])
by wursti.dovecot.fi (Postfix) with ESMTPSA id 6ABD221D30
for dovecot@dovecot.org; Mon,  9 Jun 2014 22:27:43 +0200 (CEST)
From: Timo Sirainen tssatiki.fi
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: Subject tag [Dovecot] is gone
Message-Id: a864f144-2962-4963-bee6-5a6cbb738...@iki.fi
Date: Mon, 9 Jun 2014 23:27:41 +0300
To: Dovecot Mailing List dovecot@dovecot.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
X-Mailer: Apple Mail (2.1878.2)
Precedence: list
Reply-To: Dovecot Mailing List dovecot@dovecot.org
X-WatchGuard-Spam-ID: str=0001.0A0B0202.539618E6.008E,ss=1,re=0.000,fgs=0
X-WatchGuard-Spam-Score: 0, clean; 0, no virus
X-WatchGuard-Mail-Client-IP: 87.106.245.223
X-WatchGuard-Mail-From: dovecot-boun...@dovecot.org
X-Virus-Scanned: Maia Mailguard 1.0.3

I've actually been thinking about it almost since the beginning. It's =
just been annoying waste of space on my screen. And more importantly =
nowadays it's also breaking DKIM/DMARC signatures. So if somebody still =
uses Subject-based filtering it's about time to switch to List-ID header =
based filtering now.

Another thing I'm wondering about is if I should allow text/html parts, =
because removing them will also break the DKIM signatures. Or mainly I'd =
like to allow only multipart/alternative with text/plain + text/html, =
but I don't think I can configure Mailman to support that.


Re: Subject tag [Dovecot] is gone

2014-06-10 Thread Koenraad Lelong

op 10-06-14 17:12, Reindl Harald schreef:







than you have crap software somewhere on your side


What did I do to get such reply ?

Koenraad


Re: Subject tag [Dovecot] is gone

2014-06-10 Thread Koenraad Lelong

op 10-06-14 17:15, Bernd Petrovitsch schreef:


  snip  
in every mail header (= RFC-2919).
Is someone filtering headers on your side or the MUA just not displaying
really all of them?


I'm using Thunderbird as MUA. I'll look at the messages on the server.

Never noticed before there was something missing.

Thanks,

Koenraad.


Re: Subject tag [Dovecot] is gone

2014-06-10 Thread Koenraad Lelong

op 10-06-14 17:15, Bernd Petrovitsch schreef:


FTR: I find
  snip  
List-Id: Dovecot Mailing List dovecot.dovecot.org
List-Unsubscribe: http://dovecot.org/cgi-bin/mailman/options/dovecot,
  mailto:dovecot-requ...@dovecot.org?subject=unsubscribe
List-Archive: http://dovecot.org/pipermail/dovecot/
List-Post: mailto:dovecot@dovecot.org
List-Help: mailto:dovecot-requ...@dovecot.org?subject=help
List-Subscribe: http://dovecot.org/cgi-bin/mailman/listinfo/dovecot,
  mailto:dovecot-requ...@dovecot.org?subject=subscribe
  snip  
in every mail header (= RFC-2919).
Is someone filtering headers on your side or the MUA just not displaying
really all of them?

I looked at some messages on the server. Not trace of those List-lines. 
I think I will get in touch with Watchguard to see if they remove those 
lines.


Thanks.

Koenraad


Re: [Dovecot] Permission error

2013-09-24 Thread Koenraad Lelong

Op 23-09-13 10:22, Reindl Harald schreef:



Am 23.09.2013 09:33, schrieb Koenraad Lelong:

Op 16-09-13 11:48, Koenraad Lelong schreef:

I just tried with chown nobody:nogroup auth-worker
Now the error is gone.
The question remains : what does create auth-worker ? The installer ?
then I think ubuntu does it wrong.


I'm sorry for the late reply but I'm not working full time on this migration.

Unfortunately, I now experienced and remembered the fact that the /run or 
/var/run directories are temporary
directories, i.e. they are recreated on boot. Which means that the ownership is 
recreated on boot and in this case
set to dovecot:root. Which means dovecot can't access the file


sounds like a systemd distribution
man tmpfiles.d

[root@srv-rhsoft:~]$ cat /etc/tmpfiles.d/dovecot.conf
d /run/dovecot 0775 dovecot dovecot -



Thanks for the reply.

I don't know if Ubuntu 12.04 is systemd based. I didn't find tmpfiles.d 
so I looked further. In dovecot.conf I finally found :


service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-master {
group = vmail
mode = 0660
user = vmail
  }
  user = nobody
}

Notice that user=nobody. I commented that out, now it works.

Regards,

Koenraad Lelong



Re: [Dovecot] Permission error

2013-09-23 Thread Koenraad Lelong

Op 16-09-13 11:48, Koenraad Lelong schreef:


Hi,

I just tried with chown nobody:nogroup auth-worker
Now the error is gone.
The question remains : what does create auth-worker ? The installer ?
then I think ubuntu does it wrong.

Any comments ?

Regards,
Koenraad.



Hi,

I'm sorry for the late reply but I'm not working full time on this 
migration.


Unfortunately, I now experienced and remembered the fact that the /run 
or /var/run directories are temporary directories, i.e. they are 
recreated on boot. Which means that the ownership is recreated on boot 
and in this case set to dovecot:root. Which means dovecot can't access 
the file.

I googled and found I needed a section :
service auth-worker {
  # Auth worker process is run as root by default, so that it can access
  # /etc/shadow. If this isn't necessary, the user should be changed to
  # $default_internal_user.
user = $default_internal_user
}
This does not work, also setting the user to dovecot gives the same result :
2013-09-23 09:28:08 auth: Fatal: net_connect_unix(auth-worker) in 
directory /run/dovecot failed: Permission denied (euid=65534(nobody) 
egid=65534(nogroup) missing +r perm: /run/dovecot/auth-worker, dir owned 
by 0:0 mode=0755)
2013-09-23 09:28:08 master: Error: service(auth): command startup 
failed, throttling


I'm stuck, can anyone please point me into the right direction ?

Thanks,

Koenraad Lelong



[Dovecot] Permission error

2013-09-16 Thread Koenraad Lelong

Hi,

I'm migrating an existing dovecot (1. series) to new hardware. The new 
dovecot is a 2. series.

I copied the old config and did a
doveconf -n -c /etc/dovecot/dovecot.conf  dovecot-2.conf
Then I moved the dovecot-2.conf to dovecot.conf and restarted dovecot.
When Postfix tries to deliver a message I get this error :

2013-09-16 11:00:10 auth: Fatal: net_connect_unix(auth-worker) in 
directory /run/dovecot failed: Permission denied (euid=65534(nobody) 
egid=65534(nogroup) missing +r perm: /run/dovecot/auth-worker, dir owned 
by 0:0 mode=0755)
2013-09-16 11:00:10 master: Error: service(auth): command startup 
failed, throttling


I tried different things with /run/dovecot/auth-worker, but the error 
remains. I tried to chmod 777 the socket, I chown-ed to dovecot:dovecot, 
vmail:vmail.


What am I missing ? AFAIK the sql-tables are OK.

Thanks.

doveconf -n is this :
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.0-39-generic x86_64 Ubuntu 12.04.3 LTS
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
first_valid_uid = 499
info_log_path = /var/log/dovecot.debug
last_valid_uid = 499
log_path = /var/log/dovecot
log_timestamp = %Y-%m-%d %H:%M:%S 
mail_debug = yes
mail_location = maildir:/var/vmail/%u
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date ihave

passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-master {
group = vmail
mode = 0660
user = vmail
  }
  user = nobody
}
service imap-login {
  executable = /usr/lib/dovecot/imap-login
  inet_listener imap {
address = *
port = 143
  }
  inet_listener imaps {
address = *
port = 993
  }
}
service imap {
  executable = /usr/lib/dovecot/imap
}
service pop3-login {
  executable = /usr/lib/dovecot/pop3-login
  inet_listener pop3 {
address = *
port = 110
  }
}
service pop3 {
  executable = /usr/lib/dovecot/pop3
}
ssl_ca = /etc/postfix/certificate/cacert.org.pem
ssl_cert = /etc/postfix/certificate/mailbox.pem
ssl_key = /etc/postfix/certificate/mailboxkey.pem
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
verbose_ssl = yes
protocol imap {
  imap_max_line_length = 64 k
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol sieve {
  managesieve_logout_format = bytes ( in=%i : out=%o )
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-err.log
  mail_plugins = sieve
  postmaster_address = some-...@ace-electronics.be
  sendmail_path = /usr/lib/sendmail
}



Re: [Dovecot] Permission error

2013-09-16 Thread Koenraad Lelong

Op 16-09-13 11:28, Koenraad Lelong schreef:

Hi,

I'm migrating an existing dovecot (1. series) to new hardware. The new
dovecot is a 2. series.
I copied the old config and did a
doveconf -n -c /etc/dovecot/dovecot.conf  dovecot-2.conf
Then I moved the dovecot-2.conf to dovecot.conf and restarted dovecot.
When Postfix tries to deliver a message I get this error :

2013-09-16 11:00:10 auth: Fatal: net_connect_unix(auth-worker) in
directory /run/dovecot failed: Permission denied (euid=65534(nobody)
egid=65534(nogroup) missing +r perm: /run/dovecot/auth-worker, dir owned
by 0:0 mode=0755)
2013-09-16 11:00:10 master: Error: service(auth): command startup
failed, throttling

I tried different things with /run/dovecot/auth-worker, but the error
remains. I tried to chmod 777 the socket, I chown-ed to dovecot:dovecot,
vmail:vmail.

What am I missing ? AFAIK the sql-tables are OK.



Hi,

I just tried with chown nobody:nogroup auth-worker
Now the error is gone.
The question remains : what does create auth-worker ? The installer ? 
then I think ubuntu does it wrong.


Any comments ?

Regards,
Koenraad.



[Dovecot] Archiving mail

2013-07-18 Thread Koenraad Lelong

Hi,

I'm going to migrate my company-mailserver to new hardware. I would like 
to take the opportunity to archive some older mail. But I would like to 
have it still accessible, would this be possible with dovecot ?
I mean, I would like to put that older mail from different users (I got 
about 50 users) on some read-only media but mount that media in the 
users mail-dirs. That way I will have less to backup after I backup that 
old mail and store it safely away.
I can't convince my users to really clean up their mailboxes, so I 
backup more than 100GB mail while the total backup is a bit more than 300GB.


Writing this I realise I could give each user a folder oldmail and 
symlink that to a read-only oldmail folder. Would this work ?
I will have to find out how my backup-software can ignore the 
oldmail-folder.


Thanks for any suggestions,

Koenraad Lelong


[Dovecot] Client behaviour with sieve

2010-02-19 Thread Koenraad Lelong

Hi,

I have a working dovecot imap-server, with sieve.
I find it odd that my mail-clients (Thunderbird 2 and 3) don't report 
anything that's new in the folders.

What I mean is this :
Postfix get's a mail and hands it over to dovecot's LDA and sieve moves 
it to a folder.
When I log in with Thunderbird, I see new messages in my Inbox. But that 
message that was moved to a folder is invisible until I click on the 
folder. Then Thunderbird sees there are new messages in that folder and 
reports the number of new messages and makes the foldername bold.


Is this the expected behaviour ? Or did I configure something wrong ?
Thanks for any clarification.

Regards,

Koenraad Lelong.


Re: [Dovecot] Client behaviour with sieve

2010-02-19 Thread Koenraad Lelong

Nikita Koshikov schreef:

On Fri, 19 Feb 2010 15:17:17 +0100
Koenraad Lelong xxx...@ace-electronics.be wrote:


...


Take a look http://www.mozilla.org/support/thunderbird/tips#beh_downloadstartup

Hi Nikita,
Thanks for the link.

What I don't like is that you posted my e-mail-adress in your message. 
Now it will be available to harvesters, and I will get spam via that 
address very soon. Please don't be offended, but remove that from your 
replies.


Regards,

Koenraad Lelong.




Re: [Dovecot] Why : dovecot_destination_recipient_limit = 1 ?

2009-11-03 Thread Koenraad Lelong

Markus Schönhaber schreef:

Koenraad Lelong:

I'm trying to activate sieve. In all tutorials I have seen I need to set 
dovecot_destination_recipient_limit = 1 in Postfix's main.cf. Can anyone 
explain why ?
I like to know because when I set this and the dovecot transport in 
Postfix, I'm having problems when aliasses are used that map to 
different recipients, i.e. i...@... results in us...@..., us...@..., 
etc. The problems are an error from Postfix :
Oct 30 09:25:19 lace3 postfix/pipe[19729]: 8A77E2D5B5B: 
to=some.b...@some.where.org, relay=dovecot, delay=2390, 
delays=2390/0.04/0/0.01, dsn=4.3.5, status=deferred (mail system 
configuration error)
Oct 30 09:25:19 lace3 postfix/pipe[19729]: warning: pipe flag `D' 
requires dovecot_destination_recipient_limit = 1


Well, the last message says it all: you've instructed postifx' pipe to
add a Delivered-To header field to the message. And this obviously
can't work when delivering one message to multiple recipients in one pass.
See also:
http://www.postfix.org/pipe.8.html


Thanks for your response, Markus.
Am I to conclude that what I'm trying to do is impossible then, with 
dovecot ?
I would like to enable sieve on a system where I have aliasses which 
point to multiple recipients.
For some reason dovecot needs the DRhu flags. The D flag needs 
dovecot_destination_recipient_limit=1 which prevents those multiple 
recipients.


Or am I missing something ?

If I would remove the D-flag, how likely it is to get a loop ? 
Unfortunately I don't have a test-system at the moment.


Regards,

Koenraad Lelong.


[Dovecot] Why : dovecot_destination_recipient_limit = 1 ?

2009-11-02 Thread Koenraad Lelong

Hi all,


I'm trying to activate sieve. In all tutorials I have seen I need to set 
dovecot_destination_recipient_limit = 1 in Postfix's main.cf. Can anyone 
explain why ?
I like to know because when I set this and the dovecot transport in 
Postfix, I'm having problems when aliasses are used that map to 
different recipients, i.e. i...@... results in us...@..., us...@..., 
etc. The problems are an error from Postfix :
Oct 30 09:25:19 lace3 postfix/pipe[19729]: 8A77E2D5B5B: 
to=some.b...@some.where.org, relay=dovecot, delay=2390, 
delays=2390/0.04/0/0.01, dsn=4.3.5, status=deferred (mail system 
configuration error)
Oct 30 09:25:19 lace3 postfix/pipe[19729]: warning: pipe flag `D' 
requires dovecot_destination_recipient_limit = 1


Thanks for any info.

Regards,

Koenraad Lelong.


Re: [Dovecot] How to see if sieve is active ?

2009-10-30 Thread Koenraad Lelong

Steffen Kaiser schreef:

On Thu, 29 Oct 2009, Thomas Leuxner wrote:


put something in the LDA section like this to record the activities:



  log_path = /var/log/dovecot-deliver.log
  info_log_path = /var/log/dovecot-deliver.log


The user deliver runs as probably may not write to this location, for 
testing you should chown a+rw these files or use syslog.




Hi,

This morning I enabled dovecot as virtual transport, and everything 
seemed OK, until I got complaints ;-). After investigation I found that 
when aliasses are mapped to multiple recipients I get following error :


Oct 30 09:25:19 lace3 postfix/pipe[19729]: 8A77E2D5B5B: 
to=some.b...@some.where.org, relay=dovecot, delay=2390, 
delays=2390/0.04/0/0.01, dsn=4.3.5, status=deferred (mail system 
configuration error)
Oct 30 09:25:19 lace3 postfix/pipe[19729]: warning: pipe flag `D' 
requires dovecot_destination_recipient_limit = 1


At the same time I made dovecot the virtual transport I did add :
dovecot_destination_recipient_limit = 1

This is what I use in postfix's master.cf :
dovecot	unix - n n - - pipe flags=DRhu user=vmail:vmail 
argv=/usr/lib/dovecot/deliver -d $(recipient)


Dovecot logfiles don't show anything. The errors are in the postfix log.

Any help ?


Regards,

Koenraad Lelong.


Re: [Dovecot] How to see if sieve is active ?

2009-10-30 Thread Koenraad Lelong

Charles Marcus schreef:

On 10/30/2009 6:25 AM, Charles Marcus wrote:

On 10/30/2009, Koenraad Lelong (dove...@ace-electronics.be) wrote:

At the same time I made dovecot the virtual transport I did add :
dovecot_destination_recipient_limit = 1 

Postconf -n output?


Nevermind, I forgot postconf -n doesn't 'see' this parameter...


Hi Charles,

Included is the full main.cf.
Don't forget I reverted back to virtual transport until I know what's 
wrong with the dovecot transport.


Regards,

Koenraad Lelong.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
myhostname = mailbox.ace-electronics.be
mydomain = ace-electronics.be
local_recipient_maps =
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.0.0/20, 127.0.0.0/8
relayhost = out.telenet.be
home_mailbox = Maildir/
header_checks = pcre:/etc/postfix/maps/header_checks.short
nested_header_checks =
debug_peer_level = 2
debugger_command =
 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
 xxgdb $daemon_directory/$process_name $process_id  sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf, 
proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf, 
proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
virtual_mailbox_domains = 
proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = 
proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf, 
proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf
virtual_mailbox_limit = 1024
virtual_gid_maps = static:97
virtual_mailbox_base = /net/mail
virtual_transport = virtual
dovecot_destination_recipient_limit = 1 
virtual_uid_maps = static:499
virtual_minimum_uid = 499
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
program_directory = /usr/lib/postfix
masquerade_domains = 
mydestination = $myhostname, localhost.$mydomain
defer_transports = 
disable_dns_lookups = no
mailbox_command = 
mailbox_transport = 
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/spammers
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = 
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,reject_rbl_client
 zen.spamhaus.org
smtp_sasl_auth_enable = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 1024
content_filter = smtp-amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_localdomain = 
broken_sasl_auth_clients = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/certificate/mailboxkey.pem
smtpd_tls_cert_file = /etc/postfix/certificate/mailbox.pem
smtpd_tls_CAfile = /etc/postfix/certificate/cacert.org.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom


[Dovecot] How to see if sieve is active ?

2009-10-29 Thread Koenraad Lelong

Hi,

I think I activated sieve, but it's doing nothing. I know manage-sieve 
works so I made some rules. But they do nothing.
I ran sieve-test, which seems to work, but does not move the mail I 
test. Is this how it works ? I thought the -e parameter just tested 
the rules and did nothing and my command was supposed to do the real 
thing. I read there should be a log. I don't find this, how should I 
enable this ?


I just found that lda can have a separate log. I'll enable this and see.

I read the wiki-page different times, but I don't see what I'm doing wrong.

I attached some files. Sieve-test.txt is the command and output from 
sieve-test. Phpscript.sieve is the file .dovecot.sieve points to, and 
dovecot-config is my dovecot config ;-).


Thanks for any pointers.

Regards,

Koenraad Lelong.
# 1.2.5: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.22.19-0.4-default x86_64 openSUSE 10.3 (X86-64) 
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot
log_timestamp: %Y-%m-%d %H:%M:%S 
protocols: imap imaps managesieve
listen(default): *:143
listen(imap): *:143
listen(managesieve): *
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(managesieve): 
ssl_ca_file: /etc/postfix/certificate/cacert.org.pem
ssl_cert_file: /etc/postfix/certificate/mailbox.pem
ssl_key_file: /etc/postfix/certificate/mailboxkey.pem
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /var/run/dovecot//login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
first_valid_uid: 499
last_valid_uid: 499
mail_location: maildir:/var/vmail/%d/%u
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugin_dir(default): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib64/dovecot/modules/managesieve
managesieve_logout_format(default): bytes=%i/%o
managesieve_logout_format(imap): bytes=%i/%o
managesieve_logout_format(managesieve): bytes ( in=%i : out=%o )
lda:
  postmaster_address: postmas...@ace-electronics.be
  sendmail_path: /usr/lib/sendmail
  auth_socket_path: /var/run/dovecot/auth-master
  mail_plugins: sieve
auth default:
  mechanisms: plain login
  user: nobody
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 432
  user: vmail
  group: vmail
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve
sieve-test .dovecot.sieve new/1256755771.V6806I4ec63M549667.lace3
Performed actions:
 * store message in folder: Opensuse
Implicit keep:
  (none)
Info: final result: success
# This script has been automatically generated by avelsieve
# (Sieve Mail Filters Plugin for Squirrelmail)
# Warning: If you edit this manually, then the changes will not 
# be reflected in the users' front-end!
#AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTo5O3M6NzoicmVsZWFzZSI7aTo5O3M6Njoic3RyaW5nIjtzOjU6IjEuOS45Ijt9
#AVELSIEVE_CREATED1256640979
#AVELSIEVE_MODIFIED1256715146
require 
[fileinto,envelope,reject,vacation,imap4flags,relational,comparator-i;ascii-numeric,regex,body,date];
#START_SIEVE_RULEYTo2OntzOjQ6ImNvbmQiO2E6MTp7aTowO2E6NTp7czo0OiJraW5kIjtzOjc6Im1lc3NhZ2UiO3M6NDoidHlwZSI7czo2OiJoZWFkZXIiO3M6NjoiaGVhZGVyIjtzOjc6IlN1YmplY3QiO3M6OToibWF0Y2h0eXBlIjtzOjg6ImNvbnRhaW5zIjtzOjExOiJoZWFkZXJtYXRjaCI7czoxMDoiW29wZW5zdXNlXSI7fX1zOjQ6InR5cGUiO3M6MToiMSI7czo5OiJjb25kaXRpb24iO3M6MzoiYW5kIjtzOjY6ImFjdGlvbiI7czoxOiI1IjtzOjY6ImZvbGRlciI7czo4OiJPcGVuc3VzZSI7czo0OiJzdG9wIjtzOjI6Im9uIjt9END_SIEVE_RULE
if header :contains Subject [opensuse]
{
fileinto  Opensuse;
stop;
}
#START_SIEVE_RULEYTo2OntzOjQ6ImNvbmQiO2E6MTp7aTowO2E6NTp7czo0OiJraW5kIjtzOjc6Im1lc3NhZ2UiO3M6NDoidHlwZSI7czo2OiJoZWFkZXIiO3M6NjoiaGVhZGVyIjtzOjc6IlN1YmplY3QiO3M6OToibWF0Y2h0eXBlIjtzOjg6ImNvbnRhaW5zIjtzOjExOiJoZWFkZXJtYXRjaCI7czo5OiJbRG92ZWNvdF0iO319czo0OiJ0eXBlIjtzOjE6IjEiO3M6OToiY29uZGl0aW9uIjtzOjM6ImFuZCI7czo2OiJhY3Rpb24iO3M6MToiNSI7czo2OiJmb2xkZXIiO3M6NzoiZG92ZWNvdCI7czo0OiJzdG9wIjtzOjI6Im9uIjt9END_SIEVE_RULE
if header :contains Subject [Dovecot]
{
fileinto  dovecot;
stop;
}
#START_SIEVE_RULEYTo2OntzOjQ6ImNvbmQiO2E6MTp7aTowO2E6NTp7czo0OiJraW5kIjtzOjc6Im1lc3NhZ2UiO3M6NDoidHlwZSI7czo2OiJoZWFkZXIiO3M6NjoiaGVhZGVyIjtzOjc6IlN1YmplY3QiO3M6OToibWF0Y2h0eXBlIjtzOjg6ImNvbnRhaW5zIjtzOjExOiJoZWFkZXJtYXRjaCI7czoxNDoiW0JhY3VsYS11c2Vyc10iO319czo0OiJ0eXBlIjtzOjE6IjEiO3M6OToiY29uZGl0aW9uIjtzOjM6ImFuZCI7czo2OiJhY3Rpb24iO3M6MToiNSI7czo2OiJmb2xkZXIiO3M6NjoiQmFjdWxhIjtzOjQ6InN0b3AiO3M6Mjoib24iO30%3DEND_SIEVE_RULE
if header :contains Subject [Bacula-users]
{
fileinto  Bacula;
stop

Re: [Dovecot] Multiple identities

2009-10-27 Thread Koenraad Lelong

Daniel L. Miller schreef:

Koenraad Lelong wrote:

Hi,

...
I'm trying to debug this but dovecot does not help much. I tried 
rawlog but there is no output (that I see) from it, no log-files in my 
maildir.


The act of copying outgoing mail to a Sent folder is not an automatic 
one - certainly not from the server's point of view.  Typically, this is 
implemented by the mail client - in this case, Thunderbird.  If you have 
not gone well out of your way to configure some kind of server-side 
script - it's going to be client-driven.


Within Thunderbird, under Manage Identities, Copies  Folders, you 
can specify the Sent folder to use.  If using the default Sent 
folder results in a INBOX.Sent, override the setting here and specify 
your correct folder.



Hi Daniel,

You are right ! I'm using Thunderbird for years now, and I didn't know 
this existed :-/ ! I remember, for some reason I don't remember, for a 
while I had to modify the main identity to use another Sent. When you 
make a new identity this gets copied I think if you don't modify it 
explicitely. That explains why new aliasses don't copy to INBOX.Sent.


Many thanks.


Regards,

Koenraad Lelong.

P.S. any idea why rawlog doesn't work ? Where should to log-file be placed ?


Re: [Dovecot] Multiple identities

2009-10-27 Thread Koenraad Lelong

Matthijs Kooijman schreef:

P.S. any idea why rawlog doesn't work ? Where should to log-file be placed ?

Did you see http://wiki.dovecot.org/Debugging/Rawlog ?

It works by checking if dovecot.rawlog/ directory exists in the logged in
user's home directory, and writing the traffic to mmdd-HHMMSS-pid.in and
.out files. Each connection gets their own in/out files.

Gr.

Matthijs


Doh. Seems I skipped a few lines and misunderstood others. The directory 
should _exist_ (and with the right permissions) ! Now it works.

Thanks for pointing this out.

Regards,

Koenraad Lelong.


[Dovecot] Multiple identities

2009-10-26 Thread Koenraad Lelong

Hi,
I recently moved from courier-imap to dovecot, to be able to work with 
managesieve. I use version 1.2.5, on suse 10.3. I used the script to 
migrate the courier maildir to dovecot format.
It seems to work fine except for one problem : I use a number of 
aliasses and with Thunderbird I can select which alias (e-mail-address) 
to use as my identity when sending a mail.
I sniffed with wireshark, and with my standard identity, I see the 
message appended to Sent, like I expect. If I use an alias, I see a 
folder being created : INBOX.Sent, and then the message is appended there.

Why the difference ?
I'm trying to debug this but dovecot does not help much. I tried rawlog 
but there is no output (that I see) from it, no log-files in my maildir.


Any hints how to proceed ?

Output op dovecot -n :
# 1.2.5: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.22.19-0.4-default x86_64 openSUSE 10.3 (X86-64)
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot
log_timestamp: %Y-%m-%d %H:%M:%S
listen: *:143
ssl_listen: *:993
ssl_ca_file: /etc/postfix/certificate/cacert.org.pem
ssl_cert_file: /etc/postfix/certificate/mailbox.pem
ssl_key_file: /etc/postfix/certificate/mailboxkey.pem
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /var/run/dovecot//login
login_executable: /usr/lib/dovecot/imap-login
first_valid_uid: 499
last_valid_uid: 499
mail_location: maildir:/var/vmail/%d/%u
mail_debug: yes
mail_executable: /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
lda:
  postmaster_address: postmas...@mydomain.com
  sendmail_path: /usr/lib/sendmail
  auth_socket_path: /var/run/dovecot/auth-master
  mail_plugins: cmusieve
auth default:
  mechanisms: plain login
  user: nobody
  verbose: yes
  debug: yes
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 432
  user: vmail
  group: vmail

Kind regards,

Koenraad Lelong.