Re: [Dovecot] doveadm quota does not list all accounts

2011-12-15 Thread ml

Le 2011-12-15 23:00, Nikolaos Milas a écrit :

Hello,

I am running dovecot-2.0.13-1_128.el5 x86_64 RPM on CentOS 5.7.

All accounts are virtual, hosted on LDAP Server.

My problem is that the command:

   doveadm quota get -A

stopped listing all accounts. I think this problem started after I
changed in LDAP lookup configuration from "scope = subtree" to "scope
= onelevel", because it did not occur before (I did no other 
changes).


Now, the above command only lists 12 accounts. If I query for a
particular user:

   doveadm quota get -u userx

this works fine, but userx (and all users except those 12) is NOT
listed when trying to display all users.

How can I run the above command without problems again?

Thanks in advance,
Nick



upgrade to the latest rpm
i any problem with the last release
--
 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7
 gpg --keyserver pgp.mit.edu --recv-key 092164A7

 http://urlshort.eu fakessh @
 http://gplus.to/sshfake
 http://gplus.to/sshswilting
 http://gplus.to/john.swilting


Re: [Dovecot] DKIM Verification failures

2011-12-15 Thread Robert Schetterer
Am 15.12.2011 23:25, schrieb Nikolaos Milas:
> Hi,
> 
> -- This message refers to the maillist itself rather than to dovecot
> software --
> 
> I have noticed that when I post to this list (only), I get DKIM
> Verification failure reports from:
> 
> r...@moncton.sidefx.com  (e.g. for my last post: "DKIM failure report
> for job 4D27B5DC4E on mail.sidefx.com")
> r...@mail.rmacd.com (e.g. for my last post: "DKIM failure report for job
> B69B3187F1 on mail.rmacd.com")

> r...@mx0.roessner-net.de (e.g. for my last post: "DKIM failure report
> for job 6103B52092 on mx0.roessner-net.de")





whois roessner-net.de

and search the list archive for

roessner mail address, guess it will no problem to contact and debug

> 
> I have not had other DKIM failure reports from anywhere and I know that
> we should not have issues with it. An example from gmail:
> 
> Authentication-Results: mx.google.com; spf=pass (google.com: best guess
> record for domain of nmi...@noa.gr designates 195.251.204.235 as
> permitted sender) smtp.mail=nmi...@noa.gr; dkim=pass header.i=@noa.gr
> 
> So, whom should I contact to investigate this problem?
> 
> Thanks,
> Nick



[Dovecot] DKIM Verification failures

2011-12-15 Thread Nikolaos Milas

Hi,

-- This message refers to the maillist itself rather than to dovecot 
software --


I have noticed that when I post to this list (only), I get DKIM 
Verification failure reports from:


r...@moncton.sidefx.com  (e.g. for my last post: "DKIM failure report 
for job 4D27B5DC4E on mail.sidefx.com")
r...@mail.rmacd.com (e.g. for my last post: "DKIM failure report for job 
B69B3187F1 on mail.rmacd.com")
r...@mx0.roessner-net.de (e.g. for my last post: "DKIM failure report 
for job 6103B52092 on mx0.roessner-net.de")


I have not had other DKIM failure reports from anywhere and I know that 
we should not have issues with it. An example from gmail:


Authentication-Results: mx.google.com; spf=pass (google.com: best guess 
record for domain of nmi...@noa.gr designates 195.251.204.235 as 
permitted sender) smtp.mail=nmi...@noa.gr; dkim=pass header.i=@noa.gr


So, whom should I contact to investigate this problem?

Thanks,
Nick


[Dovecot] doveadm quota does not list all accounts

2011-12-15 Thread Nikolaos Milas

Hello,

I am running dovecot-2.0.13-1_128.el5 x86_64 RPM on CentOS 5.7.

All accounts are virtual, hosted on LDAP Server.

My problem is that the command:

   doveadm quota get -A

stopped listing all accounts. I think this problem started after I 
changed in LDAP lookup configuration from "scope = subtree" to "scope = 
onelevel", because it did not occur before (I did no other changes).


Now, the above command only lists 12 accounts. If I query for a 
particular user:


   doveadm quota get -u userx

this works fine, but userx (and all users except those 12) is NOT listed 
when trying to display all users.


How can I run the above command without problems again?

Thanks in advance,
Nick


[Dovecot] dsync panic

2011-12-15 Thread Jürgen Obermann

Hello,
when I try to convert from mbox to mdbox with dsync with one user it 
always panics:


# /opt/local/bin/dsync -v -u userxy backup ssh root@minerva1 
/opt/local/bin/dsync -v -u userxy

dsync-local(userxy): Info: Papierkorb: uidnext changed: 161 != 1
dsync-local(userxy): Info: INBOX: uidnext changed: 9139 != 9105
dsync-local(userxy): Info: Trash: uidnext changed: 3924 != 3915
dsync-local(userxy): Info: Drafts: uidnext changed: 1563 != 1
dsync-local(userxy): Info: Gesendet: uidnext changed: 369 != 1
dsync-local(userxy): Info: Sent: uidnext changed: 1955 != 1
dsync-remote(userxy): Panic: Trying to allocate 2147483648 bytes
dsync-remote(userxy): Error: Raw backtrace: 0xff14bc30 -> 0xff1658c0 -> 
0xff15744c -> 0xff157520 -> 0xff159d90 -> 0xff156540 -> 0xff15cf5c -> 
0xff156540 -> 0xff157100 -> 0xff16d158 -> 0xff16cfe8 -> 0xff26e350 -> 
0x251c4 -> 0x2547c -> 0x21110 -> 0x20494 -> 0x1f230 -> 0x1f3d4 -> 
0xff15e46c -> 0xff15f738 -> 0xff15e530 -> 0xff140ec8 -> 0x1525c -> 
0x14608

Abort
dsync-local(userxy): Error: read() from worker server failed: EOF
dsync-local(userxy): Error: Unexpected reply from server:

My local configuration is:
# /opt/local/bin/doveconf -n
# 2.0.16: /opt/local/etc/dovecot/dovecot.conf
# OS: SunOS 5.10 sun4v
auth_verbose = yes
disable_plaintext_auth = no
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = imap.hrz.uni-giessen.de localhost
mail_fsync = always
mail_location = mbox:~/Mail:INBOX=/var/mail/%u
mail_nfs_index = yes
mail_nfs_storage = yes
mail_plugins = mail_log notify zlib
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

mmap_disable = yes
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  hidden = yes
  list = no
  location =
  prefix = Mail/
  separator = /
  subscriptions = yes
  type = private
}
passdb {
  driver = pam
}
passdb {
  args = /opt/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  autocreate = Trash
  autocreate2 = caughtspam
  autocreate3 = Sent
  autocreate4 = Drafts
  autosubscribe = Trash
  autosubscribe2 = caughtspam
  autosubscribe3 = Sent
  autosubscribe4 = Drafts
  mail_log_events = delete undelete expunge copy mailbox_delete 
mailbox_rename

  mail_log_fields = uid box msgid size
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
postmaster_address = postmas...@hrz.uni-giessen.de
quota_full_tempfail = yes
sendmail_path = /usr/lib/sendmail
service auth {
  client_limit = 11120
}
service imap-login {
  process_min_avail = 16
  service_count = 0
  vsz_limit = 640 M
}
service imap {
  process_limit = 4096
  vsz_limit = 1 G
}
ssl_cert =   imap_client_workarounds = delay-newmail tb-extra-mailbox-sep 
tb-lsub-flags

  mail_max_userip_connections = 20
  mail_plugins = mail_log notify zlib autocreate imap_zlib
}
protocol lmtp {
  mail_plugins = mail_log notify zlib sieve
}
protocol pop3 {
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_uidl_format = %08Xv%08Xu
}

On the remote side the configuration is

# 2.0.16: /opt/local/etc/dovecot/dovecot.conf
# OS: SunOS 5.10 sun4u  zfs
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
disable_plaintext_auth = no
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = minerva1.hrz.uni-giessen.de
mail_debug = yes
mail_fsync = always
mail_location = mdbox:/sanpool/mail%h/mdbox
mail_nfs_index = yes
mail_nfs_storage = yes
mail_plugins = mail_log notify quota zlib
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

mdbox_rotate_interval = 1 days
mdbox_rotate_size = 16 M
mmap_disable = yes
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  hidden = yes
  list = no
  location =
  prefix = Mail/
  separator = /
  subscriptions = yes
  type = private
}
namespace {
  location = 
maildir:/var/mail/public:CONTROL=/sanpool/mail/%u/Maildir/public:INDEX=/sanpool/mail/%u/Maildir/public

  prefix = Public/
  separator = /
  subscriptions = no
  type = public
}
passdb {
  driver = pam
}
passdb {
  args = /opt/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  autocreate = Trash
  autocreate2 = caughtspam
  autocreate3 = Sent
  autocreate4 = Drafts
  autosubscribe = Trash
  autosubscribe2 = caughtspam
  autosubscribe3 = Sent
  autosubscribe4 = Drafts
  fts = squat
  mail_log_events = delete undelete expunge copy mailbox_delete 
mailbox_rename

  mail_log_fields = uid box msgid size
  quota = fs:Home-Verzeichnis:noenforcing
  zlib_save = gz
  zlib_save_level = 3
}
postmaster_address = postmas...@hrz.uni-giessen.de
quota_full_tempfail = yes
sen

Re: [Dovecot] Autosubscribe new folders

2011-12-15 Thread e-frog

Am 15.12.2011 16:46, schrieb Dennis Guhl:

On Thu, Dec 15, 2011 at 03:03:40PM +0100, For@ll wrote:

W dniu 14.12.2011 17:20, Dennis Guhl pisze:

On Wed, Dec 14, 2011 at 01:49:39PM +0100, For@ll wrote:

Hi,


[..]


It doesn't work. This is a part of config file about lda:
protocol lda {


[..]


lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
}
I have dovecot 1.2.15


This are directives from 2.0 which won't work with dovecot 1.2.

IIRC dovecot 1.2 can only automatically create and subscribe
administratively defined folders on first login.

Dennis


http://wiki1.dovecot.org/LDA#Parameters

Look for the -s switch

/e-frog


Re: [Dovecot] Autosubscribe new folders

2011-12-15 Thread Dennis Guhl
On Thu, Dec 15, 2011 at 03:03:40PM +0100, For@ll wrote:
> W dniu 14.12.2011 17:20, Dennis Guhl pisze:
> >On Wed, Dec 14, 2011 at 01:49:39PM +0100, For@ll wrote:
> >>Hi,

[..]

> It doesn't work. This is a part of config file about lda:
> protocol lda {

[..]

>lda_mailbox_autocreate = yes
>lda_mailbox_autosubscribe = yes
> }
> I have dovecot 1.2.15

This are directives from 2.0 which won't work with dovecot 1.2.

IIRC dovecot 1.2 can only automatically create and subscribe
administratively defined folders on first login.

Dennis
-- 
Dennis Guhl
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


Re: [Dovecot] Autosubscribe new folders

2011-12-15 Thread For@ll

W dniu 14.12.2011 17:20, Dennis Guhl pisze:

On Wed, Dec 14, 2011 at 01:49:39PM +0100, For@ll wrote:

Hi,


[..]


When I get a new message, in user folder is automaticly created
folder like subject but is not subscribed. What I must settings in
dovecot to automaticly subscribe folders to subscriptions files.?


Add

lda_mailbox_autosubscribe = yes

to 15-lda.conf (or wherever you defined lda_mailbox_autocreate = yes).

Dennis


It doesn't work. This is a part of config file about lda:
protocol lda {
log_path = /var/log/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = postmas...@i-bs.pl
mail_plugins = sieve
#  global_script_path = /home/vmail/globalsieverc
   lda_mailbox_autocreate = yes
   lda_mailbox_autosubscribe = yes
}
I have dovecot 1.2.15



Re: [Dovecot] dovecot-antispam: pipe backend with spamc failing to parse args

2011-12-15 Thread Tom Hendrikx
On 15/12/11 01:37, Micah Anderson wrote:
> 
> I'm trying to get the pipe backend to work with the new
> dovecot-antispam (I was very pleased to see the new version, thanks
> Johannes!)
> 

> antispam_pipe_program_spam_arg = -L spam
> antispam_pipe_program_notspam_arg = -L ham
> antispam_pipe_program = /usr/bin/spamc
> antispam_pipe_program_args = -d 10.0.1.109
> 
> Now, when I move a message to Spam, dovecot-antispam detects it and
> attempts to run, but it fails:
> 
> Dec 14 16:22:45 grosbeak [username 10.0.1.74 uid]: antispam: run program
> failed with exit code 64
> 
> Exit code 64 is spamc's exit code for "command line usage error" - but I
> can't see exactly the command that is being constructed by
> dovecot-antispam to know where the error is.

I use dspam as backend, but multiple args need to be specified separated
by semicolons (';') if spaces aare needed on the original commandline. i.e.:

antispam_pipe_program_spam_arg = -L;spam
antispam_pipe_program_notspam_arg = -L;ham
antispam_pipe_program = /usr/bin/spamc
antispam_pipe_program_args = -d;10.0.1.109

Note that this is the fork from Eugene as documented on the wiki, which
is based on the same code. Did I miss the announcement from Johannes
somewhere?:)

-- 
Regards,
Tom


[Dovecot] Quota PostgreSQL INSERT trigger

2011-12-15 Thread Adis Nezirovic
Wiki instructions for creating insert trigger for PostgreSQL are wrong
  http://wiki.dovecot.org/Quota/Dict

Calling INSERT on the table from within BEFORE INSERT trigger creates
cascading trigger.

http://www.postgresql.org/docs/current/interactive/trigger-definition.html


Instead, one should return NEW record from the trigger, and it will be
inserted after trigger execution.

---
CREATE OR REPLACE FUNCTION merge_quota2() RETURNS TRIGGER AS $$
BEGIN
  IF NEW.messages < 0 OR NEW.messages IS NULL THEN
-- ugly kludge: we came here from this function, really do try to insert
IF NEW.messages IS NULL THEN
  NEW.messages = 0;
ELSE
  NEW.messages = -NEW.messages;
END IF;
return NEW;
  END IF;

  LOOP
UPDATE quota2 SET bytes = bytes + NEW.bytes,
  messages = messages + NEW.messages
  WHERE username = NEW.username;
IF found THEN
  RETURN NULL;
END IF;

BEGIN
  IF NEW.messages = 0 THEN
RETURN NEW;
  ELSE
NEW.messages = - NEW.messages;
RETURN NEW;
  END IF;
EXCEPTION WHEN unique_violation THEN
  -- someone just inserted the record, update it
END;
  END LOOP;
END;
$$ LANGUAGE plpgsql;

DROP TRIGGER IF EXISTS mergequota2 ON quota2;
CREATE TRIGGER mergequota2 BEFORE INSERT ON quota2
   FOR EACH ROW EXECUTE PROCEDURE merge_quota2();
---


Best regards,
Adis