[Dovecot] deliver does not update maildirsize

2009-06-23 Thread ftriboix
Hello,

I have installed postfix 2.5.1 + dovecot 1.0.13 + MySQL and it all works
perfectly. I use deliver as the local delivery agent and use IMAP only
with maildir mailboxes. I am using virtual mailboxes.

Now I wanted to introduce quotas, but I can't manage to make them work.
Quota information is retreived from MySQL in userdb requests.

I have noticed that the maildirsize file is not updated by deliver when
a new mail comes in. I don't know if this is correct or not...
It is updated though when I log in. But even then mails are still
received without any kind of problem while the mailbox is well over
the quota.

I tried to add a -v option to deliver in postfix's master.cf to debug
deliver, but it apparently does not like this option.

Please find below my postfix and dovecot's configurations. Thank you very
much for any help.

NB: I removed some sensitive configuration option for this email
NB2: The user in question has a quota of 1MB




# postconf -n
alias_maps = mysql:/etc/postfix-2.5.1/mysql-localalias.cf
append_at_myorigin = no
append_dot_mydomain = no
biff = no
command_directory = /usr/local/postfix-2.5.1/sbin
config_directory = /etc/postfix-2.5.1
daemon_directory = /usr/local/postfix-2.5.1/libexec
data_directory = /var/postfix-2.5.1/data
debug_peer_level = 2
html_directory = /usr/local/postfix-2.5.1/doc/html
mail_owner = lpostfix
mail_spool_directory = /var/mail
mailq_path = /usr/local/postfix-2.5.1/bin/mailq
manpage_directory = /usr/local/postfix-2.5.1/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = MyHostingDomain
myhostname = MyMachine.MyHostingDomain
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/local/postfix-2.5.1/bin/newaliases
queue_directory = /var/postfix-2.5.1
readme_directory = /usr/local/postfix-2.5.1/doc/text
relay_domains =
relayhost = [MyRelayHost]
sample_directory = /etc/postfix-2.5.1
sendmail_path = /usr/sbin/sendmail
setgid_group = lpostdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix-2.5.1/tmp-sasl-pwd
smtp_sasl_security_options = noanonymous
smtpd_recipient_restrictions =
permit_mynetworks,  permit_sasl_authenticated,  
reject_non_fqdn_hostname,   reject_non_fqdn_sender, 
reject_non_fqdn_recipient,  reject_unauth_destination,  
reject_unauth_pipelining,   reject_invalid_hostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth.dovecot
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
syslog_facility = local0
unknown_local_recipient_reject_code = 550
virtual_alias_maps =
mysql:/etc/postfix-2.5.1/mysql-alias.cf,mysql:/etc/postfix-2.5.1/mysql-global-alias.cf,mysql:/etc/postfix-2.5.1/mysql-email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_domains = mysql:/etc/postfix-2.5.1/mysql-domain.cf
virtual_mailbox_maps = mysql:/etc/postfix-2.5.1/mysql-mailbox.cf
virtual_transport = dovecot
virtual_uid_maps = static:5000


# cat master.cf
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: man 5 master).
#
# Do not forget to execute postfix reload after editing this file.
#
# ==
# service type  private unpriv  chroot  wakeup  maxproc command + args
#   (yes)   (yes)   (yes)   (never) (100)
# ==
smtp  inet  n   -   n   -   -   smtpd
#submission inet n   -   n   -   -   smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps inet  n   -   n   -   -   smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628  inet  n   -   n   -   -   qmqpd
pickupfifo  n   -   n   60  1   pickup
cleanup   unix  n   -   n   -   0   cleanup
qmgr  fifo  n   -   n   300 1   qmgr
#qmgr fifo  n   -   n   300 1   oqmgr
tlsmgrunix  -   -   n   1000?   1   tlsmgr
rewrite   unix  -   -   n   -   -   trivial-rewrite
bounceunix  -   -   n   -   0   bounce
defer unix  -   -   n   -   0   bounce
trace unix  -   -   n   -   0   bounce
verifyunix  -   -   n   -   1   verify
flush unix  n   -   n   1000?   0   flush
proxymap  unix  -   -   n   -   -   proxymap
proxywrite unix -   -   n   -   1   proxymap
smtp  unix  -   -   n   -   -   smtp
# When relaying 

Re: [Dovecot] deliver does not update maildirsize

2009-06-23 Thread Charles Marcus
On 6/23/2009, ftrib...@falcon-one.com (ftrib...@falcon-one.com) wrote:
 I have installed postfix 2.5.1 + dovecot 1.0.13 + MySQL and it all works
 perfectly. I use deliver as the local delivery agent and use IMAP only
 with maildir mailboxes. I am using virtual mailboxes.
 
 Now I wanted to introduce quotas, but I can't manage to make them work.
 Quota information is retreived from MySQL in userdb requests.

I think quota support is much improved in 1.1.x, so you might seriously
consider upgrading before spending much time on it...

-- 

Best regards,

Charles


[Dovecot] dovecot-antispam problem with sa-learn

2009-06-23 Thread maxlosb...@tiscali.it
Hi all,
I just set up a dovecot+postfix+roundcubemail+spamassassin 
system with virtual users. These applications work fine, I have a 
problem with the dovecot-antispam plugin.

Dovecot is compiled from 
tarball, version 1.1.16, the plugin is version 1.2.

The problem is 
that when I move messages from or to Posta indesiderata, which is in 
antispam_spam list, nothing happens. I have no logs about sa-learn 
activity in /var/log/maillog, nor in /var/log messages, no matter if I 
set DEBUG=syslog or DEBUG=stderr.

Here are my confs:

dovecot-antispam 
.config
BACKEND=mailtrain
USER=root
GROUP=root
DEBUG=syslog

DEBUG_VERBOSE=5
PLUGINNAME=antispam

dovecot -n
# 1.1.16: 
/usr/local/etc/dovecot.conf
# OS: Linux 2.6.18-sblob i686 CentOS 
release 5.2 (Final) simfs
protocols: imap pop3
ssl_disable: yes

disable_plaintext_auth: no
login_dir: /usr/local/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

last_valid_uid: 500
first_valid_gid: 500
last_valid_gid: 500

mail_location: maildir:/var/virtual/%d/%n/Posta
mail_debug: yes

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): 
listescape antispam
mail_plugins(imap): listescape antispam
mail_plugins
(pop3): 
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
namespace:
  type: private
  
separator: /
  inbox: yes
  list: yes
  subscriptions: yes
auth 
default:
  passdb:
driver: sql
args: /etc/dovecot-sql.conf
  
userdb:
driver: static
args: uid=500 gid=500 home=/var/virtual/%
d/%u
plugin:
  antispam_trash: trash;Trash;Deleted Items;Cestino;
  
antispam_spam: Spam;Posta indesiderata;.Posta indesiderata;SPAM;.SPAM
  
antispam_mail_sendmail: /usr/bin/sa-learn
  antispam_mail_spam: --spam

  antispam_mail_notspam: --ham
  antispam_mail_tmpdir: /tmp


Thanks in 
advance

Max


Non rinunciare ai tuoi ricordi...Tiscali Photo affronta la crisi con 
incredibili offerte





http://photo.tiscali.it


Re: [Dovecot] A X-Mailbox header?

2009-06-23 Thread Alessandro Ranellucci

On 22-06-2009 at 20:06, Timo Sirainen wrote:

 So the somewhat easy to implement possibilities require the X-Mailbox:
 header to exists always for non-virtual mailboxes too. You 
can either
 implement code that actually saves it to the maildir files, 
or you can

 write a plugin that overrides mail_get_stream() and adds the header,
 similar to how zlib plugin works.

Nice! The zlib plugin seems a good start.

I guess I'll have to override just storage-v.mailbox_open and 
then mail-v.get_stream. Within get_stream() it seems that the 
mailbox name to put in my X-Mailbox: header is available as 
_mail-box-name. Am I right?


Thank you again!

- alessandro.


[Dovecot] strange quota behaviour with dovecot 1.1.7

2009-06-23 Thread listacc
Hello!

I´m running dovecot 1.1.7 (which is the most recent binary of openSuSE 11.1 
repository) with Postfix, MySQL and Postfixadmin.

Now I´m trying for some days to get quota working, but I get some strange 
behaviour and I was not yet able to figure out where the error in my 
configuration is.

Quota information is inserted by postfixadmin into a MySQL database. It seems 
that dovecot is reading this information correctly - when  a mailbox is filled 
up and gets over-quota, further emails are rejected.

But then, if I want to increase the quota for this filled-up mailbox in 
postfixadmin, postfixadmin correctly changes the quota information in MySQL 
table. 

After growing quota, mails to the account are accepted again. But my 
Thunderbird with Quota plugin continues showing the old quota setting. When 
more mails are sent to this account, it shows a quota  100%.

If I look into the mailboxsize file of this account, it still shows the old 
quota value before I raised it. If I delete the entry in mailboxsize, dovecot 
writes the old value in again.

Seems that dovecot isn´t looking in the MySQL table (but it did after creating 
the account). But why are mails accepted again if dovecot is not recognizing 
the raised quota??

If I try now, as a user, to delete mails from the overfilled Inbox, it is 
denied with a quota exceeded message. But I´m able to send further mails to 
this account. The only way to get the account working properly again is to 
delete the messages directly on the server´s filesystem. 

I´m very grateful for every hint!

regards,

  Andreas



-

dovecot -n:

# 1.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.27.23-0.1-default x86_64 openSUSE 11.1 (x86_64) ext3
base_dir: /drbd/mail/var/run/dovecot/
log_path: /var/log/dovecot.err
info_log_path: /var/log/dovecot.info
protocols: imaps managesieve
listen(default): *
listen(imap): *
listen(managesieve): 192.168.1.8:2000
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(managesieve): 
ssl_cert_file: /etc/ssl/certs/imap.domain.crt
ssl_key_file: /etc/ssl/private/imap.domain.key
verbose_ssl: yes
login_dir: /drbd/mail/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
max_mail_processes: 2000
mail_max_userip_connections(default): 30
mail_max_userip_connections(imap): 30
mail_max_userip_connections(managesieve): 10
first_valid_uid: 5001
last_valid_uid: 5001
mail_location: maildir:/drbd/mail/vmail/%d/%n
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_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(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_implementation_string(default): dovecot
managesieve_implementation_string(imap): dovecot
managesieve_implementation_string(managesieve): Cyrus timsieved v2.2.13
sieve_storage(default): 
sieve_storage(imap): 
sieve_storage(managesieve): /drbd/mail/vmail/%d/%n/sieve
sieve(default): 
sieve(imap): 
sieve(managesieve): /drbd/mail/vmail/%d/%n/dovecot.sieve
auth default:
  mechanisms: plain login cram-md5
  user: nobody
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: pam
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: passwd
  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: /drbd/mail/vmail/%d/%n/dovecot.sieve
  quota: maildir


---
dovecot-sql.conf:

(...)
password_query = SELECT username AS user, password, '/drbd/mail/vmail/%d/%n' AS 
userdb_home, 'maildir:/drbd/mail/vmail/%d/%n' AS userdb_mail, 5001 AS 
userdb_uid, 5001 AS userdb_gid FROM mailbox WHERE username = '%u' AND active = 
'1'
(...)
user_query = SELECT '/drbd/mail/vmail/%d/%n' AS home, 
'maildir:/drbd/mail/vmail/%d/%n' AS mail, 5001 AS uid, 5001 AS gid, 
concat('*:storage=', quota, 'B') AS quota_rule FROM mailbox WHERE username = 
'%u' AND active = '1'


---

mysql select quota from mailbox;
+---+
| quota |
+---+
| 51200 | 
| 51200 | 
| 51200 | 
| 51200 | 
| 51200 | 
| 51200 | 
| 51200 | 
| 51200 | 
| 51200 | 
|  3072 | 
|  3072 | 
+---+
11 rows in set (0.00 sec)

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


Re: [Dovecot] Dovecot failing to start

2009-06-23 Thread dovecot

At 11:26 AM 6/22/2009, Pascal Volk wrote:

On 06/22/2009 02:49 PM dove...@corwyn.net wrote:
 So I rebooted my mail server, and now dovecot fails to start with:
 Stopping Dovecot Imap: [FAILED]
 Starting Dovecot Imap: Fatal: listen(::, 143) failed: Address 
already in use

 [FAILED]

What is listening on port 143? aka: netstat -tlnp | grep ':143 '



Nothing was listening on 143. The problem was that the default 
configuration of dovecot is for listening for ipv4 and ipv6. We had 
previously disabled ipv4 on the NIC and in the kernel, but not 
reloaded the settings in modprob.conf.


When we rebooted the server, ipv6 was therefore GONE. dovecot was 
trying to listed on 143 on both ipv4 and ipv6, not finding ipv6 and 
not starting.


adding listen = *  to dovecot.conf (so that it only listens for 
ipv4) resovled the problem.


Rick





Regards,
Pascal
--
The trapper recommends today: 5e1f1e55.0917...@localdomain.org






Re: [Dovecot] POP3 flag updates

2009-06-23 Thread pod
Timo Sirainen t...@iki.fi writes:

 Why does Dovecot add \Seen flag for mails that have been RETRed? Does
 anyone really want to use this feature? I can't remember why I
 implemented it originally, perhaps it was just because other servers  do
 that too. I'm thinking about at least changing  pop3_no_flag_updates=yes
 to be default.

Doesn't it just keep things looking consistent for a user if they happen
to be using both a POP3 client and an IMAP client?

Sound implausible?  Say for normal use they have a desktop configured that
does POP3 (but doesn't DELE after RETR, obviously) but they are away from
the desk and use a Web to Mail gateway which happens to be an IMAP client.
It is presumably considered a nice feature that messages they last POPped
show up as \Seen in the web interface and consequently stuff that has
arrived since shows up as not \Seen.  Maybe.


[Dovecot] [PATCH] allow disabling libcap support although it's installed

2009-06-23 Thread Daniel Mierswa
see subject :)
patch is in hg export format

-- 
Mierswa, Daniel

If you still don't like it, that's ok: that's why I'm boss. I simply
know better than you do.
   --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22
# HG changeset patch
# User Daniel Mierswa impu...@impulze.org
# Date 1245757676 -7200
# Branch HEAD
# Node ID 343390a32894c654c8646650eba2cf130ca480d2
# Parent  d77225a6412873528b3c94abe8268436df5dbe82
do not automagically depend on libcap if it's installed

diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -196,6 +196,11 @@
   TEST_WITH(bzlib, $withval),
   want_bzlib=auto)
 
+AC_ARG_WITH(libcap,
+[  --with-libcap   Build with libcap support (Dropping capabilities).],
+  TEST_WITH(libcap, $withval),
+  want_libcap=auto)
+
 AC_ARG_WITH(ssl,
 [  --with-ssl=gnutls|openssl Build with GNUTLS or OpenSSL (default)],
if test x$withval = xno; then
@@ -358,11 +363,13 @@
   AC_DEFINE(HAVE_FDATASYNC,, Define if you have fdatasync())
 ])
 
-AC_CHECK_LIB(cap, cap_init, [
-  AC_DEFINE(HAVE_LIBCAP,, libcap is installed for cap_init())
-  LIBCAP=-lcap
-])
-AC_SUBST(LIBCAP)
+if test $want_libcap != no; then
+  AC_CHECK_LIB(cap, cap_init, [
+AC_DEFINE(HAVE_LIBCAP,, libcap is installed for cap_init())
+LIBCAP=-lcap
+  ])
+  AC_SUBST(LIBCAP)
+fi
 
 AC_DEFINE(PACKAGE_WEBPAGE, http://www.dovecot.org/;, Support URL)
 


signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] A X-Mailbox header?

2009-06-23 Thread Timo Sirainen

On Jun 23, 2009, at 10:25 AM, Alessandro Ranellucci wrote:


Nice! The zlib plugin seems a good start.

I guess I'll have to override just storage-v.mailbox_open and then  
mail-v.get_stream. Within get_stream() it seems that the mailbox  
name to put in my X-Mailbox: header is available as _mail-box- 
name. Am I right?


Sounds right.



Re: [Dovecot] Managesieve fails to retrieve scripts 8kB on Dovecot 1.1.16

2009-06-23 Thread Stephan Bosch

John Marshall wrote:


   -- snip: 169 lines removed --
  # This is a sieve script file fuNO Unknown error

There's our problem. There's only one location in the sources where this 
most informative error can occur :) . Apparently, Timo has fixed an old 
bug in the Dovecot stream implementation. This bugfix triggers a problem 
in ManageSieve that uses an older section of code of the imap daemon. 
Timo provided the solution and I've committed the fix:


http://hg.rename-it.nl/dovecot-1.1-managesieve/rev/75c9769339b8

Please apply this to your managesieve source and check whether the 
problem is gone. I'll make a new release when all is ok.


Regards,

Stephan.


Re: [Dovecot] tcp_wrappers

2009-06-23 Thread Edgar Fuß

http://dovecot.org/patches/1.1/tcp-wrappers.patch should work.
I'll attach an updated version for 1.2. Remember to run auto 
{conf,header,make} after applying.


tcp-wrappers.patch
Description: Binary data


Re: [Dovecot] tcp_wrappers

2009-06-23 Thread Kenneth Porter
On Tuesday, June 23, 2009 8:09 PM +0200 Edgar Fuß e...@math.uni-bonn.de 
wrote:



http://dovecot.org/patches/1.1/tcp-wrappers.patch should work.

I'll attach an updated version for 1.2. Remember to run
auto{conf,header,make} after applying.


Typo here (missing p):

+   i_fatal(Tried to use TCP wrapers with 
process_per_connection=no);




[Dovecot] Asked about Dovecot Logging

2009-06-23 Thread Jose Luis Marin Perez







Dear Sirs, 

 I was able to migrate successfully from Courier-Imap to Dovecot, Timo I 
appreciate your help. 

 I have notices that the file /var/log/dovecot.log shows the following: 

dovecot: Jun 23 15:04:05 Info: imap-login: Login: user=dtoledo, method=PLAIN, 
rip=172.16.10.15, lip=172.16.10.19
dovecot: Jun 23 15:04:06 Info: imap-login: Login: user=abonilla, 
method=PLAIN, rip=172.16.10.14, lip=172.16.10.19
dovecot: Jun 23 15:04:06 Info: IMAP(abonilla): Disconnected: Logged out 
bytes=59/566
dovecot: Jun 23 15:04:06 Info: imap-login: Login: user=slopez, method=PLAIN, 
rip=172.16.10.14, lip=172.16.10.19
dovecot: Jun 23 15:04:06 Info: IMAP(slopez): Disconnected: Logged out 
bytes=59/567
dovecot: Jun 23 15:04:06 Info: IMAP(dtoledo): Disconnected: Logged out 
bytes=1252/34481
dovecot: Jun 23 15:04:07 Info: imap-login: Login: user=slopez, method=PLAIN, 
rip=172.16.10.14, lip=172.16.10.19
dovecot: Jun 23 15:04:07 Info: IMAP(slopez): Disconnected: Logged out 
bytes=59/567
dovecot: Jun 23 15:04:07 Info: IMAP(framirez): Disconnected: Logged out 
bytes=1252/34041
dovecot: Jun 23 15:04:08 Info: imap-login: Login: user=mgomez, method=PLAIN, 
rip=172.16.10.14, lip=172.16.10.19
dovecot: Jun 23 15:04:10 Info: IMAP(mgomez): Disconnected: Logged out 
bytes=1805/66570
dovecot: Jun 23 15:04:13 Info: imap-login: Login: user=curibe, method=PLAIN, 
rip=172.16.10.14, lip=172.16.10.19
dovecot: Jun 23 15:04:15 Info: IMAP(curibe): Disconnected: Logged out 
bytes=749/351591

Given that there are several domains hosted on the server, how can I
configure Dovecot to the log file shows the full user name.

Example:

user=us...@dominio1.com
user=us...@dominio2.com

Thanks

Jose Luis

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us

[Dovecot] Capability COMPRESS implemented?

2009-06-23 Thread Ed W

Hi, I just read that
http://tools.ietf.org/html/rfc4978

..is being implemented in Thunderbird 3.  This is great news!

It's been a long time since we last discussed this and I don't think 
it's currently implemented in Dovecot, but since Cyrus just added it, 
any chance of getting support in Dovecot please?  (Fastmail seems to be 
supporting this effort)


On a similar note we had a previous thread about supporting TLS deflate 
- any chance you could investigate this again and add support on the 
Dovecot side so at least it would be feasible to submit a bug fix on the 
Thunderbird side?  (It looked like a one liner change back when we last 
discussed it?)



Thanks

Ed W

(Obviously for those looking for an external high performance compressor 
you can use our compressing email proxy from http://www.mailasail.com ...)


Re: [Dovecot] Capability COMPRESS implemented?

2009-06-23 Thread Ed W

Ed W wrote:

Hi, I just read that
http://tools.ietf.org/html/rfc4978

..is being implemented in Thunderbird 3.  This is great news!


Oh, also looks like CONDSTORE made it to TB3

Wohoo for open standards!  (Thanks Timo)

Ed W


Re: [Dovecot] Asked about Dovecot Logging

2009-06-23 Thread Timo Sirainen
On Tue, 2009-06-23 at 15:04 -0500, Jose Luis Marin Perez wrote:
 Given that there are several domains hosted on the server, how can I
 configure Dovecot to the log file shows the full user name.

It does that. Which means the domain is dropped by your passdb or userdb
lookup. Post your dovecot -n output and other passdb/userdb
configuration files you may have?



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Asked about Dovecot Logging

2009-06-23 Thread Jose Luis Marin Perez

Dear Timo,

Thanks for your reply

It's my dovecot -n output:

# 1.1.16: /usr/local/etc/dovecot.conf
# OS: Linux 2.6.9-78.0.22.ELsmp i686 CentOS release 4.7 (Final)
log_path: /var/log/dovecot.log
protocols: imap
listen: *:10143
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /usr/local/var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
first_valid_uid: 89
last_valid_uid: 89
first_valid_gid: 89
last_valid_gid: 89
mail_uid: 89
mail_gid: 89
mail_location: maildir:~/Maildir
namespace:
  type: private
  separator: .
  prefix: INBOX.
  inbox: yes
  list: yes
  subscriptions: yes
auth default:
  passdb:
driver: checkpassword
args: /usr/vpopmail/bin/vchkpw
  userdb:
driver: prefetch
args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u

Thanks

Jose Luis

 From: t...@iki.fi
 To: jolumape...@hotmail.com
 Date: Tue, 23 Jun 2009 18:08:54 -0400
 CC: dovecot@dovecot.org
 Subject: Re: [Dovecot] Asked about Dovecot Logging
 
 On Tue, 2009-06-23 at 15:04 -0500, Jose Luis Marin Perez wrote:
  Given that there are several domains hosted on the server, how can I
  configure Dovecot to the log file shows the full user name.
 
 It does that. Which means the domain is dropped by your passdb or userdb
 lookup. Post your dovecot -n output and other passdb/userdb
 configuration files you may have?
 

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us

Re: [Dovecot] Asked about Dovecot Logging

2009-06-23 Thread Timo Sirainen
On Tue, 2009-06-23 at 17:16 -0500, Jose Luis Marin Perez wrote:
   passdb:
 driver: checkpassword
 args: /usr/vpopmail/bin/vchkpw

It's vchkpw. You could work around it with something like:

args = /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh

and the vchkpw-wrapper.sh would contain:

#!/bin/sh

unset USER
exec $*

Hmm. Can you check if vchkpw returns the domain in some environment
variable (temporarily add set  /tmp/log to the wrapper script)? If it
does, I could change Dovecot to use it and this wrapper wouldn't be
necessary.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Asked about Dovecot Logging

2009-06-23 Thread Jose Luis Marin Perez

Dear Timo, 

Thanks for your response I will use the script you mention.


I have another query in the dovecot -n output displays a parameter which I have 
doubts: 

args: uid = 89 gid = 89 home = /usr/vpopmail/domains/%d/%u 

Some accounts created through vpopmail are in the directory:

 

/usr/vpopmail/domains/example.com/0/user10 

/usr/vpopmail/domains/example.com/1/user20 

 

there is a problem with this configuration because accounts are created in a 
subdirectory 0 or 1 within the domain example.com? 
 

Thanks

 

Jose Luis
 
 Subject: Re: [Dovecot] Asked about Dovecot Logging
 From: t...@iki.fi
 To: jolumape...@hotmail.com
 CC: dovecot@dovecot.org
 Date: Tue, 23 Jun 2009 18:39:20 -0400
 
 On Tue, 2009-06-23 at 17:16 -0500, Jose Luis Marin Perez wrote:
  passdb:
  driver: checkpassword
  args: /usr/vpopmail/bin/vchkpw
 
 It's vchkpw. You could work around it with something like:
 
 args = /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh
 
 and the vchkpw-wrapper.sh would contain:
 
 #!/bin/sh
 
 unset USER
 exec $*
 
 Hmm. Can you check if vchkpw returns the domain in some environment
 variable (temporarily add set  /tmp/log to the wrapper script)? If it
 does, I could change Dovecot to use it and this wrapper wouldn't be
 necessary.
 

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us

Re: [Dovecot] Asked about Dovecot Logging

2009-06-23 Thread Timo Sirainen

On Jun 24, 2009, at 1:23 AM, Jose Luis Marin Perez wrote:

I have another query in the dovecot -n output displays a parameter  
which I have doubts:


args: uid = 89 gid = 89 home = /usr/vpopmail/domains/%d/%u


You should be using userdb prefetch, not userdb static.



Re: [Dovecot] Capability COMPRESS implemented?

2009-06-23 Thread Nikolay Shopik

On 24.06.2009 2:00, Ed W wrote:

Hi, I just read that
http://tools.ietf.org/html/rfc4978

..is being implemented in Thunderbird 3. This is great news!

It's been a long time since we last discussed this and I don't think
it's currently implemented in Dovecot, but since Cyrus just added it,
any chance of getting support in Dovecot please? (Fastmail seems to be
supporting this effort)

On a similar note we had a previous thread about supporting TLS deflate
- any chance you could investigate this again and add support on the
Dovecot side so at least it would be feasible to submit a bug fix on the
Thunderbird side? (It looked like a one liner change back when we last
discussed it?)


Thanks

Ed W

(Obviously for those looking for an external high performance compressor
you can use our compressing email proxy from http://www.mailasail.com ...)

To make it easy for people search which standards TB is supported I've 
keep updated wiki page.

https://wiki.mozilla.org/MailNews:Supported_IMAP_extensions