Re: "sh: doveadm: command not found" with doveadm -Dv backup -R

2023-02-28 Thread James Brown
> On 28 Feb 2023, at 5:53 pm, Aki Tuomi wrote: > >> On 28/02/2023 03:54 EET James Brown wrote: >> >> I’m moving from an old mail server to a new one. >> >> On the new one, trying to transfer mailboxes from the old machine using >> doveadm. It fails s

"sh: doveadm: command not found" with doveadm -Dv backup -R

2023-02-27 Thread James Brown
I’m moving from an old mail server to a new one. On the new one, trying to transfer mailboxes from the old machine using doveadm. It fails saying it can’f find doveadm: % sudo doveadm -Dv backup -R -u myu...@bordo.com.au remote:mail.bordo.com.au Password: Debug: Loading modules from directory: /

Re: Auth-worker, unknown scheme ARGON2ID

2023-02-22 Thread James Brown
On 22 Feb 2023, at 6:12 pm, Aki Tuomi wrote: > > You can use > > env PKG_CONFIG_PATH=/opt/homebrew/lib/ ./configure … > > Aki Aki was a tremendous help and got it working for me. For anyone else who wants to use Dovecot on macOS with the ARGON2I or ARGON2ID password schemes, these are the

Re: Auth-worker, unknown scheme ARGON2ID

2023-02-21 Thread James Brown
On 22 Feb 2023, at 5:53 pm, Aki Tuomi wrote: > % locate libsodium /opt/homebrew/Cellar/libsodium /opt/homebrew/Cellar/libsodium/1.0.18_1 /opt/homebrew/Cellar/libsodium/1.0.18_1/.brew /opt/homebrew/Cellar/libsodium/1.0.18_1/.brew/libsodium.rb /opt/homebrew/Cella

Re: Auth-worker, unknown scheme ARGON2ID

2023-02-21 Thread James Brown
> On 22 Feb 2023, at 5:33 pm, Aki Tuomi wrote: >> >> Thanks Aki, that was helpful. When I add that I get: >> >> checking for LIBSODIUM... no >> configure: error: Can't build with libsodium: not found >> >> So I have to tell it where libsodium is. >> >> Tried: >> >> CPPFLAGS=-I/opt/homebrew/Ce

Re: Auth-worker, unknown scheme ARGON2ID

2023-02-21 Thread James Brown
> On 22 Feb 2023, at 4:14 pm, Aki Tuomi wrote: > >> I’ve spent ages on this and am getting really desperate! :-( >> >> CPPFLAGS=-I/opt/homebrew/Cellar/openssl@3/3.0.8/include >> LDFLAGS=-L/opt/homebrew/opt/openssl@3/lib ./configure --with-ssl=openssl >> --with-mysql >> ... >> Install prefix .

Re: Auth-worker, unknown scheme ARGON2ID

2023-02-21 Thread James Brown
On 21 Feb 2023, at 10:12 pm, James Brown wrote: > > The new one has Dovecot compiled with same configure options, same > configuration files, but fails to authenticate: > > Feb 21 21:51:03 master: Info: Dovecot v2.3.20 (80a5ac675d) starting up for > imap, pop3 (core dumps

Auth-worker, unknown scheme ARGON2ID

2023-02-21 Thread James Brown
On my current mail server I was able to upgrade everyone’s password scheme to ARGON2ID with no issues, I just had to have: service auth { vsz_limit = 0 } This was an older version of macOS than the new server I’m trying to migrate to. The new one has Dovecot compiled with same configure option

service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 268435456): Invalid argument macOS

2023-02-20 Thread James Brown
I fixed the issue with Dovecot not starting on macOS Ventura by adding this to 10-master.conf: service log { vsz_limit = 0 } But now when I try to login via Imap on port 143 I get the same error for imap-login: Feb 20 15:55:41 imap-login: Error: Feb 20 15:55:41 service(imap-login): Fatal: s

Re: SOLVED: Re: Dovecot does not start on MacOS 12.01, and now 13.2.1 - RLIMIT_DATA

2023-02-17 Thread James Brown
Sorry, replying to an old thread found on mail-archive.com , so it’s not threaded email. https://www.mail-archive.com/dovecot@dovecot.org/msg84776.html I have just installed Dovecot onto Mac Studio running Ventura (macOS 13.2.1) and get the same error with Dovecot 2.

Logging to remote server

2021-08-26 Thread James Brown
My Google searches must be off, I couldn’t see how to do this. Is there a way to log to a local file, but also send to a remote server? Eg: Log_path = /var/log/dovecot.log, @mylogserver.example.com:514 Thanks, James

Off-site cloud backup (eg Amazon S3, Wasabi)

2019-09-09 Thread James Brown via dovecot
I’d like to synchronise our mail store to an Amazon S3 bucket or similar, for protection from ransomware. Server is running on macOS with maildir. Should I use a Dovecot process, rsync, a Mac app like Arq or Jungle Disk, or something else? Anyone have experience or opinions on this? Thanks,

Solr, Dovecot & macOS / iOS

2019-08-13 Thread James Brown via dovecot
I’m thinking of getting Solr working with my Dovecot server. Server is new 6-core Mac Mini, mail store of over 1/2 TB. Mailboxes with 100s of thousands of messages. But I’m not sure if: a) it will make enough of a difference and b) does Mail.app and other mail clients on Macs or iOS devices pe

Re: v2.3.6 Configure fail 'libssl not found' macOS

2019-05-01 Thread James Brown via dovecot
> On 1 May 2019, at 4:38 pm, James Brown via dovecot <mailto:dovecot@dovecot.org>> wrote: > > No problems with 2.3.5, but when I try to compile 2.3.6 with: > > ./configure --with-mysql --with-ssl=openssl > > I get: > > checking for dlopen... yes &g

v2.3.6 Configure fail 'libssl not found' macOS

2019-04-30 Thread James Brown via dovecot
No problems with 2.3.5, but when I try to compile 2.3.6 with: ./configure --with-mysql --with-ssl=openssl I get: checking for dlopen... yes checking for SSL_read in -lssl... no configure: error: Can't build with OpenSSL: libssl not found $ locate libssl /Applications/BBEdit.app/Contents/XPCServ

“Message cannot be displayed because of the way it is formatted” iOS

2019-03-06 Thread James Brown via dovecot
Have updated our mail server and are now running Dovecot 2.3.4. Things are mostly working OK, but occasionally I have users on latest iOS getting this message: “this message cannot be displayed because of the way it is formatted. Ask the sender to send it again using a different format or email

Re: "unknown user - trying the next userdb" Info in log

2019-01-29 Thread James Brown via dovecot
On 30 Jan 2019, at 4:35 pm, Aki Tuomi mailto:aki.tu...@open-xchange.com>> wrote: > >> >> On 30 January 2019 at 07:12 James Brown < jlbr...@bordo.com.au >> <mailto:jlbr...@bordo.com.au>> wrote: >> >> >> >> My settings: &

Re: "unknown user - trying the next userdb" Info in log

2019-01-29 Thread James Brown via dovecot
On 30 Jan 2019, at 10:57 am, Stephan Bosch mailto:step...@rename-it.nl>> wrote: > > Op 30/01/2019 om 00:06 schreef James Brown via dovecot: >> >>> On 30 Jan 2019, at 9:24 am, Stephan Bosch >> <mailto:step...@rename-it.nl>> wrote: >>> >>&

Re: "unknown user - trying the next userdb" Info in log

2019-01-29 Thread James Brown via dovecot
> On 30 Jan 2019, at 9:24 am, Stephan Bosch wrote: > > > > Op 29/01/2019 om 01:51 schreef James Brown via dovecot: >> I’ve set up a new mail server. Auth-worker is giving me this error all the >> time: >> >> auth-worker(11160): Info: p

"unknown user - trying the next userdb" Info in log

2019-01-28 Thread James Brown via dovecot
I’ve set up a new mail server. Auth-worker is giving me this error all the time: auth-worker(11160): Info: passwd(sa...@bordo.com.au ,10.0.0.54,): unknown user - trying the next userdb Next line is from imap-login with successful login. Using MySQL as user database.

Re: Lda fatal: setgid (102 from userdb lookup) failed

2018-12-04 Thread James Brown via dovecot
> On 4 Dec 2018, at 5:48 pm, Aki Tuomi wrote: > > On 4.12.2018 3.27, James Brown via dovecot wrote: >> Sorry if this is a nubbie question, but I’m getting: >> >> lda(jlbr...@bordo.com.au)<>: Fatal: setgid(102 >> from userdb lookup) failed with euid=5

Lda fatal: setgid (102 from userdb lookup) failed

2018-12-03 Thread James Brown via dovecot
Sorry if this is a nubbie question, but I’m getting: lda(jlbr...@bordo.com.au)<>: Fatal: setgid(102 from userdb lookup) failed with euid=501(jlbrown), gid=20(staff), egid=20(staff): Operation not permitted (This binary should probably be called with process group set to 102 instead of 20(st

Installing on Mojave, with Homebrew and mysql

2018-11-25 Thread James Brown
I’m using Homebrew to install Dovecot on Mojave, but have to modify the formula to add ‘--with-mysql’. Unfortunately compiling always fails with: checking for mysql_config... NO checking for mysql_init in -lmysqlclient... no configure: error: Can't build with MySQL support: libmysqlclient not fo

"Group doesn't exist: dovecot"

2018-11-19 Thread James Brown
No matter what I do, I always get this error when trying to start Dovecot: $ sudo /usr/local/opt/dovecot/sbin/dovecot Warning: fd limit (ulimit -n) is lower than required under max. load (256 < 1000), because of default_client_limit Fatal: service(stats) Group doesn't exist: dovecot (See service

Re: macOS Mojave: setgroups(501) failed: Too many extra groups

2018-11-18 Thread James Brown
> On 11 Oct 2018, at 7:35 pm, Heiko W. Rupp wrote: > > On Thu, Oct 11, 2018 at 10:55:39AM +0300, Aki Tuomi wrote: > >> Maybe. Have to see when we can implement it though. It could probably >> leverage the min/max_gid setting. > > Actually that was a great hint. > > Setting > last_valid_gid

Re: New install - getting error: "Failed to initialize SSL server context: Couldn't parse DH parameters"

2018-11-12 Thread James Brown
Peters" > Date: 13/11/2018 05:44 (GMT+02:00) > To: dovecot@dovecot.org > Subject: Re: New install - getting error: "Failed to initialize SSL server > context: Couldn't parse DH parameters" > > try > > openssl dhparam -out /usr/local/etc/dovecot/dh.p

Re: New install - getting error: "Failed to initialize SSL server context: Couldn't parse DH parameters"

2018-11-12 Thread James Brown
> On 11/12/2018 07:28 PM, James Brown wrote: >> I’m setting up Dovecot using Homebrew on a new server and am getting this >> when I try to login via IMAP: >> Nov 13 14:13:35 auth: Debug: auth client connected (pid=30719) >> Nov 13 14:13:35 imap-login: Info: Aborted l

New install - getting error: "Failed to initialize SSL server context: Couldn't parse DH parameters"

2018-11-12 Thread James Brown
I’m setting up Dovecot using Homebrew on a new server and am getting this when I try to login via IMAP: Nov 13 14:13:35 auth: Debug: auth client connected (pid=30719) Nov 13 14:13:35 imap-login: Info: Aborted login (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session= Nov 13

Re: Disaster Recovery Help

2018-11-12 Thread James Brown
> On 13 Nov 2018, at 9:48 am, Giovanni Bisanti > wrote: > > the Account on the iPhone is IMAP, I'm not sure I understand the process you > are describing > iMazing might be able to help you get the mail off the iPhone: https://imazing.com Then t

Re: macOS Mojave: setgroups(501) failed: Too many extra groups

2018-10-24 Thread James Brown
On 11 Oct 2018, at 5:28 pm, Heiko W. Rupp mailto:h...@pilhuhn.de>> wrote: > > Hello, > > I have recently upgraded to macOS 10.14 (Mojave) and am running into an issue > where one use can no longer log into dovecot via imap. Log shows > > Oct 11 08:10:27 imap(hwr)<12659>: Fatal: > setgroups(501

Re: Best way to move mail from one server to another

2018-09-05 Thread James Brown
Thanks everyone for you help and suggestions. I think I’ll use rsync. I had a try today, and all looked fine. I created the mail store directory with only root access on the new machine. Unfortunately that means I can’t transfer using this login (no root login over ssh). I’ll have to change pe

Re: Best way to move mail from one server to another

2018-09-04 Thread James Brown
Thanks Sam Users not using new mail server yet. Both old and new using maildir. Sounds like rsync is the way to go. Thanks for your help. James. Sent from my iPhone XI > On 4 Sep 2018, at 5:41 pm, Sami Ketola wrote: > > > >> On 4 Sep 2018, at 10.20, James Brown

Best way to move mail from one server to another

2018-09-04 Thread James Brown
I’d like to migrate to a new server. I only need to transfer the mail store, have already done the users. I’ve seen different recommendations: IMAP-Sync Rsync Doveadmin backup and dsync What are the pros and cons of each? What would be best for me? I’m thinking that Doveadmin backup is the way

Re: dying on osx

2018-09-03 Thread James Brown
Mike, I’m having the exact same issue on macOS X 10.13.6 (High Sierra). I’ve installed Dovecot using Homebrew. The number after ‘Setgroups’ is the Group ID of the user you’ve specified. Log entry for me: Aug 28 11:57:21 imap-login: Info: Login: user=mailto:us...@bordo.com.au>>, method=PLAIN, r

Fatal: setgroups(6) failed: Too many extra groups when authenticating using mysql - macOS 10.13.6

2018-08-27 Thread James Brown
Using mysql for authentication. Successful username & password gives: Aug 27 15:10:03 master: Info: Dovecot v2.3.2.1 (0719df592) starting up for imap, pop3 (core dumps disabled) Aug 27 15:10:50 imap-login: Info: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=24924, secured, session= Aug 27

Re: Make fails with 2.3.0.1 & 2.2.34 on Mac OS X 10.7.5

2018-07-11 Thread James Brown
: -lucene -solr Any another suggestions? Thanks, James. > On 5 Mar 2018, at 2:54 pm, James Brown wrote: > > > >> On 2 Mar 2018, at 6:11 pm, James Brown wrote: >> >> >> >>> On 2 Mar 2018, at 5:59 pm, Aki Tuomi wrote: >&g

Re: Make fails with 2.3.0.1 & 2.2.34 on Mac OS X 10.7.5

2018-03-04 Thread James Brown
> On 2 Mar 2018, at 6:11 pm, James Brown wrote: > > > >> On 2 Mar 2018, at 5:59 pm, Aki Tuomi wrote: >> >> >> We have attempted to compile our code with OpenSSL 1.0, 1.0.2 and 1.1.0, but >> I'll try the specific releases too. >> &g

Re: Make fails with 2.3.0.1 & 2.2.34 on Mac OS X 10.7.5

2018-03-01 Thread James Brown
> On 1 Mar 2018, at 9:52 pm, Aki Tuomi > wrote: > > Can you also post your config.h? It should be at source root. > > Aki I tried but it was too big to post on the mailing list. I’m not sure if you got the direct email. Some SSL related bits: /* Build with OpenSS

Re: Make fails with 2.3.0.1 & 2.2.34 on Mac OS X 10.7.5

2018-03-01 Thread James Brown
> On 1 Mar 2018, at 5:56 pm, Aki Tuomi <mailto:aki.tu...@dovecot.fi>> wrote: > > > > On 01.03.2018 07:34, James Brown wrote: >> On 1 Mar 2018, at 4:09 pm, Aki Tuomi > <mailto:aki.tu...@dovecot.fi>> wrote: >>> >>> >>>

Re: Make fails with 2.3.0.1 & 2.2.34 on Mac OS X 10.7.5

2018-02-28 Thread James Brown
On 1 Mar 2018, at 4:09 pm, Aki Tuomi mailto:aki.tu...@dovecot.fi>> wrote: > > >> On 01 March 2018 at 06:21 James Brown < jlbr...@bordo.com.au >> <mailto:jlbr...@bordo.com.au>> wrote: >> >> >> Have tried 2.3.0, 2.3.0.1 & 2.2.34. >>

Make fails with 2.3.0.1 & 2.2.34 on Mac OS X 10.7.5

2018-02-28 Thread James Brown
Have tried 2.3.0, 2.3.0.1 & 2.2.34. Compile is failing for me. ./configure --with-mysql --with-ssl=openssl: ... checking for SSL_read in -lssl... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/err.h usability.

Make fails with 2.3.0 on Mac OS X 10.7.5

2018-01-09 Thread James Brown
Compile is failing for me. ./configure --with-mysql --with-ssl=openssl: ... checking for SSL_read in -lssl... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/err.h usability... yes checking openssl/err.h presenc

IMAP connections with ".eml" in the username - bot attack.

2017-11-12 Thread James Brown
We are seeing lots of IMAP login attempts like this: dovecot[363]: imap-login: Disconnected (auth failed, 1 attempts in 6 secs): user=, method=PLAIN, rip=197.255.60.118, or dovecot[363]: imap-login: Disconnected (auth failed, 1 attempts in 6 secs): user=, method=PLAIN, rip=37.235.28.229, e

Re: Fail2ban 'Password mismatch' regex

2017-09-11 Thread James Brown
> On 11 Sep 2017, at 5:38 pm, Christian Kivalo wrote: > >> Many thanks Christian. >> Added that, but it still doesn’t match: >> $ fail2ban-regex "Sep 11 15:52:49 mail dovecot[54239]: auth-worker(10094): >> sql(u...@bordo.com.au,::1,L2xqieNYeM4B>): Password >> mismatch (giv

Re: Fail2ban 'Password mismatch' regex

2017-09-11 Thread James Brown
> On 11 Sep 2017, at 5:10 pm, Christian Kivalo wrote: > > On 2017-09-11 08:57, James Brown wrote: >> I have turned on 'auth_debug_passwords=yes’ in dovecot.conf. >> I’m trying to get Fail2ban to detect this log line: >> Sep 11 15:52:49 mail dovecot[54239

Fail2ban 'Password mismatch' regex

2017-09-10 Thread James Brown
I have turned on 'auth_debug_passwords=yes’ in dovecot.conf. I’m trying to get Fail2ban to detect this log line: Sep 11 15:52:49 mail dovecot[54239]: auth-worker(10094): sql(u...@bordo.com.au ,::1,): Password mismatch (given password: 2) I’ve added it as the last line

Re: under another kind of attack

2017-07-26 Thread James Brown
> On 26 Jul 2017, at 7:57 pm, Olaf Hopp wrote: > > Dear collegues, > > many thanks for your valuable input. > > Since we are an university GEO-IP blocking is not an option for us. > Somestimes I think it should ;-) > > My "mistake" was that I had just *one* fail2ban filter for both cases: > "

Re: Compile error v2.2.25 MacOS X

2016-07-05 Thread James Brown
> On 6 Jul. 2016, at 2:31 pm, Edgar Pettijohn wrote: > > > > Sent from my iPhone > >> On Jul 5, 2016, at 9:28 PM, James Brown wrote: >> >> Tried to update from 2.2.24 to 2.2.25 using same configure command as >> previously. >> >>

Compile error v2.2.25 MacOS X

2016-07-05 Thread James Brown
Tried to update from 2.2.24 to 2.2.25 using same configure command as previously. make ends with: In file included from guid.c:6: sha1.h:80: error: static or type qualifiers in abstract declarator make[4]: *** [guid.lo] Error 1 make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 make

Re: [Dovecot] [Dovecot-news] v2.2.9 released

2013-11-24 Thread James Brown
Sorry for such a basic question, but how exactly do I turn this on? I get this error: doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf line 91: Garbage after '{' if I put plugin {fts_autoindex = yes} in dovecot.conf. Is this where I should put it? Is there an

Re: [Dovecot] [Dovecot-news] v2.2.3 released

2013-06-16 Thread James Brown
Have just upgraded to 2.2.3 and when it started I got these lines in the log: dovecot[44069]: master: Dovecot v2.2.3 starting up (core dumps disabled) Jun 17 15:48:46 mail dovecot[44072]: config: Error: Module is for different ABI version 2.2.ABIv2(2.2.2) (we have 2.2.ABIv3(2.2.3)): /usr/local/l

[Dovecot] Berlin talk - video or audio available?

2009-07-29 Thread James Brown
Thanks Timo for putting up the .pdf and .ppt files for your talk at www.dovecot.org/talks . Is there a video or audio file of it? Thanks, James.

Re: [Dovecot] v1.2.1 released

2009-07-11 Thread James Brown
On 11/07/2009, at 3:32 AM, Bruce Bodger wrote: On Jul 10, 2009, at 10:47 AM, Timo Sirainen wrote: I also saw them when I recently upgraded from 1.1.16 to 1.2.0 and simultaneously switched to a new server (FROM PowerPC to Intel Mac Pro) but didn't expect to see them when simply upgrading to 1

Re: [Dovecot] Dovecot 1.2rc4 - launchd keeps trying to restart it, after Dovecot exits with exit code: 89

2009-07-05 Thread James Brown
On 05/07/2009, at 2:46 AM, Axel Luttgens wrote: Le 4 juil. 09 à 17:25, David Stark a écrit : Call it a stab in the dark, but try removing the PID file at: /usr/local/var/run/dovecot/master.pid Yes, that should do the trick (at least so as to get more informative messages on next launch).

Re: [Dovecot] Dovecot 1.2rc4 - launchd keeps trying to restart it, after Dovecot exits with exit code: 89

2009-07-04 Thread James Brown
On 05/07/2009, at 12:07 AM, James Brown wrote: I know I should update to the release version (will do on Monday), but I keep getting this in my logs (ie All Messages shown): 4/07/09 11:50:18 PM Dovecot[742] Fatal: Dovecot is already running with PID 624 (read from /usr/local/var/run

[Dovecot] Dovecot 1.2rc4 - launchd keeps trying to restart it, after Dovecot exits with exit code: 89

2009-07-04 Thread James Brown
I know I should update to the release version (will do on Monday), but I keep getting this in my logs (ie All Messages shown): 4/07/09 11:50:18 PM Dovecot[742] Fatal: Dovecot is already running with PID 624 (read from /usr/local/var/run/dovecot/master.pid) 4/07/09 11:50:18 PM com.apple.launch

Re: [Dovecot] Under POP attack - now to prevent?

2009-06-30 Thread James Brown
On 05/06/2009, at 4:19 PM, James Brown wrote: Thanks to Curtis and others who replied. I managed to block the IP at our Firewall (learnt a few quirky things about Astaro Security Gateway on the way!) In order to automate the process, Fail2Ban has been suggested. I know this is getting

[Dovecot] Under POP attack - now to prevent?

2009-06-04 Thread James Brown
Looks like we are under a dictionary login attack on our POP server: Jun 5 11:48:20 mail dovecot[2620]: pop3-login: Aborted login (auth failed, 1 attempts): user=, method=PLAIN, rip=85.189.169.94, lip=192.168.1.9 Jun 5 11:48:24 mail dovecot[2620]: pop3-login: Aborted login (auth failed, 1

[Dovecot] Lost sub-mailboxes - not showing after upgrading to Dovecot from Courier-IMAP

2009-06-03 Thread James Brown
Last night we migrated from Courier-IMAP to Dovecot 1.2RC5 and all seems to work fairly well, but I seem to have lost all my mailboxes apart from INBOX. The maildirs are all on the HD in the correct place (/usr/local/virtual/bordo.com.au/jlbrown): mail:jlbrown root# ls -l total 21400 drwxrw

[Dovecot] dbox verses maildir - advantages/disadvantages

2009-05-26 Thread James Brown
I am migrating our mail server from Courier-IMAP to Dovecot. We currently use maildir storage format. What are the advantages and disadvantages of Dovecot's dbox format over maildir? Does anyone have any performance benchmarks for both? What do people use to test performance? We are run