Re: Pigeonhole Sieve Vacation Reply-To peculiarity with inbound AWS-SES

2023-02-07 Thread Plutocrat
On 2/8/23 05:33, jeremy ardley wrote: - AWS throttles but does not block traffic to a *destination* port 25. I set one up last week and can confirm that port 25 outbound was definitely blocked rather than throttled. However there's a form you can fill in to get it unblocked, and it only

Re: adding caldav/carddav next to dovecot

2022-10-14 Thread Plutocrat
I think rather than Sabre's DAV, you're after their Baikal server.     https://sabre.io/baikal/ Sabre is also the guts behind Nextcloud's Contacts and Calendar dav sync, which you might want to look into, especially if you can see a need for sharing contacts among a group of people, as well

Re: One-off backup

2022-10-10 Thread Plutocrat
Depending on your setup, abilities and intended results, you might also wish consider offlineimap and imapsync, with which you could maintain an updated offsite copy going forwards. P. On 10/10/22 22:57, Ian Evans wrote: I run a small email server for me and the missus. Six dovecot users.

Re: Sieve configuration for roundcube

2022-06-04 Thread Plutocrat
On 05/06/2022 10.27, Jeremy Hansen wrote: Any pointers to get dovecot configured with sieve for Roundcube filters?   Things I’ve found through search seem a bit all over the place. I’m using CentOS 8/Rocky Linux hosts. There's a script used by Hestia Control panel to do this. Although its

Re: log failed plaintext password for specific user only

2022-03-23 Thread Plutocrat
On 23/03/2022 19.30, mj wrote: Op 23-03-2022 om 12:29 schreef Aki Tuomi: 1. Try hashing possible password candidates and compare 2. Temporarily log everyone's passwords and then sanitize logs after you're done. No way to enable that option for a single user. While there is no way to

Re: Backup procedures

2022-02-11 Thread Plutocrat
I've had some success with restic to create incremental backups of mail directories on external storage. Very space efficient, and restic will handle all the de-duplication, pruning etc. You could write a filter to exclude the dovecot index files, or just restore to a different directory

Re: Certificate and showing a sign-cert not there

2022-02-08 Thread Plutocrat
Random addition to this thread, in case it helps ... recently had a client reporting certificate problems after Letsencrypt changed their root certificate late last year. Long story short: it boiled down to the fact he was using an ancient version of Outlook which

Re: silly quesiton

2022-01-27 Thread Plutocrat
On 28/01/2022 13.34, Stephane Magnier wrote: I using sendmail, but this is not clear how to share the same passwrd file, than Dovecot.. to be honest I should be able to get a file to manage on Sendmail, login and passwrd attached to the mailbox... Nb1 Not sure if this helps, but a server I

Re: Spam Folder

2021-11-22 Thread Plutocrat
You don't say if you're connecting Thunderbird with POP or IMAP. With IMAP  you need to 'subscribe' to folders. You can do this within the email client manually. Or you can put autosubscribe in the namespace eg.   mailbox Spam {     auto = subscribe     autoexpunge = 0    

Re: Retrieive vsz_limit programatically

2021-11-20 Thread Plutocrat
There's a doveconf command that will get that for you eg doveconf default_vsz_limit => default_vsz_limit = 256 M On 21/11/2021 02.34, William Edwards wrote: Op 20 nov. 2021 om 18:23 heeft Joan Moreau het volgende geschreven:  Hello How to get, programatically (C/C++), the value of

Re: Moving old emails to Gmail

2021-11-05 Thread Plutocrat
Wouldn't doveadm user myaddr...@domain.com tell you the mail directory? On 06/11/2021 11.10, Rob Campbell wrote: I have a backup of mail messages I have from back when i was in school using pine and I want to have them imported to my Gmail.  So I set up dovecot and my Gmail can access it

Re: Recovering deleted messages?

2021-11-05 Thread Plutocrat
On 05/11/2021 07.01, Sean McBride wrote: But now I have a user who accidentally used a POP client, and it deleted all his email. He told me this only days later, and it's now been days later still, and so of course he has sent and received email since. I have backups of course, but it is a

Re: Exporting a mailbox over IMAP.

2021-10-03 Thread Plutocrat
I don't have any direct answer to your question, but wanted to make sure you were aware of these tools, which are built to safely merge two IMAP mailboxes together with no loss. They might provide an alternative strategy. Imapsync: https://github.com/imapsync/imapsync Offlineimap:

Re: Containerize dovecot?

2021-08-25 Thread Plutocrat
On 25/08/2021 06.46, William Edwards wrote: I think the general concensus is that containerisation isn't always better than 'normal' VMs. 'Easy deployment & scaling' is also perfectly possible without containers. I've had a few discussions with clients who are dead-set on running a docker

Re: function for whitelisting IPs

2021-07-15 Thread Plutocrat
On 15/07/2021 20.03, Gerald Galster wrote: I have a better idea: Have a function for whitelisting IPs, possible /24's or similiar, where a login to roundcube or other webmail client (with 2FA) will add the IP onto a whitelist for that account. You could do that with fail2ban. eg

Re: TLS Security

2021-07-14 Thread Plutocrat
I've found this resource useful in the past https://ssl-config.mozilla.org/#server=dovecot=2.3.9=intermediate=1.1.1d=5.6 P.

Nabble

2021-07-09 Thread Plutocrat
Not sure if this is an issue, but Nabble seems to have stopped archiving this newsgroup around 22 Jun. http://dovecot.2317879.n4.nabble.com/ Thought I should probably tell someone P.

Re: Major upgrade of mail server

2021-07-07 Thread Plutocrat
First thing to note is that Ubuntu 18.04 is a Long Term Service release, and will be supported until 2023. So no matter how naggy Ubuntu is, you don't actually HAVE to upgrade at this point. You may disable the prompt if if bothers you: just remove or comment out the relevant file in

Re: Dovecot Stats for Logwatch

2021-06-02 Thread Plutocrat
was in corporate mode, and especially if I needed historical / comparative data. P. On 02/06/2021 16.41, @lbutlr wrote: On 02 Jun 2021, at 02:10, Plutocrat wrote: Its here if anyone can use it. Any suggestions for improvement welcome. Use at your own risk etc. https://gist.github.com/plutocrat

Re: Dovecot Stats for Logwatch

2021-06-02 Thread Plutocrat
. Use at your own risk etc. https://gist.github.com/plutocrat/8a2033923e14670dd13611fc0b51fc0f To add to logwatch you - put it in the scripts dir as eg /etc/logwatch/scripts/services/dovecot_summary - add a config file in /etc/logwatch/conf/services/dovecot_summary.conf - Add a line in /etc

Re: [EXT] Re: Dovecot Stats for Logwatch

2021-05-26 Thread Plutocrat
On 26/05/2021 15.53, Aki Tuomi wrote: I am no longer sure what version you are running, but the filter syntax you are using is 2.3.12+. OpenMetrics support is also 2.3.12 (iirc) so it needs new version too. old-stats has nothing in common with the new stats, so it has no effect on anything.

Re: [EXT] Re: Dovecot Stats for Logwatch

2021-05-26 Thread Plutocrat
On 26/05/2021 14.33, Aki Tuomi wrote: I am not sure what is not working for you... does `doveadm stats dump` work? a) Before any stats config it works without error, but gives no output. doveadm stats dump metric_name field count sum min max avg median stddev %95 b)

Re: Dovecot Stats for Logwatch

2021-05-25 Thread Plutocrat
some log processing bash script in half that time! Isn't that always the way ... P. On 24/05/2021 15.52, Aki Tuomi wrote: On 24/05/2021 10:20 Plutocrat wrote: Hi all, I run logwatch on a few servers and the script on there which parses the dovecot logs provides waay too much detail

Dovecot Stats for Logwatch

2021-05-24 Thread Plutocrat
Hi all, I run logwatch on a few servers and the script on there which parses the dovecot logs provides waay too much detail, and contains a bunch of stuff I'm not interested in. There's not much point in having a log summary if its 100Kb long! The one for exim is also terrible, but I've

Doveadm sync verbose not working?

2021-05-06 Thread Plutocrat
Hi Was trying a sync with eg this. old is a host set up in my ssh config file. the user exists on both sides. The sync completes correctly copying mails back and forth, but offers no feedback. doveadm sync -u u...@domain.com -f -R remote:old If I add -v I don't get any more

Re: debug SMTP commands sent/received to/from the submission service

2021-04-09 Thread Plutocrat
On 09/04/2021 15.13, Victor Sudakov wrote: I'd use Wireshark but the communication between SMTP clients and Dovecot is encrypted after STARTTLS, so Wireshark is pretty useless here. You might get some useful information connecting with openssl s_client Here's a page googled at random.

Re: Mass Stripping Attachments by Directory, Age, Size

2021-04-04 Thread Plutocrat
OK, an update on the progress with this. I finally settled on a python script which does the stripping based on code here:    http://code.activestate.com/recipes/302086-strip-attachments-from-an-email-message/ And then a bash script using find that allows

Re: Mass Stripping Attachments by Directory, Age, Size

2021-03-30 Thread Plutocrat
to be able to save attachments from the email, not delete it. I'll keep going I guess. I can't believe I'm the only person in the world to want to do this though ... P. On 19/03/2021 07.31, Joseph Tam wrote: On Thu, 18 Mar 2021, Plutocrat wrote: I've been looking around for a solution

Re: Mass Stripping Attachments by Directory, Age, Size

2021-03-20 Thread Plutocrat
ting. This approach might be good as a last resort. > MIMEDefang may help. Nice. Thanks for the pointer. P. On Fri, Mar 19, 2021 at 7:31 AM Joseph Tam wrote: > On Thu, 18 Mar 2021, Plutocrat wrote: > > > I've been looking around for a solution to this problem. I want to prune > down

Re: Mass Stripping Attachments by Directory, Age, Size

2021-03-20 Thread Plutocrat
> I know that for MS Exchange / Outlook some external archiving solutions as > components do exist and looking for something similar to offload > attachments with dovecot. :) > > Steven > > -- > https://steven.varco.ch/ > > > Am 18.03.2021 um 08:31 schrieb Plutocr

Mass Stripping Attachments by Directory, Age, Size

2021-03-18 Thread Plutocrat
Hi, I've been looking around for a solution to this problem. I want to prune down the attachments on a server before a migration. Some of the emails are 7 years old and have 40Mb attachments, so this seems like a good opportunity to rationalize things. So perhaps I'd like to "Remove all

Re: mail-crypt when using passwd-file driver

2020-12-31 Thread Plutocrat
On 17/12/2020 19.17, Adam Gould wrote: > I am looking for a solution to encrypt email using a mechanism that increases > the difficulty of decrypting my email. For example, having a plain-text > decryption key on disk would not be suitable.  From what I understand > mail-crypt supports using

Re: Disallow acces via imap, but keep lmtp running

2020-12-15 Thread Plutocrat
On 16/12/2020 06.16, Julian Kippels wrote: > what is the best way to temporarily disable access to a mailbox via > imap, but keep it possible to deliver to the mailbox via lmtp? Block IMAP ports on the firewall? P.

Re: follow up to my mail issues I posted about

2020-12-02 Thread Plutocrat
On 03/12/2020 11.22, Christy S wrote: > "Anything interesting in the dovecot logs at the time when you check?" > > So I looked up dovecot logs on google, and what I'm seeing is that dovecot > generally writes to mail logs under /var/log. The stuff I sent in my first > email came from

Re: A probably dumb question, but I'm stumped

2020-11-29 Thread Plutocrat
On 30/11/2020 04.31, Christy S wrote: > Your message was sent but a copy was not placed in your sent folder (Sent) > due to network or file access errors. When I've had this error in Thunderbird before it was because I was out of disk space (actually this was a POP account, so it was disk space

Re: Recommended Protocols?

2020-11-10 Thread Plutocrat
On 10/11/2020 13.42, Raymond Herrera wrote: > I am preparing a new server, with Dovecot 2.2.36 and would like to know the > currently recommended protocols. Should I stick to what I have? I would > prefer to start with the easiest configuration possible, which I will revise > later. This is a

Re: Spam learning for rspamd

2020-10-14 Thread Plutocrat
On 14/10/2020 4:23 am, Dan Egli wrote: > How can I explain to rspamd and/or sieve that a message that > was delivered, but marked as spam is in fact NOT spam? Perhaps you're after a fully automated solution but you might try this. - Set up folders in your account or accounts who you want to be

Re: Feature request.

2020-10-09 Thread Plutocrat
On 09/10/2020 4:16 pm, Rogier Wolff wrote: > It turns out that dovecot had been running uninterrupted since august > 13th, the certificate was renewed on september 7th and I suspect it > expired on october 7th. I guess you could do a few things yourself to make sure the cert is valid. Thinking

Re: Dovecot on Ubuntu 20.04

2020-08-21 Thread Plutocrat
On 21/08/2020 19.28, spamv...@googlemail.com wrote: > I'm on Ubuntu 18.04 and using the latest packages from repo.dovecot.com > > > But these are only available for bionic, not focal. > So I'm not sure if the bionic packages are working under focal. I don't know if

Re: Dovecot on Ubuntu 20.04

2020-08-20 Thread Plutocrat
On 21/08/2020 02.53, spamv...@googlemail.com wrote: > is anyone using the "Bionic (18.04 LTS)" packages on  Focal Fossa (20.04 LTS) > ? > I'm not sure if its working after the upgrade Not quite sure what you're saying here, but if you ran the "sudo do-release-upgrade -d" command, then it will

Re: SV: handling spam from gmail.

2020-06-11 Thread Plutocrat
On 11/06/2020 16.26, Marc Roos wrote: > I know it is not dovecot who should fix this. But anyone using dovecot > is using an MTA, and receiving spam ;) I know how to look at email > headers. Spf and dkim is not solving anything here. You can configure this sort of thing in postfix, exim etc.

Re: Error deleting INBOX when doing an imap sync

2020-06-03 Thread Plutocrat
On 03/06/2020 18.17, Des Magner wrote: >     dsync([user]): Error: Mailbox INBOX sync: mailbox_delete failed: INBOX > can't be deleted. Pretty sure I experienced this. I think what its telling you is the destination mailbox already exists, and it doesn't want to delete it. This is probably

Re: missing man page for “doveadm dsync-server”?

2020-05-24 Thread Plutocrat
On 25/05/2020 03.00, Felipe Gasper wrote: > Is there a man page for this command? I don’t see one in the repository. > Given its utility in, e.g., syncing mailboxes via SSH, it seems like > documentation for this command would be useful? I think this is what you need. As far as I can gather,

Re: fail2ban setup centos 7 not picking auth fail?

2020-05-22 Thread Plutocrat
Just to add another alternative while we're discussing the subject, I've got a soft spot for CSF as a replacement for fail2ban, and it has a lot of additional features as well. https://www.configserver.com/cp/csf.html P. On 22/05/2020 18.32, Jerry wrote: > On Thu, 21 May 2020

Re: dsync multiple mailboxes per connection?

2020-05-20 Thread Plutocrat
On 20/05/2020 22.47, Sami Ketola wrote: > We’re transferring users between servers and want to use dsync to transfer > the mail; ideally we’d like to avoid creating a separate TCP connection per > user. Would writing a script to process each user sequentially be an option? Like ... for

Re: doveadm sync backup from old to new server

2020-05-14 Thread Plutocrat
On 15/05/2020 10.56, Gregory Sloop wrote: > IMAP sync looks better and better. I'm a little puzzled why I don't just give > up walking on the broken glass and use it - but it just bugs the heck out of > me. If you can get the dovecot native sync to work, it seems to be a better option, as it

Re: doveadm sync backup from old to new server

2020-05-14 Thread Plutocrat
07.00, Gregory Sloop wrote: > So that was really helpful for me to understand that a lot more clearly. > Thanks! [Many, many thanks @Plutocrat!!] > > But I'm still getting a similar failure. > Let me give the command I'm using. > > doveadm backup -D -u u...@abc.net \

Re: doveadm sync backup from old to new server

2020-05-13 Thread Plutocrat
So specifically in your case: On 14/05/2020 09.09, Gregory Sloop wrote: > doveadm backup -D -u mc-u...@abc.net ssh r...@abc.net -p2200 doveadm > dsync-server -u cp-u...@abc.net > > mc-u...@abc.net is the MC/NEW mailbox/domain > cp-u...@abc.net is the CPanel/OLD user/domain account > The SSH

Re: doveadm sync backup from old to new server

2020-05-13 Thread Plutocrat
I struggled with this at one time, and with the lack of examples around the internet. In fact, I might have written this very post myself at one point! In the end, the penny dropped when I saw that the format was (command on local server) + (stuff you need to connect over ssh) + (command on

Re: Recommendations on intrusion prevention/detection?

2020-04-22 Thread Plutocrat
On 22/04/2020 20.29, Johannes Rohr wrote: > Is there a reasonable way of detecting and preventing logins from > unusual IP ranges? Or are there other strategies you would recommend? I'd generally set up a short ban on logins originally, and then a second, longer ban for 'repeat offenders'. You

Re: doveadm backup from gmail with imapc

2020-04-08 Thread Plutocrat
On 08/04/2020 19.14, Ben Mulvihill wrote: > Thanks for the suggestion. I think my next step will be to investigate > imapsync, or maybe isync, which also looks promising. I've recently migrated a server with imapsync with 150Gb of email and 200+ accounts. I found the trick with this was the run

Dovecot "User-Agent" equivalent

2020-04-07 Thread Plutocrat
Hi, I was trying to debug an IMAP connection problem. The client accesses an account via webmail, mobile phone, and desktop. I was wondering if there was a way of determining which of these they were using at a given time. My googling turned up the following settings in the imap{} section:

Re: [v 2.3.4.1][quota] recalculation

2020-02-11 Thread Plutocrat
On 11/02/2020 17.23, Sami Ketola wrote: > Does thunderbird even delete the mail from storage if you delete it from UI? You have to right click on Trash and select Empty Trash to force it. In the Trash Folder Properties, you can also select a Retention Policy (eg 30 days, 2000 messages). P.

Re: 2FA for Dovecot

2020-01-06 Thread Plutocrat
You don't say what sort of 2FA you're considering, but wouldn't you just tell Dovecot to use PAM, and then extend PAM to use a 2FA module. For example there's a Google Auth one available in the second link below. https://doc.dovecot.org/configuration_manual/authentication/pam/

Re: newbie question on a dovecot buffer

2019-11-05 Thread Plutocrat via dovecot
On 06/11/2019 01.41, Richard Bown via dovecot wrote: > Can I use Dovecot as a buffer between my mail providers Dovecot servers > and the several IMAP mail clients on my own network ? > ie,  so Dovecot would mirror the mail on my account with my mail provider, So > my local dovecot server

Re: dovecot disk space settings

2019-10-22 Thread Plutocrat via dovecot
On 22/10/2019 6:38 PM, Marc Roos via dovecot wrote: > Ok, what about placing a dummy file of 5GB or so on the partition, that > you can remove when necessary? I recently wrote a script to check disk space every week and email me an alert if there was less than 5G. Would that be an approach for

Re: Dovecot UIDs and POP.

2019-09-24 Thread Plutocrat via dovecot
On 24/09/2019 10:14 PM, @lbutlr via dovecot wrote: > Did the target machine already have the user setup? I think dsync wants to > sync mailboxes between configured and working servers with users already > defined. Yes, of course. And the directory structure was pretty much identical between

Re: Spam Blocking by filtering on username / id

2019-09-24 Thread Plutocrat via dovecot
Hi, Sorry for the delay in replying. Been having a few mail problems ironically! Gmail smtp server stopped working! On 23/09/2019 4:13 PM, Bernd Petrovitsch via dovecot wrote: > It's not directly a solution within dovecot but "fail2ban" exists. Yes, I have fail2ban, but that bans based on IP

Re: Dovecot UIDs and POP.

2019-09-24 Thread Plutocrat via dovecot
On 23/09/2019 5:01 PM, Sami Ketola wrote: > doveadm backup -u t...@domain.com  -R ssh > sshu...@remote.com  "sudo /usr/bin/doveadm > dsync-server -u t...@domain.com " > run this on the target system to which you are

Spam Blocking by filtering on username / id

2019-09-22 Thread Plutocrat via dovecot
This is probably quite an easy question, but I haven't been able to find the answer. I'm running a server where all the email addresses are in the format "u...@domain.com". I've noticed that a large number of fake login attempts use the format "user" eg. reception, service, root, admin. Is it

Re: Dovecot UIDs and POP.

2019-09-22 Thread Plutocrat via dovecot
On 22/09/2019 4:08 AM, @lbutlr via dovecot wrote: >> So while I was migrating the mail, I did try for a while to understand the >> format of the UID files, but failed to do so in the available time, so the >> client just had to deal with duplicate emails. But now the smoke has >> cleared, I'd

Dovecot UIDs and POP.

2019-09-20 Thread Plutocrat via dovecot
Hi, I recently performed a mail server migration for a client under fairly serious time constraints (ahem, yes one of those jobs). I would normally use imapsync to get all the mail copied to the new server, but under the circumstances, I had to write a script to rsync each of the mailboxes