[Dovecot] some mail reappears or marked as read again

2007-07-16 Thread Herbert Gasiorowski
Sometimes a mail - already read or moved into another folder - appears again in 
the INBOX. I was not quite sure about this but today is once close the mail 
client (thunderbird 2.0.0.4 on fedora 7) and the only mail in the inbox was mark 
as unread.


I think it happens in other mailboxes too.

But it might be a client problem as I changed to dovecot and thunderbird 2 (from 
1.5) nearly at the same time - but i think it happens before with thunderbird 
1.5 too).


In the logs there is nothing but some logins/logout.

(the dovecot -n is attached)
# 1.0.1: /etc/dovecot.conf
syslog_facility: local6
protocols: imap imaps pop3 pop3s
ssl_cert_file: /etc/pki/dovecot/certs/dovecot2.pem
ssl_key_file: /etc/pki/dovecot/private/dovecot2.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
pop3_uidl_format: %08Xu%08Xv
namespace:
  type: private
  separator: /
  location: mbox:~/Mail:INBOX=/var/spool/mailx/%u:INDEX=/export/dovecot/%u
  inbox: yes
namespace:
  type: private
  separator: /
  prefix: FB12/home-temp/
  location: mbox:~:INDEX=/export/dovecot/%u
namespace:
  type: shared
  separator: /
  prefix: FB12/
  location: mbox:/export/mailfb12:INDEX=/export/dovecot/%u
auth default:
  passdb:
driver: pam
args: imap
  userdb:
driver: passwd


[Dovecot] Dict-server mysql module error

2007-07-16 Thread Gabriele Fergola

hi all
when i setup plugin quota by quota = dict: mysql:/etc/quota-dict.conf i get
the folowing error:

deliver([EMAIL PROTECTED]): Unknown dict module: mysql
deliver([EMAIL PROTECTED]): dict quota: dict_init() failed

quota-dict.conf:

connect = host=localhost dbname= user= password=
table = mailbox
select_field = quota
where_field = maildir
username_field = username

dovecot.conf:
# 1.0.2: /etc/dovecot//dovecot.conf
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
ssl_disable: yes
disable_plaintext_auth: no
shutdown_clients: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
first_valid_uid: 5000
mail_location: maildir:/mbox/%d/%u/Maildir
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
 passdb:
   driver: pam
 passdb:
   driver: sql
   args: /etc/dovecot-sql.conf
 userdb:
   driver: passwd
 userdb:
   driver: sql
   args: /etc/dovecot-sql.conf
 socket:
   type: listen
   master:
 path: /var/run/dovecot/auth-master
 mode: 384
 user: vmail
 group: mail
plugin:
 quota: dict:storage=10240:messages=1000 mysql:/etc/dovecot-dict-quota.conf
 quota_warning: storage=80% /usr/local/bin/quota_warning.sh 80
dict:
 quota: mysql:/etc/dovecot-dict-quota.conf

i applied the patch for quota warning message by nicolas.

thank you in advance
Workino


[Dovecot] deleting maildir files

2007-07-16 Thread Tom Bombadil
Greetings all...

Can we delete maildir files directly from the file system?

Basically, we use dovecot to train spam, and we want to delete messages
that are older than 30 days, using a simple find /maildirs -cname +30
-name *imap-server* -exec rm {} \;

I have seen a post a while ago saying that dovecot can rebuild the
indexes, but I don't remember if it's when the index is deleted or when
the maildir files are deleted.

And if we cannot delete files with the 'rm' command, whats the
best/proper way to delete these older files.

Thanks



[Dovecot] Getting quotas from an NFS-mounted filestore

2007-07-16 Thread Mike Brudenell

Greetings -

I was just wondering what the state of play was with regard to  
reading filestore-based quotas when the mailstore is NFS-mounted?


Timo mentioned a little while ago that he'd be including it:
http://www.dovecot.org/list/dovecot/2007-May/022594.html

However it isn't in 1.0.1 and isn't mentioned in the release notes  
for 1.0.2.  Is it going to be a 1.1 feature or will it appear before  
then?


I'm asking because although I can't get the rquota-rquotad patch to  
build on Solaris I have found some code on the net which does do RPC  
based quota lookups.  I'm toying with the idea of trying to modify  
rquota-rquotad to use this other code.  However this is out of my  
area of knowledge so it will be an uphill battle ... so if reading  
quotas from NFS-mounted filestores will be coming Real Soon Now I'll  
probably just wait instead.


So any ideas as to timescales, please?

Cheers,
Mike B-)

--
The Computing Service, University of York, Heslington, York Yo10 5DD, UK
Tel:+44-1904-433811  FAX:+44-1904-433740

* Unsolicited commercial e-mail is NOT welcome at this e-mail address. *




Re: [Dovecot] deleting maildir files

2007-07-16 Thread Timo Sirainen

On 16.7.2007, at 19.33, Tom Bombadil wrote:


Can we delete maildir files directly from the file system?


Yes.



PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] deleting maildir files

2007-07-16 Thread Don Russell

Tom Bombadil wrote:

Greetings all...

Can we delete maildir files directly from the file system?

Basically, we use dovecot to train spam, and we want to delete messages
that are older than 30 days, using a simple find /maildirs -cname +30
-name *imap-server* -exec rm {} \;

I have seen a post a while ago saying that dovecot can rebuild the
indexes, but I don't remember if it's when the index is deleted or when
the maildir files are deleted.

And if we cannot delete files with the 'rm' command, whats the
best/proper way to delete these older files.

Thanks
  


My opinion has always been that the data structure should not be replied 
upon if you want to do things with your mail items, then use the 
APIs/imap commands to do it. That protects you from any internal stuff 
you didn't know about, or changed from one server to another, or one 
version to another.


For example, I have the beginnings of a script to handle my mail 
retention policies. It connects to Dovecot/imap to get the list of mail 
for specific folders, then uses the imap delete (or copy) API to delete 
mail older than n days, or to keep only the most recent n messages. That 
sort of thing.


The benefit is my script then doesn't care how Dovecot (or whichever 
server) stores things and if a mailbox changes from mbox to maildir 
format, or similar change.. no worries... my script just doesn't care... 
it always uses the APIs to manipulate mail.


Safe, but admittedly not as fast. I favor reliability over speed in 
these sorts of cases.  :-)


[Dovecot] Can't compile mbox-snarf-plugin.c on AIX 5.3

2007-07-16 Thread Adnan Vatandas
Hello everyone,

I tried to compile the mbox-snarf-plugin.c (downloaded today, so I
assume it's the most recent version available) on AIX 5.3 with gcc 4.0.

Building Dovecot 1.0.1 and 1.0.2 works fine.



[EMAIL PROTECTED] root]# export DOVECOT=/root/dovecot-1.0.1

[EMAIL PROTECTED] root]# gcc -fPIC -shared -Wall -I$DOVECOT -I$DOVECOT/src/lib
-I$DOVECOT/src/lib-storage -I$DOVECOT/src/lib-mail -I
$DOVECOT/src/lib-imap -DHAVE_CONFIG_H mbox-snarf-plugin.c -o
mbox_snarf_plugin.so 

ld: 0711-317 ERROR: Undefined symbol: .mailbox_sync_init 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_sync_next 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_sync_deinit 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_transaction_begin 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_search_init 
ld: 0711-317 ERROR: Undefined symbol: .mail_alloc 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_copy 
ld: 0711-317 ERROR: Undefined symbol: .mail_expunge 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_search_next 
ld: 0711-317 ERROR: Undefined symbol: .mail_free 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_search_deinit 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_transaction_rollback 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_transaction_commit 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_open 
ld: 0711-317 ERROR: Undefined symbol: .buffer_append_zero 
ld: 0711-317 ERROR: Undefined symbol: .buffer_get_space_unsafe 
ld: 0711-317 ERROR: Undefined symbol: .mailbox_close 
ld: 0711-317 ERROR: Undefined symbol: .mail_storage_set_critical 
ld: 0711-317 ERROR: Undefined symbol: .buffer_write 
ld: 0711-317 ERROR: Undefined symbol: .home_expand 
ld: 0711-317 ERROR: Undefined symbol: .p_strdup
ld: 0711-317 ERROR: Undefined symbol: mail_storage_module_id 
ld: 0711-317 ERROR: Undefined symbol: hook_mail_storage_created 
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information. 
collect2: ld returned 8 exit status 
[EMAIL PROTECTED] root]# 


Does this plugin work with Dovecot  1.0 at all, is this a know bug or
are there any users who managed to install it successfully on AIX? 

Sincerely
Adnan


Re: [Dovecot] Problem with Dovecot SASL in Postfix

2007-07-16 Thread Chris McMacken

dovecot: Jul 16 15:36:51 Info: auth(default): client in: AUTH   1
CRAM-MD5service=smtp
dovecot: Jul 16 15:36:51 Info: auth(default): client out: CONT  1
PDgyMTc0MTAxNjMzNDQ5MTEuMTE4NDYxODIxMUBtYWlsPg==
dovecot: Jul 16 15:36:51 Info: auth(default): client in: CONT   1
Y2hyaXNtQHJ1cmFsdGVjaGluYy5jb20gYzQ0M2QyZTNkZjkxY2I1MGUxOGY5NDU3ZGI2MmUyNWE=
dovecot: Jul 16 15:36:51 Info: auth(default):
passwd-file([EMAIL PROTECTED]): lookup: user=chrism
file=/usr/local/etc/dovecot/ruraltechinc.com/passwd
dovecot: Jul 16 15:36:51 Info: auth(default):
password([EMAIL PROTECTED]): Credentials:
a67a65704086a046b3f2875d1e8daac8cb5c6fd13406507fead30d9bcb1bf82b
dovecot: Jul 16 15:36:51 Info: auth(default): client out: OK1
[EMAIL PROTECTED]


heres the dovecot logs with auth_debug_passwords = yes
it looks like the auth is ok, so its a postfix configuration issue

On 7/12/07, Timo Sirainen [EMAIL PROTECTED] wrote:

On Thu, 2007-07-12 at 10:52 -0500, Chris McMacken wrote:
 and to login through SASL I am trying to use the username
 [EMAIL PROTECTED] when I use the full email address like this to
 login like this I get this output into my postfix log:

Postfix's logs aren't very useful. Set auth_debug_passwords=yes in
dovecot.conf and look at Dovecot's logs.

 Jul 10 18:46:59 mail postfix/smtpd[57343]: connect from 
unknown[12.244.148.123]
 Jul 10 18:46:59 mail postfix/smtpd[57343]: NOQUEUE: reject: RCPT from
 unknown[12.244.148.123]: 554 5.7.1 [EMAIL PROTECTED]: Relay access
 denied; from=[EMAIL PROTECTED] to=[EMAIL PROTECTED] proto=ESMTP
 helo=[192.168.1.14]
 Jul 10 18:47:00 mail postfix/smtpd[57343]: disconnect from
 unknown[12.244.148.123]
..
 Jul 10 18:50:36 mail postfix/smtpd[57356]: connect from 
unknown[12.244.148.123]
 Jul 10 18:50:38 mail postfix/smtpd[57356]: warning:
 unknown[12.244.148.123]: SASL CRAM-MD5 authentication failed:
 PDI3NjU4MTE4NDExMTQzN0BtYWlsPg==

If the first session really got authenticated successfully (auth_debug
shows that too), then it's a Postfix configuration problem.