<html><head></head><body><div class="ydp7352f1c0yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div dir="ltr" data-setdir="false">Hi Aki,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks. I didn't know that about imapc - but by the way, I finally got it working.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">The reason why I am inserting Dovecot between my (single) client and our Exchange server (eventually - I am still testing against imap.gmail.com) is to that I can manipulate the email with Sieve due to limitations of my client (Genesys).</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Give the above scenario, should I use imapc or proxy ?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks for your help.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regards,<br>David.</div><div dir="ltr" data-setdir="false"><br></div><div><br></div>
</div><div id="yahoo_quoted_4112318236" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, 27 October 2020, 10:17:37 pm NZDT, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">You know that imapc != imap proxy.<br clear="none"><br clear="none">imapc is a thin client, which is a "mail storage provider" like maildir.<br clear="none"><br clear="none">imap proxy is when you proxy the connection somewhere. this is done with proxy_ settings in passdb.<br clear="none"><br clear="none">You need to specify<br clear="none"><br clear="none">ssl_client_ca_dir = /etc/ssl/certs<br clear="none"><br clear="none">to get cert verification working with imapc. it's required.<br clear="none"><br clear="none">Aki<br clear="none"><div class="yqt9358439724" id="yqtfd22794"><br clear="none">> On 27/10/2020 10:54 David Tildesley <<a shape="rect" ymailto="mailto:davotnz@yahoo.co.nz" href="mailto:davotnz@yahoo.co.nz">davotnz@yahoo.co.nz</a>> wrote:<br clear="none">> <br clear="none">> <br clear="none">> I have solved the port problem by specifying it in the passdb section as userdb_imapc_port=993<br clear="none">> <br clear="none">> But:<br clear="none">> This is in the error log when I make a connection from the client:<br clear="none">> <br clear="none">> Oct 27 08:49:16 imapproxy01 dovecot: auth: Fatal: passdb imap: Cannot verify certificate without ssl_ca_dir or ssl_ca_file setting<br clear="none">> Oct 27 08:49:16 imapproxy01 dovecot: master: Error: service(auth): command startup failed, throttling for 2 secs<br clear="none">> <br clear="none">> <br clear="none">> On Tuesday, 27 October 2020, 09:48:49 pm NZDT, David Tildesley <<a shape="rect" ymailto="mailto:davotnz@yahoo.co.nz" href="mailto:davotnz@yahoo.co.nz">davotnz@yahoo.co.nz</a>> wrote:<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <a shape="rect" ymailto="mailto:xxxx@imapproxy01" href="mailto:xxxx@imapproxy01">xxxx@imapproxy01</a>:/etc/dovecot/conf.d$ dovecot -n<br clear="none">> # 2.3.7.2 (3c910f64b): /etc/dovecot/dovecot.conf<br clear="none">> # Pigeonhole version 0.5.7.2 ()<br clear="none">> # OS: Linux 5.4.0-1031-azure x86_64 Ubuntu 20.04.1 LTS<br clear="none">> # Hostname: imapproxy01.trf04sdec2hu1b4wur4lazeo3f.px.internal.cloudapp.net<br clear="none">> auth_verbose = yes<br clear="none">> disable_plaintext_auth = no<br clear="none">> imapc_host = imap.gmail.com<br clear="none">> imapc_password = # hidden, use -P to show it<br clear="none">> imapc_port = 993<br clear="none">> imapc_ssl = imaps<br clear="none">> imapc_ssl_verify = no<br clear="none">> imapc_user = <a shape="rect" ymailto="mailto:xxxxxx@gmail.com" href="mailto:xxxxxx@gmail.com">xxxxxx@gmail.com</a><br clear="none">> mail_home = /home/vmail/%u<br clear="none">> mail_location = imapc:~/imapc<br clear="none">> mail_privileged_group = mail<br clear="none">> namespace inbox {<br clear="none">> inbox = yes<br clear="none">> location =<br clear="none">> mailbox Drafts {<br clear="none">> special_use = \Drafts<br clear="none">> }<br clear="none">> mailbox Junk {<br clear="none">> special_use = \Junk<br clear="none">> }<br clear="none">> mailbox Sent {<br clear="none">> special_use = \Sent<br clear="none">> }<br clear="none">> mailbox "Sent Messages" {<br clear="none">> special_use = \Sent<br clear="none">> }<br clear="none">> mailbox Trash {<br clear="none">> special_use = \Trash<br clear="none">> }<br clear="none">> prefix =<br clear="none">> }<br clear="none">> passdb {<br clear="none">> args = host=imap.gmail.com port=993 ssl=imaps<br clear="none">> default_fields = userdb_namespace=gmail userdb_namespace/gmail/list=yes userdb_namespace/gmail/subscriptions=no userdb_namespace/gmail/separator=. userdb_namespace/gmail/prefix=INBOX.gmail. userdb_namespace/gmail/location=imapc: userdb_imapc_host=imap.gmail.com userdb_imapc_user=<a shape="rect" ymailto="mailto:xxxx@gmail.com" href="mailto:xxxx@gmail.com">xxxx@gmail.com</a> userdb_imapc_password=#hidden_use-P_to_show# userdb_imapc_ssl=imaps userdb_imapc_ssl_ca_dir=/etc/ssl/certs userdb_imapc_port=993<br clear="none">> driver = imap<br clear="none">> }<br clear="none">> plugin {<br clear="none">> sieve = file:~/sieve;active=~/.dovecot.sieve<br clear="none">> }<br clear="none">> protocols = " imap"<br clear="none">> ssl_cert = </etc/dovecot/private/dovecot.pem<br clear="none">> ssl_client_ca_dir = /etc/ssl/certs<br clear="none">> ssl_dh = # hidden, use -P to show it<br clear="none">> ssl_key = # hidden, use -P to show it<br clear="none">> userdb {<br clear="none">> driver = prefetch<br clear="none">> }<br clear="none">> <br clear="none">> On Tuesday, 27 October 2020, 09:16:51 pm NZDT, Aki Tuomi <<a shape="rect" ymailto="mailto:aki.tuomi@open-xchange.com" href="mailto:aki.tuomi@open-xchange.com">aki.tuomi@open-xchange.com</a>> wrote:<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> > On 27/10/2020 10:08 David Tildesley <<a shape="rect" ymailto="mailto:davotnz@yahoo.co.nz" href="mailto:davotnz@yahoo.co.nz">davotnz@yahoo.co.nz</a>> wrote:<br clear="none">> > <br clear="none">> > <br clear="none">> > Hi,<br clear="none">> > <br clear="none">> > Dovecot v2.3.7.2 on Ubuntu 18.04LTS<br clear="none">> > <br clear="none">> > I have configured for imap proxy to imap.gmail.com<br clear="none">> > <br clear="none">> > However whilst the imapc_host setting is working, imapc_port is not - it ignores the value I set and dovecot always tries to connect to gmail on port 143 (as per error log output).<br clear="none">> > <br clear="none">> > I have the imapc settings in the 10-mail.conf which gets loaded by dovecoat.conf<br clear="none">> > <br clear="none">> > Looks like a bug.<br clear="none">> > <br clear="none">> > Any assistance would appreciated.<br clear="none">> > <br clear="none">> > Regards,<br clear="none">> > David.<br clear="none">> <br clear="none">> <br clear="none">> Can you provide output of `doveconf -n`?<br clear="none">> <br clear="none">> Aki<br clear="none">><br clear="none"></div></div></div>
</div>
</div></body></html>