Re: [Dovecot] passwd userbase and multiple email adresses

2011-02-14 Thread spamvoll
do i have to use the virtual_alias_maps for that ?

t...@example.com test
i...@example.com test
...

?


2011/2/15  :
> Hi..
>
> i want to use a passwd file for user configuration.. but how can i add
> emailadresses(multiple) to those users ?
> postfix -> dovecot
>
> passwd looks like:
> test:{PLAIN}pass
>
> there must be some kind of userdb right ? But i cant find any infos
> about that on the wiki
>
> Hans
>


[Dovecot] passwd userbase and multiple email adresses

2011-02-14 Thread spamvoll
Hi..

i want to use a passwd file for user configuration.. but how can i add
emailadresses(multiple) to those users ?
postfix -> dovecot

passwd looks like:
test:{PLAIN}pass

there must be some kind of userdb right ? But i cant find any infos
about that on the wiki

Hans


Re: [Dovecot] FreeBSD tuning for a dovecot + postfix server ?

2011-02-14 Thread mouss
Le 14/02/2011 11:08, Frank Bonnet a écrit :
> Hello
> 
> I've googled around  to tune a bit my mailhub ( AMD64 FreeBSD 8.1, 12 Gb
> RAM,

I guess you mean 12 Go (or 12 GB) ;-p

> 2 Tb raid5 disks , ~4000 mailboxes unix users )
> but I am a bit confused,
> 
> All my clients use thunderbird as MUA ( IMAP, IMAPS ) to connect to the
> mailhub
> no direct access to the machine.
> 
> Any of you guys has some pointer to give ?

the answer is: when tuning is needed, you will know it: you will have
concrete problems.

if you observe no problem, tune your week-end instead. as the saying
goes: "premature optimisation is the root of all evil".





Re: [Dovecot] Sendmail and Dovecot deliver (dovecot-lda)

2011-02-14 Thread Andrzej Adam Filip
Giles Coochey  wrote:
> Hi,
>
> I have a Centos 5 system with sendmail running as my MTA.
>
> Normally I note from sendmail logs that mails get delivered using the
> local' mailer.
>
> I have therefore entered the following into my sendmail.mc file, from
> an earlier post on this list:
>
> define(`LOCAL_MAILER_PATH',`/usr/libexec/dovecot/deliver')
> define(`LOCAL_MAILER_FLAGS',`DFMPhfnu9')
> define(`LOCAL_MAILER_ARGS',`deliver -d $u')
>
> However, when sendmail tries to use deliver I just get this message:
>
> Feb 13 15:37:23 gate sendmail[1399]: p1DEWtc2021995:
> to=, delay=00:04:28, xdelay=00:00:00, mailer=local,
> pri=121665, dsn=4.0.0, stat=Deferred: local mailer
> (/usr/libexec/dovecot/deliver) exited with EX_TEMPFAIL
>
> I've tried to get better logging by putting the following in
> 15-lda.conf in /etc/dovecot/conf.d:
>
> protocol lda {
>   postmaster_address = postmas...@example.org
>   auth_socket_path = /var/run/dovecot/auth-master
>   mail_plugins = sieve
>   mail_location = maildir:~/.maildir
>   log_path = /var/log/dovecot-deliver.log
>   info_log_path = /var/log/dovecot-deliver.log
> }
>
> I find nothing gets written to the log file, even if I make it a world
> writable file.
>
> Does anyone have any ideas? What are the best steps to get more
> information troubleshooting?

Try procmail_local recipe at http://wiki.dovecot.org/LDA/Sendmail
[ IMHO third line is not necessary ]

FEATURE(`local_procmail', 
`/usr/local/libexec/dovecot/deliver',`/usr/local/libexec/dovecot/deliver -d $u')
MODIFY_MAILER_FLAGS(`LOCAL', `-f')

-- 
[pl>en: Andrew] Andrzej Adam Filip : a...@onet.eu
O imitators, you slavish herd!
  -- Quintus Horatius Flaccus (Horace)


Re: [Dovecot] NoSQL Storage Backend

2011-02-14 Thread Marc Perkel
The way I do MySQL backups is that I do a slave on another server. When 
I need to backup I stop the slave - back it up - then start it again.


On 2/8/2011 12:56 PM, Robert Brockway wrote:

On Tue, 8 Feb 2011, Marten Lehmann wrote:

The problem with traditional filesystems is, that they are very 
limited. You cannot easily extend it, even with RAID 10 all messages 
may be lost due to a RAID controller failure and just-in-time backups 
of a heavy loaded system with consistently changing messages folders 
are virtually impossible.


Hi Marten.  There are many options that allow you to snapshop an 
active filesystem and guarantee a consistent backup.  Eg LVM on Linux 
or many other OSes. WAFL on a NetApp, etc.


In my experience a lot of high end mail systems store mail on the 
filesystem in Maildir format.


Modern object stores like Scality, CouchDB or MongoDB can be very 
handy, as they easily allow to keep an arbitrary amount of copies of 
each message on


This is certainly an interesting idea.

different servers, you can simply add a storage node and new storage 
is immediately available and mailboxes aren't bound to a certain 
server any longer, but messages are evenly distributed across all 
storage nodes, thus distributing load as well.


Being able to easily rebalance load would be useful.  I've known of 
several well known companies with a lot of mail users where mail was 
stored on filesystems across many systems and significant imbalances 
developed over time.  There was no easy way to rebalance them without 
causing an outage for at least some users.


Isn't this option of big interest for every bigger mailbox provider? 
How hard would it be to develop? Would it be possible to get this 
developed on a paid basis by the dovecot core team?


In my experience OSS developers are quite open to being paid to add 
features :)


Cheers,

Rob



[Dovecot] TLS with autosigned certs

2011-02-14 Thread Antonio Perez-Aranda
Is normal this info/error with autosigned certs?

Feb 14 20:25:47 pop3-login: Info: Disconnected (no auth
attempts):ip=[127.0.0.1], port=[51243], protocol=pop3, TLS
handshaking: SSL_accept() failed: error:14094418:SSL
routines:SSL3_READ_BYTES:tlsv1 alert unknown ca: SSL alert number 48

I set on config a specific certs for pop3 protocol including key, cert and ca,

protocol pop3 {
  ssl_cert = http://www.yaco.es/
C/ Rioja 5, 41001 Sevilla
Teléfono +34 954 50 00 57
Fax      +34 954 50 09 29


Re: [Dovecot] Search failure

2011-02-14 Thread Daniel L. Miller

On 2/14/2011 2:29 AM, Timo Sirainen wrote:

On Sun, 2011-02-13 at 21:15 -0800, Daniel L. Miller wrote:

doveadm search -u dmil...@amfes.com text xyzxyz
doveadm(dmil...@amfes.com): Panic: file istream-limit.c: line 79
(i_stream_limit_seek): assertion failed: (v_offset<= lstream->v_size)

Can you reproduce this?



Yup.  Every time I run it against one of the mailboxes that reports an 
error with attachment size.


Running against one of my mailboxes that is clean gives no error - but I 
don't see fts indexes being generated.  I have included fts and 
fts_squat in imap plugins and have fts_squat listed in plugins.


--
Daniel


Re: [Dovecot] Dsync parallel conversion warning

2011-02-14 Thread Frank Bonnet

On 02/14/2011 03:04 PM, Timo Sirainen wrote:

On 14.2.2011, at 14.52, Frank Bonnet wrote:


(): Warning: Transaction log file
/user//mail/.imap/INBOX/dovecot.index.log was locked for xxx seconds

Maybe you're just eating away all of the available disk I/O and
everything runs really slowly. That's anyway what this error message is
about. That file shouldn't have been locked for a long time, but it was.



not enough file descriptors ?

Then it would log "Too many open files".


this happen later if I let the processes run

--

Frank BONNET

01.45.92.66.17

Service des Moyens Informatiques Generaux

ESIEE PARIS
Cité Descartes / BP 99
93162 NOISY-LE-GRAND Cedex
http://www.esiee.fr 



Re: [Dovecot] critical feature from version 1 not migrated to version 2 = authentication configuration database per IP

2011-02-14 Thread da...@apollo.lv

Timo Sirainen wrote:

- another way (possible that will be more easiest, and good enough for
advanced configurations)  = single variable that may be set in block
of exact ip listener configuration , as for provided before example
may set variable "auth_db_suffix" = string("dc=domain1,dc=tld") for
definition "local mail.domain1.tld" and that variable are inserted in
auth block via variable inserting mechanism ...


Again not possible, because config parsing is done much earlier.


think for realization can take idea from that patch :
-
--- src/auth/auth-request.c.orig 2010-12-30 11:42:54.0 +0200
--- src/auth/auth-request.c.orig 2010-12-30 11:42:54.0 +0200
@@ -1547,6 +1547,7 @@ auth_request_get_var_expand_table(const
{ '\0', NULL, "login_user" },
{ '\0', NULL, "login_username" },
{ '\0', NULL, "login_domain" },
+   { 'x', NULL, NULL },
{ '\0', NULL, NULL }
};
struct var_expand_table *tab;
@@ -1600,6 +1601,15 @@ auth_request_get_var_expand_table(const
auth_request);
}
}
+   const char *lip2user[][2] = 
{{"127.0.0.3","dc=domain1,dc=tld1"},{"127.0.0.1","localhost"},{"127.0.0.2","dc=domain2,dc=tld2"}};

+   int arrsize=sizeof( lip2user ) / sizeof( lip2user[0]);
+   tab[18].value = ""; // default expanded to - emty string
+   int i;
+   for(i=0;i+   if 
(strcmp(net_ip2addr(&auth_request->local_ip),(lip2user[i][0]))==0) {

+   tab[18].value = lip2user[i][1];
+   }
+   }
return tab;
 }

-
and there need only possibility to define pairs in config file for 
lip2user array initialization - then macro/variable %x will be available 
for substitution in all modules - as for ldap , as for filename-based 
parameters.

in exaple patch created static table to match lip to suffix
127.0.0.3 = "dc=domain1,dc=tld1"
127.0.0.1 = "localhost"
127.0.0.2 = "dc=domain2,dc=tld2"

how to initialize arrays from config - i'm was not explored for 
currently used coding structures


may create this array more complex = not as simple pair - but as for 
selective conversion:

%x1 lip to text1,
%x2 lip to text2,
%x3 lip to text3 ...
- then diffirent advanced configurations will be possible ...


Re: [Dovecot] Dsync parallel conversion warning

2011-02-14 Thread Timo Sirainen
On 14.2.2011, at 14.52, Frank Bonnet wrote:

>>> (): Warning: Transaction log file
>>> /user//mail/.imap/INBOX/dovecot.index.log was locked for xxx seconds
>> Maybe you're just eating away all of the available disk I/O and
>> everything runs really slowly. That's anyway what this error message is
>> about. That file shouldn't have been locked for a long time, but it was.
>> 
>> 
> not enough file descriptors ?

Then it would log "Too many open files".



[Dovecot] Cannot subscribe to shared folders

2011-02-14 Thread Lukas Haase

Hi,

I am unable to subscribe to shared folders with Thunderbird although 
everything seems to be correct (dovecot 1.2).


What does not work? I click "Subscribe..." in Thunderbird. The shared 
mailboxes are listed, all with [ ] (no checkbox). Therefore I mark them 
[x], click "subscribe" and "OK". However, the folders do not appear in 
the folder tree. Furthermore, when I again click "Subscribe..." the 
folders do NOT have the mark [x] any more. This happens on different 
computers with *new* profiles.


My configuration is the following (maybe that is the problem?!):

namespace private {
   separator = .
   prefix =.
   inbox = no
   list = no
   hidden = yes
   location = maildir:~/Maildir-root
   subscriptions = yes
}

namespace private {
   separator = .
   prefix = INBOX.
   inbox = yes
   subscriptions = yes
}

namespace public {
   separator = .
   prefix = Shared.
   location = maildir:/var/mail/shared:INDEX=~/Maildir/shared:LAYOUT=fs
   subscriptions = no
}

The folder /var/mail/shared has appropriate permissions/form:
* Owner: $user:mailuser (all users are member of "mailuser")
* All files 0660, all folders 0770
* There exists a dovecot-shared in every folder
* There exists a dovecot-acl in each folder where each user has the 
permissions "lrwstie"


I switched on "mail_debug = yes" but no messages.

However, the file ~/Maildir-root/subscriptions contains the subscribed 
folders:


Shared.Group1
Shared.Group2
Shared.Group1/Test

Furthermore, I switched on rawlog. Everything seems to be OK as well:

.in-file:
2 subscribe "Shared.Group1"
3 lsub "" "INBOX.*"
5 lsub "" "Shared.*"
6 list "" "INBOX"

.out-file:
2 OK Subscribe completed.
[...]

I am pretty sure it already worked. But it stopped working. Does anybody 
have a hint what could be the problem?


Regards,
Luke











[Dovecot] SIS generating 2 different hashes for the same mail and attachment

2011-02-14 Thread Nick Rosier

Hi,

I've been testing SIS over the weekend as it seems to be a nifty 
feature. I don't have that many users and mailboxes but still...

I only added the following line to my configuration:

mail_attachment_dir = /var/spool/vmail/attachments

As a test I sent a mail from GMail to 2 mailboxes (1 To and 1 CC). The 
attachment got saved to the attachment directory (on ZFS):


# find .
./04
./04/78
./04/78/0478b28c2a4c235370bb3cef4bc0482bb6000dae-b8819638a60e574d5b530100bde47b1f-2088e7301f9e3c4dc97ebde47b1f-244
./04/78/0478b28c2a4c235370bb3cef4bc0482bb6000dae-007dcd01a70e574d5c530100bde47b1f-98d08416e4712b4d75310100bde47b1f-192

# ls -l
total 519
-rw---  1 vmail  vmail  242866 Feb 12 23:50 
0478b28c2a4c235370bb3cef4bc0482bb6000dae-007dcd01a70e574d5c530100bde47b1f-98d08416e4712b4d75310100bde47b1f-192
-rw---  1 vmail  vmail  242866 Feb 12 23:50 
0478b28c2a4c235370bb3cef4bc0482bb6000dae-b8819638a60e574d5b530100bde47b1f-2088e7301f9e3c4dc97ebde47b1f-244


So these files are not hardlinks, they are 2 seperate files. Checksums 
are the same:


# sum *
58522 238 
0478b28c2a4c235370bb3cef4bc0482bb6000dae-007dcd01a70e574d5c530100bde47b1f-98d08416e4712b4d75310100bde47b1f-192
58522 238 
0478b28c2a4c235370bb3cef4bc0482bb6000dae-b8819638a60e574d5b530100bde47b1f-2088e7301f9e3c4dc97ebde47b1f-244


 # md5 *
MD5 
(0478b28c2a4c235370bb3cef4bc0482bb6000dae-007dcd01a70e574d5c530100bde47b1f-98d08416e4712b4d75310100bde47b1f-192) 
= 684863b31dad701857642caedcdbf20a
MD5 
(0478b28c2a4c235370bb3cef4bc0482bb6000dae-b8819638a60e574d5b530100bde47b1f-2088e7301f9e3c4dc97ebde47b1f-244) 
= 684863b31dad701857642caedcdbf20a


Did I miss something? I would have expected the file once in the 
attachment_dir.


Rgds,
N.


Re: [Dovecot] Dsync parallel conversion warning

2011-02-14 Thread Frank Bonnet

On 02/14/2011 11:25 AM, Timo Sirainen wrote:

On Mon, 2011-02-14 at 10:04 +0100, Frank Bonnet wrote:

Hello

When I run multiple dsync processes in parallel
I sometime get this warning message

(): Warning: Transaction log file
/user//mail/.imap/INBOX/dovecot.index.log was locked for xxx seconds

Maybe you're just eating away all of the available disk I/O and
everything runs really slowly. That's anyway what this error message is
about. That file shouldn't have been locked for a long time, but it was.



not enough file descriptors ?


Re: [Dovecot] Search failure

2011-02-14 Thread Timo Sirainen
On Sun, 2011-02-13 at 21:15 -0800, Daniel L. Miller wrote:
> doveadm search -u dmil...@amfes.com text xyzxyz
> doveadm(dmil...@amfes.com): Panic: file istream-limit.c: line 79 
> (i_stream_limit_seek): assertion failed: (v_offset <= lstream->v_size)

Can you reproduce this?




Re: [Dovecot] Question about mdbox_preallocate_space and ext4

2011-02-14 Thread Timo Sirainen
On Sun, 2011-02-13 at 17:48 +0100, Javier de Miguel Rodríguez wrote:

>   Can anyone explain about mdbox_preallocate_space and ext4?

All m.* files are created by preallocating them into mdbox_rotate_size
size. The idea is to avoid fragmentation of the m.* files.




Re: [Dovecot] Dsync parallel conversion warning

2011-02-14 Thread Timo Sirainen
On Mon, 2011-02-14 at 10:04 +0100, Frank Bonnet wrote:
> Hello
> 
> When I run multiple dsync processes in parallel
> I sometime get this warning message
> 
> (): Warning: Transaction log file 
> /user//mail/.imap/INBOX/dovecot.index.log was locked for xxx seconds

Maybe you're just eating away all of the available disk I/O and
everything runs really slowly. That's anyway what this error message is
about. That file shouldn't have been locked for a long time, but it was.




[Dovecot] FreeBSD tuning for a dovecot + postfix server ?

2011-02-14 Thread Frank Bonnet

Hello

I've googled around  to tune a bit my mailhub ( AMD64 FreeBSD 8.1, 12 Gb 
RAM, 2 Tb raid5 disks , ~4000 mailboxes unix users )

but I am a bit confused,

All my clients use thunderbird as MUA ( IMAP, IMAPS ) to connect to the 
mailhub

no direct access to the machine.

Any of you guys has some pointer to give ?
thanks a lot




[Dovecot] Sendmail and Dovecot deliver (dovecot-lda)

2011-02-14 Thread Giles Coochey

Hi,

I have a Centos 5 system with sendmail running as my MTA.

Normally I note from sendmail logs that mails get delivered using the 
'local' mailer.


I have therefore entered the following into my sendmail.mc file, from an 
earlier post on this list:


define(`LOCAL_MAILER_PATH',`/usr/libexec/dovecot/deliver')
define(`LOCAL_MAILER_FLAGS',`DFMPhfnu9')
define(`LOCAL_MAILER_ARGS',`deliver -d $u')

However, when sendmail tries to use deliver I just get this message:

Feb 13 15:37:23 gate sendmail[1399]: p1DEWtc2021995: 
to=, delay=00:04:28, xdelay=00:00:00, mailer=local, 
pri=121665, dsn=4.0.0, stat=Deferred: local mailer 
(/usr/libexec/dovecot/deliver) exited with EX_TEMPFAIL


I've tried to get better logging by putting the following in 15-lda.conf 
in /etc/dovecot/conf.d:


protocol lda {
  postmaster_address = postmas...@example.org
  auth_socket_path = /var/run/dovecot/auth-master
  mail_plugins = sieve
  mail_location = maildir:~/.maildir
  log_path = /var/log/dovecot-deliver.log
  info_log_path = /var/log/dovecot-deliver.log
}

I find nothing gets written to the log file, even if I make it a world 
writable file.


Does anyone have any ideas? What are the best steps to get more 
information troubleshooting?


--
Best Regards,

Giles Coochey
NetSecSpec Ltd
NL T-Systems Mobile: +31 681 265 086
NL Mobile: +31 626 508 131
GIB Mobile: +350 5401 6693
Email/MSN/Live Messenger: gi...@coochey.net
Skype: gilescoochey





smime.p7s
Description: S/MIME Cryptographic Signature


[Dovecot] Dsync parallel conversion warning

2011-02-14 Thread Frank Bonnet

Hello

When I run multiple dsync processes in parallel
I sometime get this warning message

(): Warning: Transaction log file 
/user//mail/.imap/INBOX/dovecot.index.log was locked for xxx seconds


"xxx seconds" is variable

Is it a problem or just a real warning ?

Thanks