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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 “...
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 ...
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:
...
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 ...
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 ...
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/...
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) ...
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 ...
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 ...
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 ...
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 ...
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....
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://...
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
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 ...
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/...
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.
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
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 ...
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-...
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 ...
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 ...
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/...
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 "...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
dovecot × 204postfix × 115
email × 68
imap × 29
debian × 27
centos × 21
ssl × 19
ubuntu × 16
smtp × 13
linux × 11
mysql × 8
maildir × 8
authentication × 7
thunderbird × 6
permissions × 4
exim × 4
sasl × 4
spamassasin × 4
configuration × 3
socket × 3
ldap × 3
certificates × 3
sendmail × 3
migration × 3
fetchmail × 3