fts_solr and # char

2019-12-02 Thread Marcio Merlone via dovecot

Hi,

Dovecot wiki says the solr url is something like 'solr/dovecot/' but 
this gives a 404, if I install solr as per the docs I have a 
'solr/#/dovecot/' url:


https://wiki.dovecot.org/Plugins/FTS/Solr

I have installed dovecot 2.3 from https://repo.dovecot.org/ and solr 8.3 
as per the wiki on a Ubuntu 18.04.



The problem and the guess work I did:


fts_solr = url=http://localhost:8983/solr/#/dovecot/

doveconf: Warning: Configuration file /etc/dovecot/conf.d/90-plugin.conf 
line 13: Ambiguous '#' character in line, treating it as comment. Add a 
space before it to remove this warning.



fts_solr = url="http://localhost:8983/solr/#/dovecot/;

Error: fts: Failed to initialize backend 'solr': fts_solr: Failed to 
parse HTTP url: Path component contains invalid character



fts_solr = url='http://localhost:8983/solr/#/dovecot/'

Error: fts: Failed to initialize backend 'solr': fts_solr: Failed to 
parse HTTP url: Relative HTTP URL not allowed



fts_solr = url=http://localhost:8983/solr/%23/dovecot/

Error: Failed to expand plugin setting fts_solr = 
'url=http://localhost:8983/solr/%23/dovecot/': Unknown variable '%/'



fts_solr = 'url=http://localhost:8983/solr/#/dovecot/'

fts_solr: Failed to parse HTTP url: URL fragment not allowed for HTTP 
URL in this context



Thanks for any help.


--
*Marcio Merlone=*


Re: Dovecot Master User: Access user's mailbox without owner's password

2019-11-26 Thread Marcio Merlone via dovecot


Em 19/11/2019 12:59, John Stoffel via dovecot escreveu:

Marcio,
Looking at your passdb { } block, you don't have the "result_sucess =
continue" option.  Have you tried adding that to make it work?


Sorry for late reply, lone busy admin here

You spelled wrong, correct is result_success :

https://doc.dovecot.org/configuration_manual/authentication/master_users/

It is there, line 65 of https://pastebin.com/3cAvfNqB and yet no luck.

Thanks for your input.


--
*Marcio Merlone*


Re: Dovecot Master User: Access user's mailbox without owner's password

2019-11-19 Thread Marcio Merlone via dovecot
Sounds a lot like my problem, which I described some days ago here on 
the list, but no luck. Please report to the list if you make any progress.


Regards,

Em 14/11/2019 10:41, Dav Rdrz via dovecot escreveu:

Hi, I hope you're all right. I describe below the scenario where the
problem occurs.
I'm trying to activate a master user [1] to be able to access all the
boxes of all users by imap.
I have configured the dovecot-master-users [2] file with the
appropriate permissions.
When I try to access, for example with roundcube, through
u...@mydomain.com*my_master_u...@not-exist.com
I see in the log, that it seems to ignore the master-user (*) and
tries to authenticate the Active Directory but with the master user's
password. Then it shows in the log the messages

auth: Info: ldap(u...@mydomain.com,127.0.0.1,<6sFGXE6XLwB/AAAB> )
invalid credentials
auth: Debug: client passdb out: FAIL 1 user=u...@mydomain.com

I have other test cases, but I need to validate the master user login that way.

I would appreciate any comments you can make and I am waiting to
answer any questions.

Regards,

[1] https://doc.dovecot.org/configuration_manual/authentication/master_users/
[2] https://docs.iredmail.org/dovecot.master.user.html

---

root@mail-01:/etc/dovecot# cat /etc/issue
Ubuntu 14.04.5 LTS \n \l

root@mail-01:/etc/dovecot# dpkg -l | grep dovecot | awk {'print $2" "$3'}
dovecot-core 1:2.2.9-1ubuntu2.6
dovecot-imapd 1:2.2.9-1ubuntu2.6
dovecot-ldap 1:2.2.9-1ubuntu2.6
dovecot-lmtpd 1:2.2.9-1ubuntu2.6
dovecot-managesieved 1:2.2.9-1ubuntu2.6
dovecot-mysql 1:2.2.9-1ubuntu2.6
dovecot-pop3d 1:2.2.9-1ubuntu2.6
dovecot-sieve 1:2.2.9-1ubuntu2.6

root@mail-01:/etc/dovecot# cat dovecot.conf | grep -v '#' | grep -v -e
'^$' | sed  "s/REALDOMAIN/mydomain/g"
listen = * [::]
mail_plugins = quota mailbox_alias acl
protocols = pop3 imap sieve lmtp
mail_uid = 2000
mail_gid = 2000
first_valid_uid = 2000
last_valid_uid = 2000
log_path = /var/log/dovecot.log
auth_verbose = yes
auth_debug = yes
ssl_protocols = !SSLv2 !SSLv3
ssl = required
verbose_ssl = no
ssl_ca = 
--
*Marcio Merlone*
TI - Administrador de redes

*A1 Engenharia - Unidade Corporativa*
Fone:   +55 41 3616-3797
Cel:+55 41 99689-0036

https://a1.ind.br/ <https://a1.ind.br>


Re: Help with master user

2019-11-04 Thread Marcio Merlone via dovecot

Plase? :)

Em 01/11/2019 14:23, Marcio Merlone via dovecot escreveu:


Hi,

Trying to implement a master user (1) for auditing purposes without 
luck. Ubuntu 18.04.3, canonical official repos only, no ppa nor 
self-compiled anything. From the log below I understand the master 
password succeeds but AD auth fails. I am pretty sure I missed 
something here. Also, notice the messages "Ignoring unknown passdb 
extra field: original_user".


Log:

Nov  1 14:02:32 netuno dovecot: auth: Debug: client in: 
AUTH#0112#011PLAIN#011service=imap#011secured#011session=H2WM7kuWFKYKCQgI#011lip=10.9.8.8#011rip=10.9.8.8#011lport=143#011rport=42516#011resp=
Nov  1 14:02:32 netuno dovecot: auth: Debug: 
passwd-file(master,10.9.8.8,master,): Master user 
lookup for login: test.account
Nov  1 14:02:32 netuno dovecot: auth: Debug: 
passwd-file(master,10.9.8.8,master,): lookup: 
user=master file=/etc/dovecot/master-users
Nov  1 14:02:32 netuno dovecot: auth: 
passwd-file(master,10.9.8.8,master,): Master user 
logging in as test.account
Nov  1 14:02:32 netuno dovecot: auth: 
ldap(test.account,10.9.8.8,): invalid credentials
Nov  1 14:02:34 netuno dovecot: auth: Debug: client passdb out: 
FAIL#0112#011user=test.account#011authz#011original_user=master#011auth_user=master
Nov  1 14:02:34 netuno dovecot: imap-login: Debug: Ignoring unknown 
passdb extra field: original_user
Nov  1 14:02:34 netuno dovecot: imap-login: Debug: Ignoring unknown 
passdb extra field: auth_user
Nov  1 14:02:42 netuno dovecot: imap-login: Aborted login (auth 
failed, 1 attempts in 10 secs): user=, method=PLAIN, 
rip=10.9.8.8, lip=10.9.8.8, secured, session=


doveconf -n:

https://pastebin.com/3cAvfNqB

root@netuno:/etc/dovecot# grep -v "^\s*#\|^\s*$" 
/etc/dovecot/dovecot-ldap.conf.ext

hosts = ad.example.net
auth_bind = yes
auth_bind_userdn = cn=%Lu,CN=Users,DC=ad,DC=example,DC=net
base = DC=ad,DC=example,DC=net
scope = base
user_attrs = \
    =home=/mnt/maildirs/%Lu, \
    =uid=vmail,\
    =gid=vmail
user_filter = (&(objectClass=person)(uid=%Lu)(mail=*@example.net))
root@netuno:/etc/dovecot#

root@netuno:/etc/dovecot# cat /etc/dovecot/global-acls
* user=master lr
root@netuno:/etc/dovecot#

(1) 
https://doc.dovecot.org/configuration_manual/authentication/master_users/


Best regards

--
*Marcio Merlone*

--
*Marcio Merlone*


Help with master user

2019-11-01 Thread Marcio Merlone via dovecot

Hi,

Trying to implement a master user (1) for auditing purposes without 
luck. Ubuntu 18.04.3, canonical official repos only, no ppa nor 
self-compiled anything. From the log below I understand the master 
password succeeds but AD auth fails. I am pretty sure I missed something 
here. Also, notice the messages "Ignoring unknown passdb extra field: 
original_user".


Log:

Nov  1 14:02:32 netuno dovecot: auth: Debug: client in: 
AUTH#0112#011PLAIN#011service=imap#011secured#011session=H2WM7kuWFKYKCQgI#011lip=10.9.8.8#011rip=10.9.8.8#011lport=143#011rport=42516#011resp=
Nov  1 14:02:32 netuno dovecot: auth: Debug: 
passwd-file(master,10.9.8.8,master,): Master user 
lookup for login: test.account
Nov  1 14:02:32 netuno dovecot: auth: Debug: 
passwd-file(master,10.9.8.8,master,): lookup: 
user=master file=/etc/dovecot/master-users
Nov  1 14:02:32 netuno dovecot: auth: 
passwd-file(master,10.9.8.8,master,): Master user 
logging in as test.account
Nov  1 14:02:32 netuno dovecot: auth: 
ldap(test.account,10.9.8.8,): invalid credentials
Nov  1 14:02:34 netuno dovecot: auth: Debug: client passdb out: 
FAIL#0112#011user=test.account#011authz#011original_user=master#011auth_user=master
Nov  1 14:02:34 netuno dovecot: imap-login: Debug: Ignoring unknown 
passdb extra field: original_user
Nov  1 14:02:34 netuno dovecot: imap-login: Debug: Ignoring unknown 
passdb extra field: auth_user
Nov  1 14:02:42 netuno dovecot: imap-login: Aborted login (auth failed, 
1 attempts in 10 secs): user=, method=PLAIN, rip=10.9.8.8, 
lip=10.9.8.8, secured, session=


doveconf -n:

https://pastebin.com/3cAvfNqB

root@netuno:/etc/dovecot# grep -v "^\s*#\|^\s*$" 
/etc/dovecot/dovecot-ldap.conf.ext

hosts = ad.example.net
auth_bind = yes
auth_bind_userdn = cn=%Lu,CN=Users,DC=ad,DC=example,DC=net
base = DC=ad,DC=example,DC=net
scope = base
user_attrs = \
    =home=/mnt/maildirs/%Lu, \
    =uid=vmail,\
    =gid=vmail
user_filter = (&(objectClass=person)(uid=%Lu)(mail=*@example.net))
root@netuno:/etc/dovecot#

root@netuno:/etc/dovecot# cat /etc/dovecot/global-acls
* user=master lr
root@netuno:/etc/dovecot#

(1) 
https://doc.dovecot.org/configuration_manual/authentication/master_users/


Best regards

--
*Marcio Merlone*


Re: SSL problem - no banner

2017-06-01 Thread Marcio Merlone

Em 29/05/2017 15:35, Aki Tuomi escreveu:

On May 29, 2017 at 9:27 PM Marcio Merlone <marcio.merl...@a1.ind.br> wrote:

I am running dovecot 2.2.22-1ubuntu2.4 on a ubuntu 16.04 server. It has
a valid Letsencrypt certificate but the problem also happens with a
self-digned one.

Only openssl s_client -connect localhost:993 works fine and fast, while
all MUA's and telnet does not. Telnet timeouts waiting for banner after
a minute or so:
(...)

It is not exactly obvious what you are expecting to happen. You won't get plain 
text banner out of port 993, if you want to use STARTTLS, use port 143.

So obvious, thank you.

--
*Marcio Merlone*


SSL problem - no banner

2017-05-29 Thread Marcio Merlone

Hi,

I am running dovecot 2.2.22-1ubuntu2.4 on a ubuntu 16.04 server. It has 
a valid Letsencrypt certificate but the problem also happens with a 
self-digned one.


Only openssl s_client -connect localhost:993 works fine and fast, while 
all MUA's and telnet does not. Telnet timeouts waiting for banner after 
a minute or so:


root@netuno:~# openssl s_client -connect localhost:993
CONNECTED(0003)
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify return:1
(...)
Start Time: 1496081321
Timeout   : 300 (sec)
Verify return code: 0 (ok)
---
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.

0 logout
* BYE Logging out
0 OK Logout completed.
closed

root@netuno:~# telnet localhost 993
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
(about 1 minute later...)
Connection closed by foreign host.
root@netuno:~#

I Have enabled verbose_ssl = yes and mail_debug = yes but no useful info 
got to logs. Has anyone seen this? Any hint?


Thanks, best regards.

--
*Marcio Merlone*


[Dovecot] Shared namespace, separator, username and dots.

2013-11-01 Thread Marcio Merlone

Hi folks,

I run a legacy mailserver that i had replaced courier-imap for dovecot 
1.2. Everything is fine except for shared namespace. Maildir structure 
has been created using dot '.' as folder separator. It happens that all 
our users are created as name.surname as default. So when I want to 
select a shared folder, MUA end up with the following IMAP command:


select shared.jhon.doe.folder.subfolder

Obviously I took ages to figure why it won't work since it takes 'doe' 
as a folder and not a username part. When sharing a folder from 'sales' 
user, for example, it works fine.  What do you suggest to make shared 
folders work for all without rebuilding hundreds of maildirs to change 
folder separator from '.' to '/'?


Thanks for any hint.

# 1.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-52-server x86_64 Ubuntu 10.04.4 LTS
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps managesieve
ssl_listen: *
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
login_process_per_connection: no
login_max_processes_count: 1024
max_mail_processes: 1024
mail_max_userip_connections(default): 20
mail_max_userip_connections(imap): 20
mail_max_userip_connections(managesieve): 10
first_valid_gid: 0
mail_privileged_group: mail
mail_location: maildir:~/Maildir:INDEX=/var/cache/dovecot/%n
fsync_disable: yes
maildir_very_dirty_syncs: yes
mbox_write_locks: fcntl dotlock
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 acl imap_acl
mail_plugins(imap): quota imap_quota acl imap_acl
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
namespace:
  type: private
  separator: .
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: shared
  separator: .
  prefix: shared.%%u.
  location: maildir:%%h/Maildir:INDEX=%u/Maildir/shared/%%u
  list: children
  subscriptions: yes
lda:
  postmaster_address: postmas...@a1.ind.br
  mail_plugins: quota sieve acl
  quota_full_tempfail: yes
  auth_socket_path: /var/run/dovecot/auth-master
  fsync_disable: no
auth default:
  mechanisms: plain login
  master_user_separator: *
  passdb:
driver: pam
args: session=yes blocking=yes dovecot
  passdb:
driver: passwd-file
args: /etc/dovecot/passwd.masterusers
pass: yes
master: yes
  userdb:
driver: nss
args: service=ldap blocking=yes
  socket:
type: listen
client:
  path: /var/spool/postfix/private/dovecot
  mode: 436
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 438
plugin:
  sieve: ~/.dovecot.sieve
  acl: vfile
  acl_shared_dict: proxy::acl
dict:
  acl: mysql:/etc/dovecot/acl-dict-sql.conf


--
*Marcio Merlone*
TI - Administrador de redes

*A1 Engenharia - Unidade Corporativa*
Fone:   +55 41 3616-3797
Cel:+55 41 9689-0036

http://www.a1.ind.br/ http://www.a1.ind.br


[Dovecot] Sieve also filter outgoing messages

2013-02-06 Thread Marcio Merlone

Greetings,

A probably simple question and answer: can a sieve script be executed on 
outgoing messages? I already use deliver on postfix, perhaps the sieve 
script could be executed when saving to the Sent folder?


Regards,

--
Marcio Merlone


Re: [Dovecot] Sieve also filter outgoing messages

2013-02-06 Thread Marcio Merlone

Em 06-02-2013 13:19, Robert Schetterer escreveu:

Am 06.02.2013 14:53, schrieb Reindl Harald:

Am 06.02.2013 14:36, schrieb Marcio Merlone:

A probably simple question and answer: can a sieve script be executed on 
outgoing messages? I already use deliver
on postfix, perhaps the sieve script could be executed when saving to the Sent 
folder?

there are complete different things happening
for incoming messages and save sent messages

you do NOT want get sieve in action if you dragdrop
messages between folders and do this for sent messages
would trigger the same since the client acts the same way

Sorry Harald, i dont agree, this would be a nice feature to have
in fact we internally disussed this allready, it might be used for
workaround imap bugs of new outlook, and for auto flagging and auto
sorting mails, anyway at recent i see no way to get it real on the tec
side , but that might change in the future with i.e  relation to rfc4550
My specific need in this case is that we must forward copy all mails 
with a specific subject and/or destination to a mail account for 
auditing and registry purposes. It already works for messages which has 
at least on inside destination (multiple exact same copies when multiple 
inside destination, but what the heck...), but if a message is sent with 
only outside destinations I get no copy. It should work similar to 
postfix always_bcc, but only when a criteria matches.


Regards.

--
Marcio Merlone


Re: [Dovecot] Sieve also filter outgoing messages

2013-02-06 Thread Marcio Merlone

Em 06-02-2013 14:35, Gregory Finch escreveu:
Would sender_bcc_maps or recipient_bcc_maps be able to work on the 
postfix side? Otherwise I would suggest BCC like Steffen did and 
filter out what you want with sieve. Heck, with the *_bcc_maps on the 
postfix side you can still filter what you want with sieve. 
I've been poking around postfix now, a subject_bcc_maps with a pcre map 
would do :), and more realistic, a pcre header_checks with a milter may 
be the way to go, must read about milter first.


Steffen cited outgoing detection - I only asked about outgoing because 
incoming is already done with sieve, outgoing is the missing part. A 
single solution for both is the ideal, so you can forget about outgoing 
detection. IMAP-append-to-send also were a blind shot from me, forget it 
also. In sum, when a subject matches a pcre, bcc it to another account, 
no matter what direction.


Regarding Steffen suggestion, I am unable to figure what he meant. :P

--
Marcio Merlone


Re: [Dovecot] Sieve also filter outgoing messages

2013-02-06 Thread Marcio Merlone

Em 06-02-2013 15:40, Robert Schetterer escreveu:

Am 06.02.2013 16:57, schrieb Marcio Merlone:

It should work similar to postfix always_bcc, but only when a criteria
matches.

incomming mails can be filtered through sieve, always_bcc etc and +
adressing maybe be a way to solve this, i tested somthing like this
for mail archiving, however the filter rules may get complex
Incoming is done with sieve, the problem comes to outgoing without any 
rcpt to inside, in which case it becomes incoming too. It must happen 
only on a specific subject


--
Marcio Merlone


[Dovecot] Advice on sieve vacation for aliases

2012-12-18 Thread Marcio Merlone

Greetings,

I have a working mail server with sieve 1:1.2.9-1ubuntu6.5 working just 
fine. My commercial dept. has asked me to set a vacation message for 
comerc...@domain.tld, but this is an alias to j...@domain.tld and 
meg...@domain.tld. I have created a sieve_global_path = 
/etc/dovecot/global.sieve and it works, but not the intended way: it 
sends two vacation messages, each From: each employee, and not From: 
comerc...@domain.tld alias.


Is there how to make dovecot send only one vacation message From: 
comerc...@domain.tld or will I have to survive with one message from 
jhon and another from meggie? Also, is there how to have a 
dovecot.lda-dupes for the alias instead the users?


/etc/dovecot/global.sieve:

require [vacation];
# rule:[Ferias coletivas]
if anyof (header :contains To comerc...@domain.tld)
{
vacation :days 7 :subject Férias coletivas de 20/12/2012 a 
07/01/2013 text:

bla bla bla.
;
stop;
}

Thanks in advance and nice holidays.

--
Marcio Merlone


Re: [Dovecot] Thunderbird Archive to slower storage - sort of alternate storage

2012-03-14 Thread Marcio Merlone

Em 13-03-2012 15:58, Marcio Merlone escreveu:

Em 13-03-2012 13:49, Timo Sirainen escreveu:
A perfectly working solution would be to (upgrade to v2.x and) switch 
to sdbox or mdbox format with alt storage enabled, then you could 
simply do: doveadm altmove -A mailbox 'Archives*' all 
Should this command be run every time a new folder (.Archives.2012 for 
example) is created or can this be automated, something like instructing 
deliver to do this to any Archives* is created? In other words, to cron 
or not to cron?


Best regards.

--
*Marcio Merlone*


Re: [Dovecot] Thunderbird Archive to slower storage - sort of alternate storage

2012-03-14 Thread Marcio Merlone

Em 14-03-2012 09:19, Timo Sirainen escreveu:

On Wed, 2012-03-14 at 08:51 -0300, Marcio Merlone wrote:

Em 13-03-2012 15:58, Marcio Merlone escreveu:

Em 13-03-2012 13:49, Timo Sirainen escreveu:

A perfectly working solution would be to (upgrade to v2.x and) switch
to sdbox or mdbox format with alt storage enabled, then you could
simply do: doveadm altmove -A mailbox 'Archives*' all

Should this command be run every time a new folder (.Archives.2012 for
example) is created or can this be automated, something like instructing
deliver to do this to any Archives* is created? In other words, to cron
or not to cron?

It's not deliver that creates it, it's the IMAP client. And it would
I first though about deliver since this seems the guy who could do that, 
but don't matter.



have to be done when IMAP client copies mails there. But there's
currently no easy way to automate that, so you'd need to do it in cron.

Just imagine that:

protocol imap{
...
x_alternate_storage_always = Archives, Spam, Trash
x_alternate_storage_size = 20MB
x_alternate_storage_age = 1y
...
}

The client (Thunderbird?) sends imap commands to dovecot create such 
folder or to move a message to such folder. Dovecot obeys and check the 
config to see if the folder in question is one of those listed on 
x_alternate_storage_always. If the folder is not on alternate storage 
yet, create/move it there and them proceed what was asked to do.


I imagine that an age based action would depend of a cron job in order 
to not overload the server each time it performs any imap command and 
check old messages age...



Another possibility could be to add a new feature (plugin) that always
immediately saves mails in Archives* mailboxes to alt storage.

I don't know if the duck is male, I want the egg! :)

I know nothing about the inner workings of dovecot, and very little 
about the outer working. A well designed and integrated plugin could be, 
but seems to be a nice core feature for dovecot, based on folder name, 
size or age.


Many thanks for your time. Please be kind considering those ideas, I am 
just a poor man's server admin. :)


Best regards.

--
*Marcio Merlone*


[Dovecot] Thunderbird Archive to slower storage - sort of alternate storage

2012-03-13 Thread Marcio Merlone

Hi people,

When a user archives a message from Thunderbird it moves to an IMAP 
folder Archives, everyone knows that. I use dovecot 1:1.2.9-1ubuntu6.5 
on Ubuntu 10.04 and want to move that folder (and respective IMAP 
sub-folders) to a slower storage, link it to original location and my 
first idea for this is


find -type d -name .Archives\* -print0 | \
while read -d $'\0' archive; do \
mv $archive /dead/Emails/jhon.doe/; \
ln -s /dead/Emails/jhon.doe/$archive .; done

It works, given that the files are not locked. I could restart dovecot 
before so it would unlock the files, but there is no guarantee it does 
not get locked again before the find finishes.


I took a look on mailling list archives, but could not find something 
like that and was wondering what you guys use (if any) for such task and 
what are the recommendations, best practices, solutions for that?


Thanks in advance, best regards.


--
*Marcio Merlone*


Re: [Dovecot] Thunderbird Archive to slower storage - sort of alternate storage

2012-03-13 Thread Marcio Merlone

Em 13-03-2012 13:49, Timo Sirainen escreveu:

On 13.3.2012, at 16.36, Marcio Merlone wrote:

It works, given that the files are not locked. I could restart dovecot before 
so it would unlock the files, but there is no guarantee it does not get locked 
again before the find finishes.

I'm not sure what you mean by locks.

Operating system lock of open files (lsof).

A perfectly working solution would be to (upgrade to v2.x and) switch 
to sdbox or mdbox format with alt storage enabled, then you could 
simply do: doveadm altmove -A mailbox 'Archives*' all 
Sounds really nice. There are no 2.0 packages for Lucid tough, so will 
take a look at the latest stable Ubuntu, or perhaps give the beta a try 
(until it comes stable).


Thanks for your prompt reply. :)

--
*Marcio Merlone*


[Dovecot] Documentation clarifiction on mmap_disable

2011-12-12 Thread Marcio Merlone

Greetings,

On http://wiki.dovecot.org/MainConfig I read:

mmap_disable = no
   Don't use mmap() at all. This is required if you store indexes to
   shared filesystems (NFS or clustered filesystem). 

Does that mean:

1. mmap is required when using NFS or
2. it is required to don't use mmap at all when using NFS?

Sorry if this is obvious. Best regards.

--
*Marcio Merlone*


[Dovecot] Help with a generated sieve rule

2010-06-18 Thread Marcio Merlone

Hi all,

Can some kind soul please help me find why this rule did not work, 
what's wrong? I am using dovecot 1:1.2.10-0xk1.


## Generated by RoundCube Webmail SieveRules Plugin ##
require [vacation,variables];

set subject ;
if header :matches subject * {
set subject ${1};
}

# rule:[Treinamento]
if anyof (true)
{
vacation
:days 1
:subject Ausência: ${subject}
text:
Olá!
Estou em treinamento externo durante o período de 21 a 25 de junho.
Att,
.
;
}

mail.log:

Jun 18 10:07:02 netuno postfix/smtpd[10722]: 6372A16073: 
client=mic-062.a1.ind.br[192.168.0.4], sasl_method=PLAIN, 
sasl_username=marcio.merlone
Jun 18 10:07:02 netuno postfix/cleanup[10724]: 6372A16073: 
message-id=4c1b6f7a.6000...@a1.ind.br
Jun 18 10:07:02 netuno postfix/qmgr[4964]: 6372A16073: 
from=marcio.merl...@a1.ind.br, size=888, nrcpt=1 (queue active)
Jun 18 10:07:02 netuno dovecot: deliver(queila.farias): sieve: 
msgid=4c1b6f7a.6000...@a1.ind.br: stored mail into mailbox 'INBOX'
Jun 18 10:07:02 netuno postfix/local[10725]: 6372A16073: 
to=queila.far...@a1.ind.br, relay=local, delay=1, 
delays=0.96/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to command: 
/usr/lib/dovecot/deliver)

Jun 18 10:07:02 netuno postfix/qmgr[4964]: 6372A16073: removed

Thanks very much for any help, hint.

--
Marcio Merlone



Re: [Dovecot] Help with a generated sieve rule

2010-06-18 Thread Marcio Merlone

Em 18-06-2010 10:23, Marcio Merlone escreveu:
Can some kind soul please help me find why this rule did not work, 
what's wrong? I am using dovecot 1:1.2.10-0xk1.


## Generated by RoundCube Webmail SieveRules Plugin ##
require [vacation,variables];

set subject ;
if header :matches subject * {
set subject ${1};
}

# rule:[Treinamento]
if anyof (true)
{
vacation
:days 1
:subject Ausência: ${subject}
text:
Olá!
Estou em treinamento externo durante o período de 21 a 25 de junho.
Att,
.
;
}


Bizarre. Just changed :days 1 to :days 0 and it now worked. That was 
my first message to her and failed. Odd.


--
Marcio Merlone



Re: [Dovecot] Help with a generated sieve rule

2010-06-18 Thread Marcio Merlone

Em 18-06-2010 12:24, Bradley Giesbrecht escreveu:

On Jun 18, 2010, at 7:57 AM, Marcio Merlone wrote:

Em 18-06-2010 10:23, Marcio Merlone escreveu:
Can some kind soul please help me find why this rule did not work, 
what's wrong? I am using dovecot 1:1.2.10-0xk1.

(...)
Bizarre. Just changed :days 1 to :days 0 and it now worked. That 
was my first message to her and failed. Odd.
I understand that the vacation :days is kept by writing to a file. 
Maybe you were unable to write to this file which killed delivery. 
Changing to 0 ignored the file.


Which file is that?

--
Marcio Merlone



Re: [Dovecot] IMAP Address book ?

2010-06-17 Thread Marcio Merlone

Em 17-06-2010 08:31, Frank Bonnet escreveu:

Does anyone knows if it is possible to manage a personnal address book
with Dovecot and IMAP ?

I mean would it be possible to store it in the IMAP user's space
and not in the MUA address book in order to always retrieve it
even changing on machine / MUA ?


I don't think IMAP was meant for that, but would be reallly nice. Have 
you looked for a LDAP based address book?


--
Marcio Merlone



Re: [Dovecot] IMAP Address book ?

2010-06-17 Thread Marcio Merlone

Em 17-06-2010 09:23, Frank Bonnet escreveu:

On 06/17/2010 02:20 PM, Marcio Merlone wrote:

Em 17-06-2010 08:31, Frank Bonnet escreveu:

Does anyone knows if it is possible to manage a personnal address book
with Dovecot and IMAP ?

I mean would it be possible to store it in the IMAP user's space
and not in the MUA address book in order to always retrieve it
even changing on machine / MUA ?

I don't think IMAP was meant for that, but would be reallly nice. Have
you looked for a LDAP based address book?

We use ldap address book but only for company address book
my meanings are for PERSONAL address book


I understood. Some time ago I searched for personal address book on 
LDAP, but could not find anything ready for production use. It is 
possible anyway, setting proper ACL on a DIT to allow write access to 
LDAP by a user.


--
Marcio Merlone



Re: [Dovecot] Sieve GUI

2010-06-02 Thread Marcio Merlone

Em 01-06-2010 15:45, Frank Cusack escreveu:

(...)you are right in that almost no clients support it.  Mulberry and
thunderbird are the only ones I know of.


Are you talking about the extension on wich you have to write the sieve 
scripts by hand? That is a joke, hope someone creates a decent extension 
for that some day...


--
Marcio Merlone



Re: [Dovecot] Shared mailboxes

2010-05-18 Thread Marcio Merlone

Em 14-05-2010 12:45, spamv...@googlemail.com escreveu:

can anyone give me a hind how to setup shared mailboxes.
I've already created the shared and private namespace.

But ive no idea how to share a mailbox.
Thunderbird and most other Clients seem not to support the setacl command.

so do i have to create a plaintext file with
user=theldapuseriwanttosharemybox rw ?
   


It seems no one uses shared folder, or people don't like questions about 
that. If you find the answer somewhere pls mail the list for the records 
of searches.



--
Marcio Merlone



Re: [Dovecot] Using MySQL For Mailboxes?

2010-03-09 Thread Marcio Merlone

Em 9/3/2010 08:07, Charles Marcus escreveu:

???

You aren't listening. Storing *email* in mysql is a totally different
concept from storing USER DATA in mysql.

You do NOT have to switch to dbmail to change your config to start using
MySQL for managing your user accounts.

Personally, I would use either MySQL or PostgreSQL for managing my users
even if I only had 5. But imo, for 25 or more, doing it by hand is nuts.
For 500?

Switch to MySQL for your user management, unless you just like
ridiculously busy work.


In fact, his original question makes me wonder what he is talking about, 
storing user info or user mailboxes on mysql. People understood storing 
mailboxes.


Anyway, a better solution to handle user account information than mysql 
is ldap (which I personally suggest) with pam. This can also handle all 
posix accounts, not just mail accounts, and thus improving consistence. 
I'd use that for any system with more than 3 accounts.


Best regards,


--
Marcio Merlone


[Dovecot] 1/2 OT: Finger mail count

2010-02-22 Thread Marcio Merlone

Hi all,

Is there how to make the finger command retrieve mail count from maildir?

Thanks and best regards.

--
Marcio Merlone

attachment: marcio_merlone.vcf

Re: [Dovecot] LDAP as password database - some problems / suggestions

2010-02-18 Thread Marcio Merlone

Em 18/2/2010 06:19, Stefan Palme escreveu:

In LDAP, I have users like this:

   dn:cn=user1,ou=users,dc=kapott,dc=org
   dn:cn=user2,ou=users,dc=kapott,dc=org
etc.
   

(...)

My problem: not ALL users from the LDAP system should be allowed to
use the IMAP server. Currently, I have defined an auth_bind_userdn
of cn=%u,ou=users,dc=kapott,dc=org in dovecot-ldap.conf, but with
this, user1 AND user2 could login (but I don't want user2 to be able
to use dovecot).
   


I use LDAP on PAM, and dovecot uses PAM as auth method, so I can have a 
separeted /etc/ldap_dovecot.conf wich filters nss_base_passwd 
ou=People,dc=xxx?one?objectClass=mailUser (I have a postfix.schema I 
downloaded somewhere that implements mailUser, you may use whatever 
objectclass you find best). That /etc/ldap_dovecot.conf is read by 
/etc/pam.d/dovecot wich is used by dovecot. This may be tweaked to solve 
your needs.


Regards,

--
Marcio Merlone

attachment: marcio_merlone.vcf

Re: [Dovecot] Messages marked as unread - Dovecot 1.2.10 - Thunderbird 2.0.0.23

2010-02-04 Thread Marcio Merlone

Em 1/2/2010 14:15, Charles Marcus escreveu:

On 2010-02-01 9:22 AM, Stephan Boschstep...@rename-it.nl  wrote:
   

I upgraded some of our systems to dovecot 1.2.10
now I noticed that some of my messages are marked
as unread. This disappears after reopening the folder
again.
   


I did upgrade too, _lots_ of messages appear as not read (but not all 
folders). Mark then as read appears to work, but when I get back to 
folder they are unread again. Many users on my net are complaining about 
that. We are using Dovecot 1.2.10 with many versions of TB, from 2.0.0.x 
up to 3.0.1.



Apparently, this is a known Thunderbird problem as discussed earlier on
this list:
 

No, those only apply to TB 3.0.0 and 3.0.1 (apparently fixed for 3.0.2)...
   


I could find just 3.1a1 for download. Can you help me find 3.0.2?

Thanks and best regards.

--
Marcio Merlone



[Dovecot] 1/2 OFF: User friendly Thunderbird Sieve extension

2009-06-17 Thread Marcio Merlone

Hi,

Sorry if this is off-topic. Do you guys know any user friendly sieve 
extension for Thunderbird? I saw http:\\sieve.mozdev.org but it not user 
friendly


Regards.

--
Marcio Merlone

begin:vcard
fn:Marcio Merlone
n:Merlone;Marcio
org:A1 Engenharia e Gerenciamento Ltda.
adr:;;R. Humberto Zanato, 10;Curitiba;PR;81870-250;Brasil
email;internet:marcio.merl...@a1.ind.br
title:Administrador de rede
tel;work:+55-41-3616-3796
tel;cell:+55-41-9689-0036
x-mozilla-html:FALSE
url:http://www.a1.ind.br
version:2.1
end:vcard



Re: [Dovecot] Quota: ldap dict

2009-04-29 Thread Marcio Merlone

Timo Sirainen escreveu:

On Fri, 2009-04-24 at 08:46 -0300, Marcio Merlone wrote:
  
All my users are on a LDAP database 
integrated via nss_ldap, so from the dovecot point of view they are all 
local system users. Now I want to set maildir quota for everybody, and 
was wondering if I could store quota limits per user on LDAP.



Yes, as long as you're using userdb ldap instead of doing it via NSS.

  
As I read on http://wiki.dovecot.org/Quota/Dict, there seem to be no way 
to do that, am I right? 



Dict quota is about where to store the actual current quota usage. You
can't store it in LDAP, but you can store the limits in LDAP.
  

Ok, I misunderstood dict quota, I'll store quota usage o maildirsize files.
Now, joining your two paragraphs above, it is correct to say that I 
cannot store the limits on LDAP since I use NSS...

and...
I can only store quota limits on LDAP when using userdb LDAP

Is that right?


--
Marcio Merlone



[Dovecot] Quota: ldap dict

2009-04-24 Thread Marcio Merlone

Hi,

I have set a dovecot-1:1.0.10-1ubuntu5.1 server on top of a Ubuntu 8.04 
LTS box and everything goes fine. All my users are on a LDAP database 
integrated via nss_ldap, so from the dovecot point of view they are all 
local system users. Now I want to set maildir quota for everybody, and 
was wondering if I could store quota limits per user on LDAP.


As I read on http://wiki.dovecot.org/Quota/Dict, there seem to be no way 
to do that, am I right? It is ok for me to manage the current usage on 
Maildir++, but would like to retrieve the quota information from the 
LDAP server.


What do you guys recommend? Thanks in advance for any hint or rtfm.

Best regards.

--
Marcio Merlone