Re: MySQL connection with SSL

2024-05-16 Thread Gandalf Corvotempesta via dovecot
Il giorno gio 16 mag 2024 alle ore 16:35 Stuart Henderson via dovecot ha scritto: > Wrong bit of the manual. See the sample dovecot-sql.conf.ext or > https://doc.dovecot.org/configuration_manual/authentication/sql/#id10 Seems much easier with this... I'll try tomorrow

Re: MySQL connection with SSL

2024-05-16 Thread Gandalf Corvotempesta via dovecot
Il giorno gio 16 mag 2024 alle ore 15:58 Aki Tuomi ha scritto: > I don't think dovecot will read your .my.cnf̣. > > See supported options at https://doc.dovecot.org/settings/plugin/sql-mysql/ Probably "client_flags" is what i need to use but: 1. i don't know the int value for CLIENT_SSL (and

Re: MySQL connection with SSL

2024-05-16 Thread Gandalf Corvotempesta via dovecot
Il giorno gio 16 mag 2024 alle ore 15:34 Christopher Wensink ha scritto: > > See here for the documentation for dovecot: > > https://doc.dovecot.org/admin_manual/ssl/ This has nothing to do with mysql connection. What i've asked for is how to tell dovecot to connect to a mysql server by using

Re: MySQL connection with SSL

2024-05-16 Thread Gandalf Corvotempesta via dovecot
Il giorno gio 16 mag 2024 alle ore 15:12 Christopher Wensink via dovecot ha scritto: > Yes. > > https://dev.mysql.com/doc/refman/8.3/en/using-encrypted-connections.html This is for using ssl with native mysql client. Dovecot uses the native library or has a embedded mysql library ? because my

MySQL connection with SSL

2024-05-16 Thread Gandalf Corvotempesta via dovecot
Hi all is possible to tell dovecot to use a mysql connection with SSL ? My new remote mysql server only allows ssl connections ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org

Re: Variable expansion on %w

2024-04-21 Thread Gandalf Corvotempesta via dovecot
so it's not possible without using lua? i think this is a bug honestly Il mer 17 apr 2024, 16:16 Gandalf Corvotempesta < gandalf.corvotempe...@gmail.com> ha scritto: > Il giorno mer 17 apr 2024 alle ore 15:31 Aki Tuomi > ha scritto: > > If you have version with Lua sup

Re: Variable expansion on %w

2024-04-17 Thread Gandalf Corvotempesta via dovecot
Il giorno mer 17 apr 2024 alle ore 15:31 Aki Tuomi ha scritto: > If you have version with Lua support, you can make a passdb with lua that > base64 encodes the plain password. Then it should work. I'm not using lua currently, and i'm planning to move the server to a new one with users on DB,

Re: Variable expansion on %w

2024-04-17 Thread Gandalf Corvotempesta via dovecot
r 2024 alle ore 14:22 Benny Pedersen via dovecot ha scritto: > > Gandalf Corvotempesta via dovecot skrev den 2024-04-17 08:31: > > im following the docs to change the password schema > > > > docs says that i have to pass the clear password to the post login > >

Re: Variable expansion on %w

2024-04-17 Thread Gandalf Corvotempesta via dovecot
is trying to expand %Y before passing it to the post login script Il mer 17 apr 2024, 08:24 Aki Tuomi ha scritto: > Can you explain what you are trying to do? > > Aki > > On 16/04/2024 21:36 EEST Gandalf Corvotempesta via dovecot < > dovecot@dovecot.org> wrote: >

Re: Variable expansion on %w

2024-04-16 Thread Gandalf Corvotempesta via dovecot
guys any help ? Is not possible to change the password schema when using passwd file ? Il giorno sab 13 apr 2024 alle ore 14:48 Gandalf Corvotempesta ha scritto: > > any clue? > > Il gio 11 apr 2024, 21:57 Gandalf Corvotempesta > ha scritto: >> >> I'm follo

Re: Variable expansion on %w

2024-04-13 Thread Gandalf Corvotempesta via dovecot
any clue? Il gio 11 apr 2024, 21:57 Gandalf Corvotempesta < gandalf.corvotempe...@gmail.com> ha scritto: > I'm following the guide for changing the password schema. > Everything works as expected (i'm using a static passwd file), but > when the plain password has a % inside, do

Variable expansion on %w

2024-04-11 Thread Gandalf Corvotempesta via dovecot
I'm following the guide for changing the password schema. Everything works as expected (i'm using a static passwd file), but when the plain password has a % inside, dovecot is trying to expand that, triggering an error: Apr 11 21:33:55 mail02 dovecot: pop3(x)<3962994><4soGPNcVXsoln9W6>: Error:

imap/pop proxy

2024-04-11 Thread Gandalf Corvotempesta via dovecot
Hi all first time user as dovecot imap/pop3 proxy. As i'm migrating some mailboxes to a new server, i would like to move a couple at once, not everything (more than 10k). The quickest way would be to setup the current (and old) dovecot server as pop3/imap server AND proxy. I'm thinking to start

Re: server migration

2024-04-10 Thread Gandalf Corvotempesta via dovecot
.. The rest should present no issue.. On 2024-04-10 14:25, Kirill Miazine via dovecot wrote: > > > • Gandalf Corvotempesta via dovecot [2024-04-10 23:18]: >> Il giorno mer 10 apr 2024 alle ore 23:12 Kirill Miazine via dovecot

Re: server migration

2024-04-10 Thread Gandalf Corvotempesta via dovecot
Il giorno mer 10 apr 2024 alle ore 23:12 Kirill Miazine via dovecot ha scritto: > UIDVALIDITY change In which case uidvalidity would change ? Manually changes in config file ? ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email

Re: server migration

2024-04-10 Thread Gandalf Corvotempesta via dovecot
Il giorno mer 10 apr 2024 alle ore 22:32 Marc via dovecot ha scritto: > Why? The whole idea about having a LTS distribution is that you almost never > need to do this? It is not like the imap/pop/smtp standards are having yearly > innovations. Or is this a service you provide for clients? In

Re: server migration

2024-04-10 Thread Gandalf Corvotempesta via dovecot
Il giorno mer 10 apr 2024 alle ore 21:40 Kirill Miazine via dovecot ha scritto: > What you describe is exactly what I have been doing since ... forever > > - reduce TTL > - setup new server > - rsync > - stop ALL mail services on old server (also anything which might be > doing deliveries,

Re: server migration

2024-04-10 Thread Gandalf Corvotempesta via dovecot
Guys, any help? Also, what would happen if the new server has a different hostname ? Il giorno dom 10 mar 2024 alle ore 14:28 Gandalf Corvotempesta ha scritto: > > Hi guys > I have to migrate around 10k mailboxes from dovecot 2.13 to (i think) > the same version but on a different s

Re: Archive maildir

2019-02-13 Thread Gandalf Corvotempesta via dovecot
Il giorno mer 13 feb 2019 alle ore 14:02 @lbutlr via dovecot ha scritto: > Why would the script be looking at the contents of the messages at all? css having to "deal" with the subject? If you are using maildir, you have the > timestamp in the filename, and you can easily sort a message into

Re: Archive maildir

2019-02-13 Thread Gandalf Corvotempesta via dovecot
Il giorno mer 13 feb 2019 alle ore 11:09 Aki Tuomi ha scritto: > with 2.3.4 you could use the new FILTER command over IMAP to run sieve script. It's a very very old server, i'm not on 2.4.x I've managed to make this working: https://gist.github.com/fwenzel/280896 is working properly. I had to

Archive maildir

2019-02-13 Thread Gandalf Corvotempesta via dovecot
Hi to all We have a maildir with about 180GB of emails. We have to archive them to a structure like: .Archive.YYY./MM.folder Are you aware of a script doing this ? I've found a perl script that doesn't spit in year and month and a very, very, very, very, very old python script that: 1) doesn't

Re: end-to-end encryption

2018-05-16 Thread Gandalf Corvotempesta
Il giorno mer 16 mag 2018 alle ore 12:02 Aki Tuomi ha scritto: > To be strict, 'end to end' would mean that the SENDER would encrypt it > on his station, and RECEIVER would only decrypt it on his station. > Everything else is not end-to-end =) Yes, of course, but this

Re: end-to-end encryption

2018-05-16 Thread Gandalf Corvotempesta
Il giorno mer 16 mag 2018 alle ore 11:19 ha scritto: > I personally use gpgit https://github.com/EtiennePerot/gpgit > Which does the encryption of messages. Then I use a sieve script which > calls gpgit for every msg and encrypts before saving into mailbox If I understood

Re: end-to-end encryption

2018-05-16 Thread Gandalf Corvotempesta
Il giorno mer 16 mag 2018 alle ore 06:09 Aki Tuomi ha scritto: > You could probably automate this with sieve and e.g. GnuPG, which would mean that all your mails are encrypted without server having key to decrypt this. Any guide or sample to look for ?

end-to-end encryption

2018-05-15 Thread Gandalf Corvotempesta
Hi to all I was looking at protonmail.com Is possible to implement and end-to-end encryption with dovecot, where server-side there is no private key to decrypt messages? If I understood properly, on protonmail the private key is encrypted with user's password, so that only an user is able to

Re: IMAP proxy

2017-12-19 Thread Gandalf Corvotempesta
2017-12-15 18:21 GMT+01:00 Aki Tuomi : > Return from passdb, 'proxy host=your-new-host port=143 ssl=starttls' So, instead of returning the current db output: "user, password, userdb_mail, userdb_sieve, .." is enough to only return "proxy host=your-new-host port=143

IMAP proxy

2017-12-15 Thread Gandalf Corvotempesta
I'm migrating an old server to another old server (same dovecot version in both servers) The migration itself is straightforward, stop dovecot on the old server, migrate everything via rsync, start dovecot to the new server. There is only one step left: change the dns configuration, pointing from

Server migration

2017-11-24 Thread Gandalf Corvotempesta
I've asked this before, but now it's time to move one server to another, I can't delay the operation anymore (the older server is failing) Both server are pretty old: 1.2.15 Probably, faster way would be to rsync all mailboxes from the older server to the newer one. I can start migrating

Server migration

2017-03-20 Thread Gandalf Corvotempesta
Hi to all. It's time to migrate an old server to a newer platform Some questions: 1) what happens by changing the pop3/IMAP server on the client? Is the client (Outlook, Thunderbird,...) smart enough to not download every message again? I'm asking this because the easier way to migrate would be

Re: Upgrade from 1.2 to 2.2

2017-02-15 Thread Gandalf Corvotempesta
2017-02-15 13:41 GMT+01:00 Aki Tuomi : > Btw, I think the most safe option would be to make *new* server > (advantage to upgrade the platform here too) and migrate users to the > new server instead of upgrading. Just my 2c. Probably, yes.

Re: Upgrade from 1.2 to 2.2

2017-02-15 Thread Gandalf Corvotempesta
2017-02-15 13:27 GMT+01:00 Aki Tuomi : > For good pointers, see http://wiki.dovecot.org/Upgrading > > it's not complete, but it should give you some idea. I've already read that, and as wrote previously, everything broke down. dovecont -n wasn't able to convert the

Upgrade from 1.2 to 2.2

2017-02-15 Thread Gandalf Corvotempesta
Hi, I have a production server running Debian Squeeze with Dovecot 1.2 I would like to upgrade everything to Jessie, running 2.2 Last time I did something similiar, but from Lenny to Squeeze, the whole dovecot installation broke. Any suggestion on how to upgrade everything ? Can I test our

Re: Dovecot proxy

2016-11-26 Thread Gandalf Corvotempesta
2016-11-17 9:11 GMT+01:00 Gandalf Corvotempesta <gandalf.corvotempe...@gmail.com>: > Hi to all > I have some *production* pop3/inappropriate server that i would like to move > under a proxy > > Some questions: > 1. Keeping the same original hostname on the proxy (in exa

Dovecot proxy

2016-11-17 Thread Gandalf Corvotempesta
Hi to all I have some *production* pop3/inappropriate server that i would like to move under a proxy Some questions: 1. Keeping the same original hostname on the proxy (in example mail.mydomain.tld) and changing the hostname on the imap server, makes some troubles like MUA redownloading all the

Re: Dovecot Proxy and Director

2016-10-29 Thread Gandalf Corvotempesta
2016-10-29 17:02 GMT+02:00 Aki Tuomi : > You could use private ip addresses backends so you don't even need to expose > them to internet at all. This means creating a VPN between my local DC with Dovecot servers and the cloud service provider with proxies.

Dovecot Proxy and Director

2016-10-29 Thread Gandalf Corvotempesta
Hi, just a simple question: by using a directory and a proxy, I would be able to totally hide the pop3/imap server ip addresses from outside? I'm asking this because I would like to hide the real server IP for security reasosn (DDoS and so on). The proxy would be placed on servers with high

Re: Server migration

2016-10-27 Thread Gandalf Corvotempesta
2016-10-27 14:36 GMT+02:00 Timo Sirainen : > imapsync will change IMAP UIDs and cause clients to redownload all mails. > http://wiki2.dovecot.org/Migration/Dsync should work though. Just to be sure: dsync from the *new* node would connect via IMAP to the older node and transfer

Re: Server migration

2016-10-26 Thread Gandalf Corvotempesta
2016-10-26 8:57 GMT+02:00 Aki Tuomi : > If you are moving from 1.x to 2.x, I think you should make some trials > first, and preferably move the user one at a time, blocking access to > old server/new server during move. It is very forklift upgrade, much danger. Yes, I'll do

Re: Server migration

2016-10-26 Thread Gandalf Corvotempesta
Il 26 ott 2016 8:30 AM, "Aki Tuomi" ha scritto: > I would recommend using same major release with replication. > > If you are using maildir++ format, it should be enough to copy all the > maildir files over and start dovecot on new server. > This is much easier than dovecot

Shared storage for dovecot cluster

2016-10-26 Thread Gandalf Corvotempesta
As I'm planning some server migrations and a new mail architecture, i would like to create an HA cluster Any advice on which kind of shared storage should i use? Are gluster performances with small files enough for dovecot? Any other solution? It's mandatory to avoid any splibrains or similiar

Re: Server migration

2016-10-26 Thread Gandalf Corvotempesta
Il 24 ott 2016 5:11 PM, "Michael Seevogel" ha scritto: > I meant your old server. With "old" I was expecting something like Debian Sarge or SuSE Linux 9.3. That would have been really old, but since you are on Debian Squeeze, I would definitely choose the way with an

Re: Server migration

2016-10-24 Thread Gandalf Corvotempesta
2016-10-24 14:47 GMT+02:00 Michael Seevogel : > P.S. You should think about to use on the new server mdbox as mailbox > format. > That's kinda a hybrid of mbox and maildir and benefits of features of both > its predecessors. However, backup and restoring is in case of mdbox

Re: Server migration

2016-10-24 Thread Gandalf Corvotempesta
2016-10-24 14:47 GMT+02:00 Michael Seevogel : > If your server OS supports newer Dovecot versions then I would highly > suggest you to upgrade to Dovecot 2.2.xx (or at least to the latest 2.1) and > set up Dovecot's replication[1] feature. Are you talking about the new

Re: Server migration

2016-10-24 Thread Gandalf Corvotempesta
2016-10-24 11:23 GMT+02:00 Karol Augustin : > When I am doing this I just turn off both servers for the third sync. > Its short enough to not cause much problem. And then after third sync I > start the new server and all clients can connect to it so I also > mitigate any

Server migration

2016-10-24 Thread Gandalf Corvotempesta
Hi i have to migrate, online, a dovecot 1.2.15 to a new server. Which is the best way to accomplish this? I have 2 possibility: 1) migrate from the very old server to a newer server with the same dovecot version 2) migrate from the very old server to a new server with the latest dovecot version

Re: Move dovecot between servers

2016-08-30 Thread Gandalf Corvotempesta
2016-08-30 10:49 GMT+02:00 Aki Tuomi : > Hi! > > See http://wiki2.dovecot.org/Upgrading I know this guide but last time i had to upgrade between 1.2 to 2.0 it was totally a mess, as doveconf -n -c /etc/dovecot/dovecot.conf > dovecot-2.conf didn't output anything.

Move dovecot between servers

2016-08-30 Thread Gandalf Corvotempesta
Hi to all I have a very old dovecot server (1.2.15) with about 195GB used and 1081 email accounts. I have to move this server to another one with contextual dovecot upgrade. Anyone did this before? Any advice? Obviously, existing emails *must not* be downloaded twice by existing clients (outlook,