Dovecot mail-crypt plugin

Anushka Uditha Bandara anu.udb at gmail.com
Wed Nov 7 10:46:57 EET 2018


I am sorry, I get it wrong.

Here what u asked

doveconf -n

# 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf

# Pigeonhole version 0.4.21 (92477967)

# OS: Linux 4.9.87-linuxkit-aufs x86_64 Ubuntu 18.04.1 LTS fuse.osxfs

auth_cache_size = 10 M

auth_mechanisms = plain login

auth_username_format = %n

disable_plaintext_auth = no

imap_idle_notify_interval = 4 mins

listen = *

log_path = /var/log/dovecot.log

login_greeting = Dovecot ready.

mail_attribute_dict = file:%h/Maildir/dovecot-attributes

mail_gid = 5000

mail_location = maildir:/var/mail/vhosts/%d/%n

mail_plugins = quota

mail_privileged_group = vmail

mail_uid = 5000

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 index ihave
duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve

namespace inbox {

  inbox = yes

  location =

  mailbox Archive {

    auto = subscribe

    special_use = \Archive

  }

  mailbox Drafts {

    auto = subscribe

    special_use = \Drafts

  }

  mailbox Junk {

    auto = subscribe

    special_use = \Junk

  }

  mailbox Sent {

    auto = subscribe

    special_use = \Sent

  }

  mailbox "Sent Messages" {

    special_use = \Sent

  }

  mailbox Spam {

    auto = subscribe

    special_use = \Junk

  }

  mailbox Trash {

    auto = subscribe

    special_use = \Trash

  }

  prefix =

}

passdb {

  args = /etc/dovecot/dovecot-ldap.conf.ext

  driver = ldap

}

plugin {

  imapsieve_mailbox1_before = file:/var/mail/sieve/global/learn-spam.sieve

  imapsieve_mailbox1_causes = COPY

  imapsieve_mailbox1_name = Spam

  imapsieve_mailbox2_before = file:/var/mail/sieve/global/learn-ham.sieve

  imapsieve_mailbox2_causes = COPY

  imapsieve_mailbox2_from = Spam

  imapsieve_mailbox2_name = *

  mail_crypt_curve = prime256v1

  mail_crypt_save_version = 2

  quota = maildir:User quota

  quota_exceeded_message = Benutzer %u hat das Speichervolumen
überschritten. / User %u has exhausted allowed storage space.

  sieve =
file:/var/mail/sieve/%d/%n/scripts;active=/var/mail/sieve/%d/%n/active-script.sieve

  sieve_before = /var/mail/sieve/global/spam-global.sieve

  sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment

  sieve_pipe_bin_dir = /usr/bin

  sieve_plugins = sieve_imapsieve sieve_extprograms

}

protocols = imap lmtp sieve

service auth-worker {

  user = vmail

}

service auth {

  unix_listener /var/spool/postfix/private/auth {

    group = postfix

    mode = 0666

    user = postfix

  }

  unix_listener auth-userdb {

    mode = 0600

    user = vmail

  }

  user = dovecot

}

service imap-login {

  inet_listener imap {

    port = 143

  }

  inet_listener imaps {

    port = 993

    ssl = yes

  }

}

service lmtp {

  unix_listener /var/spool/postfix/private/dovecot-lmtp {

    group = postfix

    mode = 0600

    user = postfix

  }

}

service pop3-login {

  inet_listener pop3 {

    port = 0

  }

  inet_listener pop3s {

    port = 995

    ssl = yes

  }

}

ssl = required

ssl_cert = </etc/letsencrypt/live/mail.copper.opensource.lk/.fullchain.pem

ssl_key =  # hidden, use -P to show it

userdb {

  args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n

  driver = static

}

protocol lmtp {

  mail_plugins = quota sieve

  postmaster_address = postmaster at copper.opensource.lk

}

protocol lda {

  mail_plugins = quota

  postmaster_address = postmaster at copper.opensource.lk

}

protocol imap {

  imap_client_workarounds = tb-extra-mailbox-sep

  mail_max_userip_connections = 20

  mail_plugins = quota imap_quota imap_sieve

}

protocol pop3 {

  mail_max_userip_connections = 20

  mail_plugins = quota

  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh

  pop3_uidl_format = %08Xu%08Xv

}

On Wed, Nov 7, 2018 at 2:13 PM Aki Tuomi <aki.tuomi at open-xchange.com> wrote:

> Can you send output of `doveconf -n` instead, please? =)
>
> Aki
>
> > On 07 November 2018 at 10:42 Anushka Uditha Bandara <anu.udb at gmail.com>
> wrote:
> >
> >
> > Please check the attached file.
> >
> > On Wed, Nov 7, 2018 at 2:07 PM Aki Tuomi <aki.tuomi at open-xchange.com>
> wrote:
> >
> > > doveconf -n please
> > >
> > > > On 07 November 2018 at 10:29 Anushka Uditha Bandara <
> anu.udb at gmail.com>
> > > wrote:
> > > >
> > > >
> > > > The only change which I did is updating the "dovecot.conf" file. I
> added
> > > > below lines.
> > > >
> > > > mail_plugins = $mail_plugins mail_crypt
> > > > mail_attribute_dict = file:%h/Maildir/dovecot-attributes
> > > >
> > > > plugin {
> > > >   mail_crypt_curve = <some curve you like>
> > > >   mail_crypt_save_version = 2
> > > > }
> > > >
> > > >
> > > > I realized that, mails are in plain text format even I added those
> > > > encryption as dovecot wiki.
> > > >
> > > > On Wed, Nov 7, 2018 at 1:52 PM Anushka Uditha Bandara <
> anu.udb at gmail.com
> > > >
> > > > wrote:
> > > >
> > > > > After I configuring this, I logged in to the server and check the
> > > emails.
> > > > > But they are in plain text. I can even read them from backend.
> > > > >
> > > > > On Wed, Nov 7, 2018 at 1:49 PM Aki Tuomi <
> aki.tuomi at open-xchange.com>
> > > > > wrote:
> > > > >
> > > > >>
> > > > >> > On 07 November 2018 at 10:10 Anushka Uditha Bandara <
> > > anu.udb at gmail.com>
> > > > >> wrote:
> > > > >> >
> > > > >> >
> > > > >> > I configured an email solution using dovecot and postfix and it
> is
> > > > >> working
> > > > >> > fine. Now I am working for mail encryption. Is it enough to set
> > > below
> > > > >> > configurations on dovecot for mail encryption. Because dovecot
> wiki
> > > is
> > > > >> > little bit confusing to me.
> > > > >> >
> > > > >> > "mail_plugins = $mail_plugins mail_crypt
> > > > >> > mail_attribute_dict = file:%h/Maildir/dovecot-attributes
> > > > >> >
> > > > >> > plugin {
> > > > >> >   mail_crypt_curve = <some curve you like>
> > > > >> >   mail_crypt_save_version = 2
> > > > >> > }"
> > > > >> >
> > > > >> > I am stuck in here.
> > > > >> >
> > > > >> > Thank you in advance,
> > > > >> >
> > > > >> > Anushka Bandara
> > > > >>
> > > > >> That should work, why are you stuck?
> > > > >>
> > > > >> Aki
> > > > >>
> > > > >
> > >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20181107/3596b72f/attachment-0001.html>


More information about the dovecot mailing list