invalid vsize-hdr

2021-03-09 Thread Christopher Wensink
nf.
#listen = *, ::
listen = *, ::

# Base directory where to store runtime data.
#base_dir = /var/run/dovecot/

# Name of this instance. In multi-instance setup doveadm and other commands
# can use -i  to select which instance is used (an 
alternative

# to -c ). The instance name is also added to Dovecot processes
# in ps output.
#instance_name = dovecot

# Greeting message for clients.
#login_greeting = Dovecot ready.

# Space separated list of trusted network ranges. Connections from these
# IPs are allowed to override their IP addresses and ports (for logging and
# for authentication checks). disable_plaintext_auth is also ignored for
# these networks. Typically you'd specify your IMAP proxy servers here.
#login_trusted_networks =
login_trusted_networks = 10.5.1.0/24
# Space separated list of login access check sockets (e.g. tcpwrap)
#login_access_sockets =

# With proxy_maybe=yes if proxy destination matches any of these IPs, 
don't do
# proxying. This isn't necessary normally, but may be useful if the 
destination

# IP is e.g. a load balancer's IP.
#auth_proxy_self =

# Show more verbose process titles (in ps). Currently shows user name and
# IP address. Useful for seeing who are actually using the IMAP processes
# (eg. shared mailboxes or if same uid is used for multiple accounts).
#verbose_proctitle = no

# Should all processes be killed when Dovecot master process shuts down.
# Setting this to "no" means that Dovecot can be upgraded without
# forcing existing client connections to close (although that could also be
# a problem if the upgrade is e.g. because of a security fix).
#shutdown_clients = yes

# If non-zero, run mail commands via this many connections to doveadm 
server,

# instead of running them directly in the same process.
#doveadm_worker_count = 0
# UNIX socket or host:port used for connecting to doveadm server
#doveadm_socket_path = doveadm-server

# Space separated list of environment variables that are preserved on 
Dovecot

# startup and passed down to all of its child processes. You can also give
# key=value pairs to always set specific settings.
#import_environment = TZ

##
## Dictionary server settings
##

# Dictionary can be used to store key=value lists. This is used by several
# plugins. The dictionary can be accessed either directly or though a
# dictionary server. The following dict block maps dictionary names to URIs
# when the server is used. These can then be referenced using URIs in format
# "proxy::".

dict {
  #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
}

# Most of the actual configuration gets included below. The filenames are
# first sorted by their ASCII value and parsed in that order. The 
00-prefixes

# in filenames are intended to make it easier to understand the ordering.
!include conf.d/*.conf

# A config file can also tried to be included without giving an error if
# it's not found:
!include_try local.conf
---

I need assistance.  I appreciate the help.

Chris



--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com




Re: invalid vsize-hdr

2021-03-10 Thread Christopher Wensink

Here's the output:
$ sudo doveadm force-resync -u pstrangfeld "*"
doveadm(user): Error: vsize-hdr has invalid size: 36
doveadm(user): Error: vsize-hdr has invalid size: 36

$ sudo doveadm force-resync -u user "*"
doveadm(user): Error: vsize-hdr has invalid size: 36
doveadm(user): Error: vsize-hdr has invalid size: 36

I did it twice, the same output comes each time.  Is there something 
else I should get?  Does this take a while to finish processing?


Chris


On 3/10/2021 1:17 AM, Aki Tuomi wrote:

On 10/03/2021 00:26 Christopher Wensink  wrote:

  
Good afternoon everyone,


I have one account on our internal dovecot server that keeps throwing
the same repeated error:

The user is on a Windows 10 computer running the latest version of
Thunderbird.  Here's the log:


Mar  9 13:03:16 mario2 dovecot: imap(user): Error: vsize-hdr has
invalid size: 36
Mar  9 13:09:53 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:18:57 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:25:09 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:29:07 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:31:03 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:37:20 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:42:26 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:47:21 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:50:11 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:53:46 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 13:59:40 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:03:52 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:08:54 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:11:53 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:17:02 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:21:14 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:24:00 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:28:43 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:33:00 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:38:24 mario2 dovecot: imap(user): Connection closed (IDLE
running for 0.001 + waiting input for 0.001 secs, 2 B in + 10+10 B out,
state=wait-input) in=1578244 out=2878370
Mar  9 14:40:51 mario2 dovecot: imap-login: Login: user=,
method=PLAIN, rip=10.5.1.77, lip=10.5.1.17, mpid=97537, TLS,
session=
Mar  9 14:41:30 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
Mar  9 14:44:14 mario2 dovecot: imap(user): Connection closed (IDLE
running for 0.002 + waiting input for 0.001 secs, 2 B in + 10+10 B out,
state=wait-input) in=319541 out=1272761
Mar  9 14:44:14 mario2 dovecot: imap-login: Login: user=,
method=PLAIN, rip=10.5.1.77, lip=10.5.1.17, mpid=97671, TLS,
session=<85YInSC95NkKBQFN>
Mar  9 14:46:37 mario2 dovecot: imap(user): Error: vsize-hdr has invalid
size: 36
---

I have tried the following:
   -Restarting the workstation
   - Compacting folders in Thunderbird
   - Repaired the Inbox Folder in Thunderbird
   - Restarting the dovecot service
   - Set the connections in Thunderbird Account settings to not check for
messages automatically (manual only)
   - Set the user to own all folders and sub-folders in his home
directory on the server

I found old message in the archives from 2017 that had the same error
but I did not see a posted solution.

dovecot --version 2.2.36 (lfl0bfa63)

config file:

[root@mario2 dovecot]# cat dovecot.conf
## Dovecot configuration file

# If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration

# "doveconf -n" command gives a clean output of the changed settings. Use it
# instead of copy&pasting files when posting to the Dovecot mailing list.

# '#' character and everything after it is treated as comments. Extra spaces
# and tabs are ignored. If you want to use either of these explicitly,
put the
# value inside quotes, eg.: key = "# char and trailing whitespace  "

# Most (but not all) settings can be overridden by different protocols
and/or
# source/destination IPs by placing the settings inside sections, for
example:
# protocol imap { }, local 127.0.0.1 { }, remote 10.0.0.0/8 { }

# Default values are shown for each setting, it's not required to uncomment
# those. These are exceptions to this though: No sections (e.g.
namespace {})
# or plugin settings are added by default, they're listed only as exa

error 42 ssl certificate expired

2021-04-12 Thread Christopher Wensink

Dovecot Team,

I need a little help.  I came in this morning and it seems like the SSL 
Certificates expired for dovecot (on an internal mail server) and nobody 
can move email into  their folders on this server.  In Thunderbird they 
just see in the status bar:  HISTORY: checking mail server capabilities...


In /var/log/maillog:

Apr 12 09:02:26 mario2 dovecot: imap-login: Disconnected (no auth 
attempts in 0 secs): user=<>, rip=10.5.1.85, lip=10.5.1.17, TLS: 
SSL_read() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 
alert bad certificate: SSL alert number 42, session=


I have tried:

-Restarting Dovecot
-Restarting the whole mail server
-Re-creating the .pem files, first moving the old files in 
/etc/pki/dovecot/certs and /etc/pki/dovecot/private from dovecot.pem to 
dovecot-old.pem,
  - Re-creating a new dovecot.pem using the mkcert.sh script in the doc 
folder in /usr/share/doc/dovecot-2.2.36/,

  - restarting dovecot
  - changing the cert values in dovecot-openssl.cnf

I also tried creating new .crt and key files using this tutorial: 
https://msol.io/blog/tech/create-a-self-signed-ssl-certificate-with-openssl/ 



I need some assistance, thank you for your help.

Chris


--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: error 42 ssl certificate expired

2021-04-12 Thread Christopher Wensink
I confirm that the solution in Thunderbird, was they had to click on the 
account's inbox, then click get messages, then click the confirm 
security exception button on the server identity pop-up, and that fixes 
the issue.  I could see that under Tools > Options > Certificates for 
the server section had a self-signed certificate which is active for 1 
year, so once the new cert is generated then everyone has to just 
confirm the exception of the new self-signed certificate.  It's an easy 
fix once you know the solution.


Thanks for your help Aki.

In our case this is an internally used Dovecot Mail server that's used 
for mail storage only, not for sending out new email and it's not the 
default email account to receive new messages.  The server never touches 
the public internet, only inside the LAN traffic.  In this situation are 
CA authority certificates worth the expense? Just curious on what 
everyone's opinion is of Digital Certs signed by certificate authorities 
that are only used inside the LAN. Thoughts?


On 4/12/2021 9:59 AM, Aki Tuomi wrote:

On 12/04/2021 17:13 Christopher Wensink  wrote:

  
Dovecot Team,


I need a little help.  I came in this morning and it seems like the SSL
Certificates expired for dovecot (on an internal mail server) and nobody
can move email into  their folders on this server.  In Thunderbird they
just see in the status bar:  HISTORY: checking mail server capabilities...

In /var/log/maillog:

Apr 12 09:02:26 mario2 dovecot: imap-login: Disconnected (no auth
attempts in 0 secs): user=<>, rip=10.5.1.85, lip=10.5.1.17, TLS:
SSL_read() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3
alert bad certificate: SSL alert number 42, session=

I have tried:

-Restarting Dovecot
-Restarting the whole mail server
-Re-creating the .pem files, first moving the old files in
/etc/pki/dovecot/certs and /etc/pki/dovecot/private from dovecot.pem to
dovecot-old.pem,
    - Re-creating a new dovecot.pem using the mkcert.sh script in the doc
folder in /usr/share/doc/dovecot-2.2.36/,
    - restarting dovecot
    - changing the cert values in dovecot-openssl.cnf

I also tried creating new .crt and key files using this tutorial:
https://msol.io/blog/tech/create-a-self-signed-ssl-certificate-with-openssl/


I need some assistance, thank you for your help.

Chris

Please use real certs if possible. Otherwise you need to install the used CA 
certificate, or the self-signed certificate, to all the clients. Or reset the 
exception there, and then tell all your users to redo the exception. Using real 
certs is easier.

Aki



--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: Move sent emails to sent folder?

2022-06-17 Thread Christopher Wensink

What client is being used?

For this kind of thing in Thunderbird we right click on the folder with 
duplicates > properties > repair folder (button)




On 6/17/2022 12:00 PM, Gedalya wrote:

On 6/17/22 22:18, Austin Witmer wrote:

Now I’ve run into a bit of a problem . . . For some reason I am now getting 
five duplicate emails placed in my sent folder! I have the email client I am 
testing with set to not place a copy in the sent folder, so none of those are 
being synced to my sent folder by my email client.

Is it possible that the message is routed outwards and then in again somehow?

Each time a message with the sender address user@domain comes in, the extra 
recipient will be added. You could easily get into a loop.




--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: Move sent emails to sent folder?

2022-06-17 Thread Christopher Wensink
I am saying that when I have this issue with duplicate messages in 
Thunderbird, the repair takes care of that.  I honestly haven't checked 
the quantity of messages on the server to see if the issue was there 
before, or after the fix, you could try that fix.


This may be completely unrelated but back in the day I've seen this type 
of issue on machines using outlook when the .pst file is full and hit 
it's max size, or the computer running it runs out of hard drive space.  
That's something else to check.


Chris



On 6/17/2022 1:48 PM, Austin Witmer wrote:

I believe my client is using an iPhone to check mail on this address. The 
interesting thing is that it seems like apple mail clients don’t show the 
duplicate messages like thunderbird does. I don’t like the idea of the 
unnecessary emails piling up. Are you saying that doing a repair on a folder in 
thunderbird will delete the duplicate messages?

Doing an ls /maildir/user/.Sent/cur folder shows the duplicate messages. It 
seems like postfix is bccing the outgoing message more than once somehow.

Maybe I need to take this conversation over to the postfix mailing list?

Austin Witmer


On Jun 17, 2022, at 11:21 AM, Christopher Wensink 
 wrote:

What client is being used?

For this kind of thing in Thunderbird we right click on the folder with duplicates 
> properties > repair folder (button)



On 6/17/2022 12:00 PM, Gedalya wrote:

On 6/17/22 22:18, Austin Witmer wrote:

Now I’ve run into a bit of a problem . . . For some reason I am now getting 
five duplicate emails placed in my sent folder! I have the email client I am 
testing with set to not place a copy in the sent folder, so none of those are 
being synced to my sent folder by my email client.

Is it possible that the message is routed outwards and then in again somehow?

Each time a message with the sender address user@domain comes in, the extra 
recipient will be added. You could easily get into a loop.



--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com




--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: Thunderbird / Copy to Send folder times out

2022-07-14 Thread Christopher Wensink

Have you tried these solutions?

https://support.mozilla.org/en-US/questions/1263206#answer-1234965

On 7/14/2022 7:22 AM, Paul Kudla (SCOM.CA Internet Services Inc.) wrote:


I know this has been asked before in both Dovecot & Thunderbird Forums 
(i will posting this info there as well)


It seems every once in a while that copy to sent folder timeout occurs 
and you have to hit retry a few time for it to complete


I know this is a network issue (ie network speed, congestion etc does 
cause an issue)


That being said is there an imap timeout variable that would addres 
this issue and or does anyone know about a thunderbird variable


I have been unable to locate anything specific to this issue and am 
aware that we probably need to patch both sides?


ideas anyone ??



--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: Client for a Windows User ?

2022-09-13 Thread Christopher Wensink

There are lot of choices:
Evolution
Mozilla Thunderbird
Mozilla Seamonkey
eM Client
Gmail (third party web hosted)
Mailbird
Mailspring
Shift
Pegasus

Are you looking to simply use the client on the server or are you 
hosting dovecot and your looking for a compatible client to connect to 
Dovecot?



On 9/13/2022 11:01 AM, White, Daniel E. (GSFC-770.0)[AEGIS] wrote:

Specifically, Windows 2016 server

I suggested Thunderbird.
Is there anything else ?

Is this current ?
https://wiki.dovecot.org/Clients




--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: Corrupted sizes in cache once again

2023-02-02 Thread Christopher Wensink
Something to try, this all could be happening because of underlying disk 
failure on the array it is running on.  If this is a VM, can you move 
the operation to another host or data store to rule out hardware issues?


On 2/2/2023 9:19 AM, Stuart Henderson wrote:

On 2023-02-01, Tim Evers  wrote:

I run a fairly large Dovecot Installation (around 100k mailboxes) on
several servers.

gzip compression is on.

Every once in a while I get the dreaded "cache corruption" messages in
the log:

Error: Corrupted record in index cache file
/[redacted]/Maildir/dovecot.index.cache: UID 3868: Broken physical size
in mailbox INBOX:
read(zlib(/[redacted]/Maildir/cur/1674129792.M797543P21755.node2,S=8099,W=8276:2,))
failed: Cached message size smaller than expected (2877 < 8099,
box=INBOX, UID=3868)

Error: Corrupted record in index cache file
/[redacted]/Maildir/dovecot.index.cache: UID 3875: Broken physical size
in mailbox INBOX:
read(zlib(/[redacted]/Maildir/cur/1674212201.M985809P29112.node2,S=13907,W=14121:2,))
failed: Cached message size smaller than expected (5533 < 8192,
box=INBOX, UID=3875)

The first entry shows 2877 (size on disk) vs. 8099 (real size unzipped,
also in the filename: S=8099).

The second entry shows 5533 (size on disk) vs. 8192 - this is not
correct in any way. Size on disk is 13907 as noted in the filename.

Both mails were delivered trough LMTP and retrieved by the POP3 service.

Anyone with an idea what might be happening here? I've read all
available info in the doc and in the previous discussions / bug reports,
but nothing seems to match my case. And where does that 8192 come from -
it looks suspicious?

Version is 2.3.7.2 (Ubuntu 20.04)

2.3.7.2 is rather old now. There were definitely fixes regarding compression
around the 2.3.10-2.3.12 timeframe or thereabouts (I forget all the details
but it took a release or two before some remaining issues were sorted out
after changes in the area). I'd be looking to get it updated to a current
version first.





--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: Corrupted sizes in cache once again

2023-02-02 Thread Christopher Wensink
Can you isolate the problem account on a separate VM to see if the 
problem follows the account or the original vm?


Chris

On 2/2/2023 9:58 AM, Tim Evers wrote:
Good point - these are 8 diferrent DRBD clusters. I failed over one 
testing this theory. Problem persists.


So I would rule out underlying issues.

Especially since the "wrong" value is suspiciously often the on-disk 
size rather than a random value one would expect if there is 
corruption underneath.


Tim

Am 02.02.23 um 16:43 schrieb Christopher Wensink:
Something to try, this all could be happening because of underlying 
disk failure on the array it is running on.  If this is a VM, can you 
move the operation to another host or data store to rule out hardware 
issues?


On 2/2/2023 9:19 AM, Stuart Henderson wrote:

On 2023-02-01, Tim Evers  wrote:

I run a fairly large Dovecot Installation (around 100k mailboxes) on
several servers.

gzip compression is on.

Every once in a while I get the dreaded "cache corruption" messages in
the log:

Error: Corrupted record in index cache file
/[redacted]/Maildir/dovecot.index.cache: UID 3868: Broken physical 
size

in mailbox INBOX:
read(zlib(/[redacted]/Maildir/cur/1674129792.M797543P21755.node2,S=8099,W=8276:2,)) 


failed: Cached message size smaller than expected (2877 < 8099,
box=INBOX, UID=3868)

Error: Corrupted record in index cache file
/[redacted]/Maildir/dovecot.index.cache: UID 3875: Broken physical 
size

in mailbox INBOX:
read(zlib(/[redacted]/Maildir/cur/1674212201.M985809P29112.node2,S=13907,W=14121:2,)) 


failed: Cached message size smaller than expected (5533 < 8192,
box=INBOX, UID=3875)

The first entry shows 2877 (size on disk) vs. 8099 (real size 
unzipped,

also in the filename: S=8099).

The second entry shows 5533 (size on disk) vs. 8192 - this is not
correct in any way. Size on disk is 13907 as noted in the filename.

Both mails were delivered trough LMTP and retrieved by the POP3 
service.


Anyone with an idea what might be happening here? I've read all
available info in the doc and in the previous discussions / bug 
reports,
but nothing seems to match my case. And where does that 8192 come 
from -

it looks suspicious?

Version is 2.3.7.2 (Ubuntu 20.04)
2.3.7.2 is rather old now. There were definitely fixes regarding 
compression
around the 2.3.10-2.3.12 timeframe or thereabouts (I forget all the 
details
but it took a release or two before some remaining issues were 
sorted out
after changes in the area). I'd be looking to get it updated to a 
current

version first.







--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: ot: how to t/s TBird problems ?

2023-03-21 Thread Christopher Wensink

Jim,

can you explain the format of the Date header, what each digit should 
represent?


Chris

On 10/12/2022 6:23 PM, Jim Popovitch wrote:

On Fri, 1665532449-12-31 at 00:00 +, Voytek Eymont wrote:

Received: from 125.168.124.3
(SquirrelMail authenticated user voy...@sbt.net.au)
by geko.sbt.net.au with HTTP; Wed, 12 Oct 2022 11:12:43 +1100
Message-ID:

<28778ae2850dfc7fcf20b1dceff94876.squir...@geko.sbt.net.au>

Date: 1665532450
Subject: ot: how to t/s TBird problems ?
From: "Voytek Eymont" 
To: dovecot@dovecot.org
User-Agent: SquirrelMail/1.5.2 [SVN]
MIME-Version: 1.0


Why is your "Date:" header set to 1665532450?


-Jim P.



--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com



Re: server migration

2024-04-10 Thread Christopher Wensink via dovecot

Can you expand and explain this:

Why? The whole idea about having a LTS distribution is that you almost never 
need to do this?

Can you provide a link for context?

On 4/10/2024 3:25 PM, Marc via dovecot wrote:



• Gandalf Corvotempesta via dovecot [2024-04-10 21:07]:

Guys, any help?

What you describe is exactly what I have been doing since ... forever


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?
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org



--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Authentication questions

2024-05-09 Thread Christopher Wensink via dovecot

This may help, see the post from 9/9/2021:
https://github.com/goauthentik/authentik/issues/1234

On 5/9/2024 2:50 PM, Francis Augusto Medeiros-Logeay via dovecot wrote:



On 9 May 2024, at 19:45, Aki Tuomi  wrote:

  

On 09/05/2024 20:15 EEST Francis Augusto Medeiros-Logeay via dovecot 
mailto:dovecot@dovecot.org>> wrote:
  
  
Hi,
  
I was wondering:
  
1 - Is it possible to configure authentication methods per user? For example, oauth2 for most users, but plain for others?

2 - I had a feeling that when oauth2 authentication fails, dovecot tries to 
authenticate via plain with the received token. Doesn’t seem logical, but I get 
my user blocked on my directory server (freeipa) after a few failed oath 
authentications. If so, can this be prevented?
  
Best,
  
Francis

___
dovecot mailing list -- dovecot@dovecot.org <mailto:dovecot@dovecot.org>
To unsubscribe send an email to dovecot-le...@dovecot.org 
<mailto:dovecot-le...@dovecot.org>

Yep. See 
https://doc.dovecot.org/configuration_manual/authentication/password_databases_passdb/#passdb-setting
  
you can filter by mechanism.
  
Aki

The weird thing is that I get this still:

May 09 21:45:47 auth: Error: oauth2(myu...@mydomain.com,48.237.124.127): oauth2 
failed: Introspection failed: No username returned
May 09 21:45:47 auth: Error: ldap(myu...@mydomain.com,48.237.124.127): 
ldap_bind() failed: Constraint violation

Even when I have my configuration like this:

auth_mechanisms = $auth_mechanisms xoauth2 oauthbearer


passdb {
   driver = oauth2
   mechanisms = xoauth2 oauthbearer
   args = /etc/dovecot/dovecot-oauth2.conf.ext
   result_failure=return-fail
}

What could be the cause?

Best,
Francis


___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org



--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: MySQL connection with SSL

2024-05-16 Thread Christopher Wensink via dovecot

Gandalf,

Yes.

https://dev.mysql.com/doc/refman/8.3/en/using-encrypted-connections.html

It's common practice.  From my experience most LAMP stacks are built and 
with a web front end that's handling the SSL traffic via apache to 
secure the connection between the client browser and the web server.  
SSL is operating on layer 4 of the OSI model so theoretically all 
applications (and most do) have some support for encrypted connections.


On 5/16/2024 5:46 AM, Gandalf Corvotempesta via dovecot wrote:

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


--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: MySQL connection with SSL

2024-05-16 Thread Christopher Wensink via dovecot

See here for the documentation for dovecot:

https://doc.dovecot.org/admin_manual/ssl/

On 5/16/2024 8:30 AM, Gandalf Corvotempesta wrote:

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 .my.cnf is already set to use ssl as preferred, but dovecot
doesn't connect with ssl.


--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-20 Thread Christopher Wensink via dovecot
If you using Thunderbird I would try repairing the folder, (under 
properties) or compact folders.  That fixes a lot of issues for us.


The only other thought I had was maybe the UID of your use for the sent 
folder was different from the old to the new server, and the mail is 
still trying to be copied to the old uid?


Chris

On 6/20/2024 4:00 PM, Marc via dovecot wrote:

I definitely don't know if it's a dovecot issue, but I thinks it's a good
place to start looking, since dovecot is managing the mailboxes. Can I
increase the verbosity in a way that saving an email into a folder would
be logged?

Maybe reindex the mailbox and see if the messages turn up?
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Only some of my sent emails are stored in sent-folder

2024-06-21 Thread Christopher Wensink via dovecot
Yes that's correct.  Look at the owner/group of the file/folder in 
question, and compare that to the id in /etc/passwd for the user on the 
old vs the new server.  Also confirm that messages are actually sending 
and not suck in /var/spool/mail/, (centos/redhat/oracle/rocky) or 
wherever your spool directories are on your system


check /var/log/messages or your default log location for clues as to 
where things are going or if there are errors, and check 
/etc/dovecot/conf.d/10-logging.conf for logging details.


You may want to increase the logging verbosity for a time to track down 
where the messages are going.


Chris



On 6/20/2024 5:04 PM, Nils via dovecot wrote:

On 6/20/24 23:15, Christopher Wensink via dovecot wrote:
If you using Thunderbird I would try repairing the folder, (under 
properties) or compact folders. That fixes a lot of issues for us.


The only other thought I had was maybe the UID of your use for the 
sent folder was different from the old to the new server, and the 
mail is still trying to be copied to the old uid?


Chris


Thank you for your hints, Chris. I didn't know that Thunderbird had a 
repair option. Sadly it didn't work this time, but I will keep it in 
mind for the future.


I'm not exactly sure if I understand you correctly. Do you mean the 
filesystem uid as in user-id/owner of the folder or is there something 
that I don't know of.

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org



--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org