different mail location in different namespace

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Thu Oct 30 14:01:24 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 30 Oct 2014, Héctor Moreno Blanco wrote:

> I think something could be done with custom namespace and a script (as 
> described in the wiki http://wiki2.dovecot.org/MailLocation), but I 
> don't know how.

Well, if this is really going to work, check out the list archive for 
environment variables in Pre-Authenticated Sessions or from extra fields 
in userdbs, that is how you have name namespace/.../location correctly, 
and then create your script and add:

  mail_executable = /usr/local/.../script /usr/local/libexec/dovecot/imap

But I think v2 requires Post-Login scripts, like so:

http://wiki2.dovecot.org/PostLoginScripting

See the use of USERDB_KEYS and creation of env vars.

> -----Mensaje original-----
> De: Steffen Kaiser [mailto:skdovecot at smail.inf.fh-brs.de]
> Enviado el: jueves, 30 de octubre de 2014 8:42
> Para: Héctor Moreno Blanco
> CC: dovecot at dovecot.org
> Asunto: Re: different mail location in different namespace
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, 29 Oct 2014, Héctor Moreno Blanco wrote:
>
>> We would like to modify this attribute for the Namespace ARCHIVO.
>> For example, if a home directory is /buzon/buzon1/11111111, the mail location for ARCHIVO would be /buzon/archivo1/11111111.
>
>> Is this modification possible without adding another attribute at the LDAP (just editing the attribute)?
>
> As far as I know, you cannot alter a value of an LDAP attribute in such sophisticated way.
>
> - --
> Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEVAwUBVFHrxnz1H7kL/d9rAQKcKggAxw6XqdOymxmiChh9Bgz9c55JL3N44jOe
> A/j4vVj5ciKleeClUWB2+Ek0ttAwP7R/L31oWw8SHC7xXTrcV5uDBfCYeIxqrqB9
> O32swSgiQ+KWZILALmMqgqYLrzUXmNaOsWVVbsf+Uy8R6u1LMf4XtNIT7hPTAkTL
> 5jTAjRRw1oBEKXJPucCtXLvoZVbDsw5hDBuLz2+UX8S7YJXG4IeFlE3Y/dnkgXRZ
> KaMYH0GXxS9ghScvr8gY+U14eCRSRDdLMwcbJ38suLWdFlQ52qxVHfg7qyucKTeD
> 7/P6UZbE+AyKwyd1HkKBt3PVpJwmHX/yyiPKrhbDb4M0Eb51/qXgRw==
> =OwEj
> -----END PGP SIGNATURE-----
> ---------------Output of GPG------------------
> Decryption of block failed
> gpg: Signature made Thu 30 Oct 2014 08:41:58 AM CET using RSA key ID 0BFDDF6B
> gpg: BAD signature from "Steffen Kaiser <skdovecot at smail.inf.fh-brs.de>"
>
> P Please consider the environment before printing this e-mail.
>
> ______________________
> This message including any attachments may contain confidential
> information, according to our Information Security Management System,
> and intended solely for a specific individual to whom they are addressed.
> Any unauthorised copy, disclosure or distribution of this message
> is strictly forbidden. If you have received this transmission in error,
> please notify the sender immediately and delete it.
>
> ______________________
> Este mensaje, y en su caso, cualquier fichero anexo al mismo,
> puede contener informacion clasificada por su emisor como confidencial
> en el marco de su Sistema de Gestion de Seguridad de la
> Informacion siendo para uso exclusivo del destinatario, quedando
> prohibida su divulgacion copia o distribucion a terceros sin la
> autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
> erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
> Gracias por su colaboracion.
>
> ______________________
>
>

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBVFJEtHz1H7kL/d9rAQItHggAw3J5ESuGlsfxfQst7jorNa0SejCcdZcZ
B52ltUFRUhgLfo+sUGVE+41f9Jt8DdPx3a/IrNtdfh8RMQWol9YXobnL2YapCa8B
AikJAC31y82Fd26GbdIDbfq9mvT8d9bRrq7L7L530Ss3ScbhP5SfJ6oeq5Cq4Wy6
RoEK7eHk0TFLo8Fb06nMDelbTL1L83YnKUBMYa8EnFRLWndGT72Qqbg1wPV6FTbD
EEodLm0VTNKx/EU7vvBLVBAKzW06W+efbONyimMtW4s8ESYHPvmD5EnunUUctATm
YPwCenrEhBZP/uWFX1rR0SCVequ7Nnsx3T8U9FcsCqWNEos4hOuR+g==
=jk5v
-----END PGP SIGNATURE-----


More information about the dovecot mailing list