Skip to main content
25 votes
Accepted

How can I add subdomains to letsencrypt using certbots?

You have to use the --expand option of certbot --expand tells Certbot to update an existing certificate with a new certificate that contains all of the old domains and one or more additional new ...
Maxime Levesque's user avatar
11 votes
Accepted

ssl_protocols has been replaced by ssl_min_protocol

From time to time, software authors will change the way their product is configured. In this case the authors of Dovecot have replaced the configuration option ssl_protocols with a new option ...
Philip Couling's user avatar
8 votes
Accepted

Configure Postfix and Dovecot-LMTP to receive mail via SMTPUTF8?

TL;DR: See Summing up! I regularly also get emails with UTF-8 chars in the Subject: line. Never so far any within other headers. While a 'soft-fail'-mode in postfix is unknown to me, you may setup ...
Gen.Stack's user avatar
  • 860
5 votes

Can I delete or move mail files from maildir cur folder?

You can use dovecot's own tools for that, e.g. doveadm move. You can use search queries to select mails. This selects all mails in a date range and moves them to the Archive doveadm move -u jane ...
sebix's user avatar
  • 484
5 votes
Accepted

Postfix: Recipient address rejected from another domain zones

As @alexkowalski mentioned, the problem that there was a short parameter (-o) in master.cf file not in the `main.cf file. Because -o options in master.cf can override the options written in main.cf ...
Amer Sawan's user avatar
4 votes
Accepted

Compressed Maildir [was Strange Postfix Maildir files]

As I further explored the subject, felt something was out of place definitively. My suspicions also grew even more, as when ungzipping some messages, the name was actually updated to reflected the ...
Rui F Ribeiro's user avatar
4 votes
Accepted

Postfix Dovecot LMTP and address delimiters doesn't work

The problem here isn't with Postfix but with Dovecot. Since Dovecot doesn't know about the Postfix recipient_delimiter it has to assume that a user query for [email protected] really does mean “...
ntninja's user avatar
  • 299
4 votes
Accepted

Calling Bash script from Sieve script

it seems I've found what was not working: for some reason dovecot didn't seem to have execute permission on the shell scripts. So the solution was actually sudo -u dovecot chmod +x *.sh So correct ...
Richard Rosner's user avatar
3 votes

What is the best way to backup emails locally? Use doveadm?

if you use mdbox, you should use doveadm backup and not rsync. With rsync there is a risk that the index will break, it can't simply be rebuilt. For mbox / mdbox / mailDir you can use this command: ...
NETFLOX's user avatar
  • 71
3 votes
Accepted

Hide "You have old mail" message when logging into shell?

It is probably generated by the PAM pam_mail.so module. Edit /etc/pam.d/login en comment out the line that looks like: session optional pam_mail.so standard Alternatively, keep the line but ...
wurtel's user avatar
  • 16.5k
3 votes

I can't send or receive email through my email server

The error message at the top of the question tells you exactly what the problem is, and where to look for it: Oct 28 15:29:52 (server name) dovecot[14267]: imap-login: Fatal: Couldn't parse private ...
Chris Davies's user avatar
3 votes

Run script on receipt of email

I found the configuring of Dovecot to be a more elegant solution (as opposed to configuring Postfix). The steps are as follows: create your script (ie. mail_processor.py) in the /usr/lib/dovecot/...
HyperActive's user avatar
3 votes

Thunderbird fails to connect to Dovecot and Postfix

I had a similar problem with Thunderbird and Dovecot after changing old certificate to new. When I try connect to the Dovecot, I couldn't accept the new certificate on Thunderbird v 78.7.1 (32 bits) ...
alfa rj74's user avatar
3 votes
Accepted

Postfix delivery problem, status=bounced (mail forwarding loop for [email protected]), is this the solution?

I have confirmed that the howtoforge.com code above is the solution to my problem. It's important to remove the space in the file header_checks between the : and the .*, unlike what is shown on ...
Jeff's user avatar
  • 846
3 votes

Simple way to send email to Dovecot mailbox from Unix scripts?

The basic problem is that without an MTA, these mailboxes have no email address. They are nothing but some files on disk. Dovecot doesn't need to understand email addresses. The usual arrangement ...
Philip Couling's user avatar
2 votes

Thunderbird fails to connect to Dovecot and Postfix

In case someone lands here and your certificate is issued with OCSP must staple you have to disable that feature in Thunderbird because Dovecot (and Postfix) probably never will support it. Go to the ...
macgeneral's user avatar
2 votes

Thunderbird fails to connect to Dovecot and Postfix

I can see in wireshark that thunderbird is sending back the 42 ALERT - 42 means bad certificate. I found a workaround by manually adding the server certificate to the list of exceptions. I wrote more ...
wozza xing's user avatar
2 votes

Thunderbird fails to connect to Dovecot and Postfix

Just a note - RFC 8314 - which is AFTER the answer by @gogoud - has once again standardized Port 465 for submission with implicit TLS using SMTPS and had deprecated submission via Port 587 as obsolete....
Alice Wonder's user avatar
2 votes

Change existing dovecot maildir installation from m-UTF7 charset to UTF8 to avoid breaking TAB

UTF-8 is key-only option, i.e.: mail_home = /home/data/%d/%n mail_location = maildir:~/mail:LAYOUT=fs:DIRNAME=_m_a_i_l_:UTF-8 see: https://doc.dovecot.org/configuration_manual/mail_location/ https://...
Andrei Pozolotin's user avatar
2 votes
Accepted

Why email can't be read from Maildir?

The mail utility usually can't handle Maildir mailboxes. Use another mail client, such as mutt for example, that can. mutt -f /home/user/Maildir
Kusalananda's user avatar
  • 356k
2 votes
Accepted

In dovecot, what syntax to use if I have a space in mysql password?

Dovecot's source code relies on spaces to separate the fields in the connection string. Therefor, it is advised to use passwords without spaces. See this discussion on the ML, which references this ...
ychaouche's user avatar
  • 1,043
2 votes
Accepted

Dovecot Immediate Connection Closed

Here, an SMTP client is speaking before it's been spoken to: Jun 21 07:57:10 mail postfix/postscreen[10463]: CONNECT from [185.234.218.188]:64778 to [208.146.44.129]:25 Jun 21 07:57:10 mail postfix/...
Chris Davies's user avatar
2 votes
Accepted

What is the best way to backup emails locally? Use doveadm?

Simply tar czf mailstorage.tgz /path/to/maillocation. doveadm backup is intended to syncronize the mail storages between two instances of the dovecot, not for creating the archives.
Kondybas's user avatar
  • 705
2 votes

How can I return (fetch) the subject using Dovecot's `doveadm fetch`?

The subject is part of the header (hdr), so what you want is doveadm fetch -u myUser hdr.subject ALL
Evan Carroll's user avatar
  • 35.1k
2 votes
Accepted

dovecot: imap-login: Disconnected auth failed user=<>

After a whole day of testing, I discovered that this problem happens when one does not run the Virtualmin post-config wizard. In this case, the file /etc/usermin/mailbox/config is left at the default ...
conanDrum's user avatar
  • 465
2 votes

Calling Bash script from Sieve script

Check if your sieve_pipe_bin_dir set in 90-plugin.conf is overridden in 90-sieve-extprograms.conf. If that is the case, you could uncomment it from 90-sieve-extprograms.conf, or remove it from 90-...
CEL's user avatar
  • 121
2 votes

SSL both for web and mail

Can I use my website's SSL certificate for postfix and dovecot for secure connection? In general yes. But the names you use to access the mail servers need to be part of the certificate too. So if ...
Steffen Ullrich's user avatar
2 votes
Accepted

During email delivery, how do MTA, MDA, POP/IMAP connect with each other?

That depends on how your SMTP client is set up but in general that's correct. Correct. Let's talk about qmail-compatible maildirs as no one really uses /var/mail/username UNIX-style mailboxes any ...
Artem S. Tashkinov's user avatar
2 votes

Simple way to send email to Dovecot mailbox from Unix scripts?

Dovecot comes with a special local delivery agent dovecot-lda, so you can send mail from a script to a local dovecot mailbox directly, without any MTA like sendmail or postfix: /usr/local/libexec/...
Igor G's user avatar
  • 133
2 votes

Ubuntu server 22.04 Postfix/Dovecot error: postfix/smtpd fatal: no SASL authentication mechanisms

I propose to use the excellent postfix defaults. Rather follow official guides and create a minimal (and commented) configuration. The defaults for the above parameters are postconf -d | grep -E "...
nursoda's user avatar
  • 21

Only top scored, non community-wiki answers of a minimum length are eligible