Re: [Dovecot] Logging in to a virtual users Maildir

2013-11-01 Thread Joseph Tam

Steve Downes  writes:


When I open a local mutt I get the following:-
1) could not connect to vmail-s  (connection refused) (vmail-s is the
mailserver host)


Full stop, anything past here and you're debugging noise.

You've configured out SSL/TLS on dovecot ...


/etc/dovecot/dovecot.conf
# disable ssl for now
ssl = no


... but your Mutt configuration has ...


~/.mutt.muttrc
set spoolfile=imaps://steve@vmail-s/


... and your debug logs state ...


[2013-10-31 14:35:23] Reading imaps://steve@vmail-s/...
[2013-10-31 14:35:23] Looking up vmail-s...
[2013-10-31 14:35:23] Connecting to vmail-s...
[2013-10-31 14:35:23] Connection failed. errno: 111...
[2013-10-31 14:35:23] Could not connect to vmail-s (Connection
refused).
[2013-10-31 14:35:25] Connected to vmail-s:993 on fd=-1


You configured dovecot to accept only plain IMAP (on port 143), but
your mail reader is configured to connect to an IMAP/SSL service
(port 993).

Maybe it will start working if you configure Mutt

set spoolfile=imap://steve@vmail-s/

(Just guessing -- I don't use Mutt.)

Joseph Tam 


Re: [Dovecot] Configuring SPECIAL-USE Dovecot 2.0.9

2013-11-01 Thread Pascal Volk
On 10/30/2013 06:35 PM Keith Mountifield wrote:
> Hi All,
> 
> I'm trying to configure Dovecot 2.0.9 to support Outlook 2013.
> 
> As I understand it, I need to configure XLIST. I have added
> 
> imap_capability = +XLIST
> 
> to 20-imap.conf
> 
> When I try to query the IMAP folders I get an error "An IMAP command
> Failed". Looking at the logs I get XLIST Command not found.
> 
> I can only assume that I'm missing something in the configuration.
> 
> Any help would be greatly appreciated

Simple solution: Update to a newer version.

XLIST was added in Dovecot v2.1.x on Mar 21 2012:
http://hg.dovecot.org/dovecot-2.1/rev/03499202690f

Dovecot v2.1.4 has been released on 2012-04-09.


Regards,
Pascal
-- 
The trapper recommends today: c01dcafe.1330...@localdomain.org


Re: [Dovecot] init script as provided http://wiki2.dovecot.org/DovecotInit

2013-11-01 Thread Pascal Volk
On 10/31/2013 11:19 AM Jess Portnoy wrote:
> Hello list,
> 
> I would add:
> # dovecotStartup script for the dovecot server
> #
> # chkconfig: - 
> # processname: dovecot
> # config: /path/to/config
> # pidfile: /path/to/pid
> 
> So that it supports the chkconfig used by RHEL and clones too.
> 
> Also, maybe it should be installed by the Makefile's install target? it 
> could then also set:
> DAEMON=/path/to/dovecot/daemon
> instead of:
> DAEMON=/usr/local/sbin/dovecot
> 
> Cause naturally, it will know the prefix chosen.
> 
> May the source be with you,
> 
> Jess Portnoy

The comments between "### BEGIN INIT INFO" and "### END INIT INFO" are
comments as defined in "Comment Conventions for Init Scripts"¹.
Therefore each LSB compliant Linux distributions should know how to
handle those comments.

The keywords you've mentioned are not defined in the specification.
I think it would be the distribution's job to add local extensions (see
specification).

Also the comments are ignored by other operation systems, e.g. *BSD or
Solaris.

Reason, why the Makefile shouldn't install the init script:

  - there could be a /etc/init.d/dovecot from a package
  - the init script (copied from doc/dovecot-initd.sh) could contain
local modifications


Regards,
Pascal
--
1 =
http://refspecs.linuxfoundation.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html

-- 
The trapper recommends today: fabaceae.1330...@localdomain.org


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

2013-11-01 Thread Robert Schetterer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



Am 01.11.2013 17:26, schrieb 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

thats simply to old to give good advice, upgrade to a recent version

however perhaps read http://wiki.dovecot.org/Plugins/Listescape


> # 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
> 
> 


Best Regards
MfG Robert Schetterer

- -- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSc+ueAAoJEP8jBObu0LlEWz0H/j0Wij9fqr5Aj5N3fa/mR2TC
62hOl//R2QuSLmBz4WSPz2athWmY/VHF8MVfN0FBehuzZQwK1+i8bUZgKCDu4v1P
kWikdxJp+wV2jZeAFvOn6NcfsFwLIHW4yDTRS5CbguAM+ECYwkp9JqW/oZ2onA/2
rRCERoxd263SLkuuXe1VU0zUMwXkGAf88d3+wzTzjAcbIx6iQn1TwEg+1wckFndS
IdFwsDdDumNTWFNWHsgDNYlrMOBkcQCgrehhUNCl6c8O3hm4r/eRZzR2ljTmsmYi
QfJG8ZIuMa1c15Uh3zzATCkmWQofH+CVcTOPQJIgrwJyFqGCnILtjhks0w2SaDQ=
=JQTg
-END PGP SIGNATURE-


Re: [Dovecot] Logging in to a virtual users Maildir

2013-11-01 Thread Steffen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve Downes wrote:

> # disable ssl for now ssl = no disable_plaintext_auth = no
> 

> set spoolfile=imaps://steve@vmail-s/

> [2013-10-31 14:35:23] Looking up vmail-s... [2013-10-31 14:35:23] 
> Connecting to vmail-s... [2013-10-31 14:35:23] Connection failed. 
> errno: 111... [2013-10-31 14:35:23] Could not connect to vmail-s 
> (Connection refused).

You have setup mutt to connect to vmail-s, but in your server you have
disbled ssl. Does Dovecot listen on 993 at all? You get Connection
refused.

- -- 
Steffen
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEVAwUBUnPePV3r2wJMiz2NAQLLdggAmymcKwIJgCELX9iRKW9Isjdt7AI7VhTz
uTd5iQYmWRutX0h0dQBv5GMSym2mSgc/liCdOGRRR7tr2D2p7UjIoi1FNDnTOx1p
NSUXoTuM3c21+2FAv8Zdi+l9KtLUGZSWFbV2ToOAfBrRQ88nkcG1Eu5yCv4B+mis
eDPqDE4uvRty2xGzbqks7Tt2TTHbU2eJbxs1WgObpONQmM3i0Oaypv8LojykP4yI
tph8dPW4p6dqC3vRiKI3/aIQjY9XF2/F2w8fhZZfSFD0CepboWFWwAeRCQLZclP2
ZxOYm0ykiiw2rV0GUvhlCEodKb2T9P+7z79uPV6QEAnjK0Yg1rcG+A==
=ik34
-END PGP SIGNATURE-


[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/