Re: Migrate Dovecot email archive
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 19 Jun 2016, Marco Usai wrote: Yesterday I'vemigrated Dovecot mail archive between two servers using the procedure below: 1) Createon the new server the same email accounts existing on the old server. 2) Transferthe "tarred" mail folder from the old to the new server. For testingpurposes, on Outlook 2007 I've deleted a .pst cache file, forcing the client todownload all emails again. The switchwas absolutely transparent without any problem. All the emails were availableand Outlook 2007 noticed no changes. Can Iconsider this a correct procedure or should I use some tools like Dsync ? If you do not change the mail storage format (Maildir -> dbox, or something like that), do not change 32bit -> 64bit, big / little endian a.s.o. and if you make sure the old mailbox is not accessed, while you copy the data over, it should work :-) In fact, I use "rsync". - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQEVAwUBV2eXs3z1H7kL/d9rAQKUUQf/WebZz4IiJogPyWO0vCvJVomDl12E/1cX fDz0FW7wceJrKIYmLfIJa5S4L2r1bimdfVimiPbs3ORMbBV37TXH8lErbLZMSrEi gjn7FI1Q6hF97Lrc1YSn9UkENp9M7bXpXsDPiuOn++KXZ+fM5QkSzKxV2F9YAoap J/efjEo/cliOiSYWC5R4yZ8bIY45x83kxMhWctH3ZQ/dCGWdiAgGxg0l+bP0AurV 7vEJhfhJxdV2FnaQtnhHHRuOFcIVBSyvDWkx9iQZ5ZiTnE9NDsVYf5gkPy+2dkrf XvtZ+G9HRaBGrCkqGJxWZTRzjgtnBYx6lxz+9zPgRVGpguKFR7Qnkg== =2W8A -END PGP SIGNATURE-
Re: Increased errors "Broken MIME parts" in log file
On 20/06/2016 07:44, Urban Loesch wrote: Hi, > I installed a new version three days ago. There are no more error entries like "Broken MIME parts" in the logs. Many thanks for the fix Urban Sorry I didn't report back also, but can confirm the patch also removed the errors here, too. Thank you very much! -- Dave
Re: Increased errors "Broken MIME parts" in log file
Il 20/06/2016 08:44, Urban Loesch ha scritto: Should be fixed by https://github.com/dovecot/core/commit/1bc6f1c54b4d77830288b8cf19060bd8a6db7b27 Oh, also this is required for it: https://github.com/dovecot/core/commit/20faa69d801460e89aa0b1214f3db4b026999b1e I installed a new version three days ago. There are no more error entries like "Broken MIME parts" in the logs. Hi, I'm also upgrade dovecot: # dovecot --version 2.2.24.3 (55cdc32) but I saw the same error (only one): Jun 19 09:36:54 pop02 dovecot: imap(pi...@pluto.com): Error: Corrupted index cache file /home/domains/pluto.com/pippo/Maildir/dovecot.index.cache: Broken MIME parts for mail UID 999 in mailbox INBOX: Cached MIME parts don't match message during parsing: Cached header size mismatch (parts=41005f057805055d8f5d0200410091056400650018599059020048002b064b004e00500050004800fd064a004d008d57fa576d004000405f4d015301a101a601) Jun 19 09:36:54 pop02 dovecot: imap(pi...@pluto.com): BUG: Unknown internal error in=4990 out=421981 session= I will send this message to Timo or Teemu for further analysis. -- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
Re: Migrate Dovecot email archive
On 6/20/2016 3:13 AM, Steffen Kaiser wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sun, 19 Jun 2016, Marco Usai wrote: > >> Yesterday I'vemigrated Dovecot mail archive between two servers using the >> procedure below: >> 1) Createon the new server the same email accounts existing on the old >> server. >> 2) Transferthe "tarred" mail folder from the old to the new server. >> For testingpurposes, on Outlook 2007 I've deleted a .pst cache file, forcing >> the client todownload all emails again. >> >> The switchwas absolutely transparent without any problem. All the emails >> were availableand Outlook 2007 noticed no changes. >> Can Iconsider this a correct procedure or should I use some tools like Dsync >> ? > If you do not change the mail storage format (Maildir -> dbox, or > something like that), do not change 32bit -> 64bit, big / little endian > a.s.o. > > and if you make sure the old mailbox is not accessed, while you copy the > data over, > > it should work :-) > > In fact, I use "rsync". Imapsync is easier. Made migration from dovecot to Office 365, then back to dovecot painless and easy, and can be done while both systems are live.
Re: Migrate Dovecot email archive
Yes, infact it's working: after thecopy I've switched mx record and server address on the email client so, the oldmailbox is not used. Mailstorage format was the same on both servers (mbox). I'vepreferred this approach than the use of Dsync or Imapsync tools. Il Lunedì 20 Giugno 2016 9:14, Steffen Kaiser ha scritto: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 19 Jun 2016, Marco Usai wrote: > Yesterday I'vemigrated Dovecot mail archive between two servers using the > procedure below: > 1) Createon the new server the same email accounts existing on the old server. > 2) Transferthe "tarred" mail folder from the old to the new server. > For testingpurposes, on Outlook 2007 I've deleted a .pst cache file, forcing > the client todownload all emails again. > > The switchwas absolutely transparent without any problem. All the emails were > availableand Outlook 2007 noticed no changes. > Can Iconsider this a correct procedure or should I use some tools like Dsync ? If you do not change the mail storage format (Maildir -> dbox, or something like that), do not change 32bit -> 64bit, big / little endian a.s.o. and if you make sure the old mailbox is not accessed, while you copy the data over, it should work :-) In fact, I use "rsync". - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQEVAwUBV2eXs3z1H7kL/d9rAQKUUQf/WebZz4IiJogPyWO0vCvJVomDl12E/1cX fDz0FW7wceJrKIYmLfIJa5S4L2r1bimdfVimiPbs3ORMbBV37TXH8lErbLZMSrEi gjn7FI1Q6hF97Lrc1YSn9UkENp9M7bXpXsDPiuOn++KXZ+fM5QkSzKxV2F9YAoap J/efjEo/cliOiSYWC5R4yZ8bIY45x83kxMhWctH3ZQ/dCGWdiAgGxg0l+bP0AurV 7vEJhfhJxdV2FnaQtnhHHRuOFcIVBSyvDWkx9iQZ5ZiTnE9NDsVYf5gkPy+2dkrf XvtZ+G9HRaBGrCkqGJxWZTRzjgtnBYx6lxz+9zPgRVGpguKFR7Qnkg== =2W8A -END PGP SIGNATURE-
Re: Recipient delimiter and lmtp proxying
On 17/06/2016 13:39, Dave wrote: On 16/06/2016 20:49, Dave wrote: ... driver = sql override_fields = proxy=y destuser=%{orig_user} ... <"user+Junk\ Email"@domain> will extract user in director, but passes through the unescaped: to the backend, which leads to a 501 5.5.4 Invalid parameter. Just following up on my (one-man) thread, in case it is of future use to anyone: Eventually, setting: destuser="%{orig_username}"@%{orig_domain} worked around the issue mentioned above, allowing both recipient-delimiter'ed usernames and quoted local to be passed front to back without issue. -- Dve
Re: Fedora + Dovecot - only one client can connect per user?
Am 20.06.2016 um 04:15 schrieb Thomas Cameron: Howdy - Hi Thomas, I am running dovecot-2.2.24-1.fc23.x86_64 on Fedora 23. It's up to date as of last night. When I log in from a desktop using Thunderbird on Linux, my Android phone (Nexus 6P) stops receiving mail. It happens if I'm on my laptop or my desktop. My wife has the same problem using Thunderbird on Windows. If she leaves the house and forgets to shut down her MUA, her phone can't retrieve messages. Is this expected behavior? Can I change it? I feel like it's pretty common for folks to have multiple devices which access the same mail account. Between phones, tablets, PCs, etc., this seems like a pretty common scenario. no, that's not to be expected and should work pretty well. It's a pretty vanilla setup: [root@wintermute ~]# dovecot -n # 2.2.24 (a82c823): /etc/dovecot/dovecot.conf # OS: Linux 4.4.4-301.fc23.x86_64 x86_64 Fedora release 23 (Twenty Three) mbox_write_locks = fcntl namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } ssl = required ssl_cert = # 2.2.24 (a82c823): /etc/dovecot/dovecot.conf # OS: Linux 4.5.5-300.fc24.x86_64 x86_64 Fedora release 24 (Twenty Four) Used an F24 test VM which came up with the same Fedora default dovecot configuration. I am a bit surprised that your's provides access to mail though it has no configuration where the mailbox is located on the drive: "mail_location" is empty as well "location" in the inbox namespace. What is being logged in /var/log/maillog when the access fails? My test system did log Jun 20 20:37:36 fedora24 dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13441, secured, session=<6G6V/7k1FNV/AAAB> Jun 20 20:37:36 fedora24 dovecot: imap(dalloz): Error: User initialization failed: Namespace '': Mail storage autodetection failed with home=/home/dalloz Jun 20 20:37:36 fedora24 dovecot: imap: Error: Invalid user settings. Refer to server log for more information. Made it working by adding mail_location = mbox:~/mail:INBOX=/var/mail/%u to /etc/dovecot/conf.d/10-mail.conf. 2 parallel IMAP logins then were no problem at all. The default limit on your Fedora is # doveconf | grep mail_max_userip_connections Thanks! Thomas Kind regards Alexander
Disabling passdb pam in local.conf
Greetings, I'm trying to create a configuration that leaves every config file deployed by an install process or paket management software untouched. The goal is to put every configuration required into /etc/dovecot/local.conf. I've come quite far, but I fail to disable pam as passdb service in local.conf. What I get if I run doveconf -n is this section: passdb { driver = pam } It is in there, because 10-auth.conf includes it: !include auth-system.conf.ext These actions are not an option at the moment: - modify /etc/dovecot/conf.d/10-auth.conf and comment/remove the !include-statement - create an /etc/dovecot/dovecot.conf which would contain all options required and would not include any other *.conf files Reading http://wiki2.dovecot.org/ConfigFile I see ways to include external files, but nothing to exclude a file in local.conf. Knowing Timo I would expect there is a way to acchieve what I want. I just don't seem to find it. What am I missing? Regards, p@rick -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Re: Disabling passdb pam in local.conf
Sent from my iPhone > On Jun 20, 2016, at 3:03 PM, Patrick Ben Koetter wrote: > > Greetings, > > I'm trying to create a configuration that leaves every config file deployed by > an install process or paket management software untouched. The goal is to put > every configuration required into /etc/dovecot/local.conf. > > I've come quite far, but I fail to disable pam as passdb service in > local.conf. What I get if I run doveconf -n is this section: > > passdb { > driver = pam > } > > It is in there, because 10-auth.conf includes it: > > !include auth-system.conf.ext > > > These actions are not an option at the moment: > > - modify /etc/dovecot/conf.d/10-auth.conf and comment/remove the > !include-statement > - create an /etc/dovecot/dovecot.conf which would contain all options required > and would not include any other *.conf files > > Reading http://wiki2.dovecot.org/ConfigFile I see ways to include external > files, but nothing to exclude a file in local.conf. > > Knowing Timo I would expect there is a way to acchieve what I want. I just > don't seem to find it. > > What am I missing? > > Regards, > > p@rick > > -- > [*] sys4 AG > > https://sys4.de, +49 (89) 30 90 46 64 > Schleißheimer Straße 26/MG,80333 München > Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 > Vorstand: Patrick Ben Koetter, Marc Schiffbauer > Aufsichtsratsvorsitzender: Florian Kirstein > Is your goal to have "1" config file? If so get your system working how you want it then: doveconf -n > /etc/dovecot/config.test Start dovecot with this file.
Re: Disabling passdb pam in local.conf
* Edgar Pettijohn : > Is your goal to have "1" config file? No, that would eliminate the ability to change distro settings via the regular package management. My goal is to add/remove what my service requires via the additional local.conf. p@rick -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Re: Disabling passdb pam in local.conf
What distro settings? Sent from my iPhone > On Jun 20, 2016, at 4:28 PM, Patrick Ben Koetter wrote: > > * Edgar Pettijohn : >> Is your goal to have "1" config file? > > No, that would eliminate the ability to change distro settings via the regular > package management. > > My goal is to add/remove what my service requires via the additional > local.conf. > > p@rick > > -- > [*] sys4 AG > > https://sys4.de, +49 (89) 30 90 46 64 > Schleißheimer Straße 26/MG,80333 München > > Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 > Vorstand: Patrick Ben Koetter, Marc Schiffbauer > Aufsichtsratsvorsitzender: Florian Kirstein >
Re: Disabling passdb pam in local.conf
* Edgar Pettijohn : > What distro settings? These files should remain unchanged: ~$ tree /etc/dovecot/ /etc/dovecot/ ├── conf.d │ ├── 10-auth.conf │ ├── 10-director.conf │ ├── 10-logging.conf │ ├── 10-mail.conf │ ├── 10-master.conf │ ├── 10-ssl.conf │ ├── 10-tcpwrapper.conf │ ├── 15-lda.conf │ ├── 15-mailboxes.conf │ ├── 20-imap.conf │ ├── 90-acl.conf │ ├── 90-plugin.conf │ ├── 90-quota.conf │ ├── auth-checkpassword.conf.ext │ ├── auth-deny.conf.ext │ ├── auth-master.conf.ext │ ├── auth-passwdfile.conf.ext │ ├── auth-sql.conf.ext │ ├── auth-static.conf.ext │ ├── auth-system.conf.ext │ └── auth-vpopmail.conf.ext ├── dovecot.conf ├── dovecot-dict-sql.conf.ext ├── dovecot.pem ├── dovecot-sql.conf.ext ├── private └── README Only /etc/dovecot/local.conf should be changed. p@rick > > Sent from my iPhone > > > On Jun 20, 2016, at 4:28 PM, Patrick Ben Koetter wrote: > > > > * Edgar Pettijohn : > >> Is your goal to have "1" config file? > > > > No, that would eliminate the ability to change distro settings via the > > regular > > package management. > > > > My goal is to add/remove what my service requires via the additional > > local.conf. > > > > p@rick > > > > -- > > [*] sys4 AG > > > > https://sys4.de, +49 (89) 30 90 46 64 > > Schleißheimer Straße 26/MG,80333 München > > > > Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 > > Vorstand: Patrick Ben Koetter, Marc Schiffbauer > > Aufsichtsratsvorsitzender: Florian Kirstein > > -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein