15
votes
Accepted
specify certificate of CA in Dovecot
What you need is a chain certificate. You can create one like this:
cat /etc/ssl/server.pem /etc/ssl/cacert.pem > /etc/ssl/chain.pem
and then use the chain as the server certificate
ssl_cert = &...
14
votes
Accepted
Can I delete or move mail files from maildir cur folder?
Yes, you may delete files from that folder manually. Dovecot is designed to assume that other software besides itself might manipulate the Maildir folder, including adding, removing, and renaming (the ...
12
votes
Thunderbird fails to connect to Dovecot and Postfix
I had similar problems with Thunderbird on Mac OSX and a new StartSSL cert.
Thunderbird uses OCSP to validate the certificates and fails silently in this special case. Additionally the StartSSL OCSP ...
11
votes
Accepted
Dovecot: Corrupted Mbox index cache file
According to this thread titled: IMAP Dovecot Error - Corrupted index cache 10.6.4 it sounds like you just need to do the following:
Scribit
Re: IMAP Dovecot Error - Corrupted index cache 10.6....

slm♦
- 345k
8
votes
Run script on receipt of email
The correct procedure to execute a script (I use a shell script) upon receipt of a mail message is the following. It involves modifying postfix's configuration file, master.cf (which, in my Debian, is ...
7
votes
Accepted
cron script: dovecot: unrecognized service
It seems that your problem is because cron scripts run with a different PATH value by default. For example, on Ubuntu as root you have /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin in ...
6
votes
Accepted
Finding the process id by port number
netstat is your friend when you're trying to troubleshoot a lot of network-related problems. To find a listening port, I would use netstat -tulpn | grep :<port number>
For example, to find what ...
6
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 ...
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
Postfix: Recipient address rejected from another domain zones
Finally, i found a problem! There was a short parameter in master.cf file.
I had:
-o smtpd_recipient_restrictions=permit_sasl_authenticated, reject
Must be:
-o smtpd_recipient_restrictions=...
5
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 ...
4
votes
Run script on receipt of email
I can see two obvious solutions.
If you are using procmail as the MDA on your server, or are willing to convert to using it, then you can run any arbitrary script on any arbitrary email through ...
4
votes
dovecot not starting : service(imap) access(/usr/lib/dovecot/imap) failed
thanks @ Celada, based on your comment it did seem to be a corrupt installation of dovecot.
I installed it using sudo apt-get install dovecot-imapd dovecot-pop3d and the service is starting fine. Am ...
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 doe-test@example.com really does mean “...
4
votes
Accepted
Authentication not working in Dovecot and PostgreSQL
You're using user database prefetch, which can be used to reduce the number of queries to the password database by already reading information on the user during authentication, but this only works ...
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 ...
3
votes
specify certificate of CA in Dovecot
In general the server offers to the requesting client the server certificate plus all intermediary certification authorities certificates so that the client can match the top certificate of the chain ...
3
votes
Mail filtering with procmail in a postfix/dovecot system with virtual users
Your /etc/postfix/main.cf file doesn't mention procmail anywhere. This is the problem, AFAIK.
In my case, I have:
mailbox_command = procmail -a "$EXTENSION"
and my procmail config file is in ~user/....
3
votes
Accepted
Dovecot ignores settings for mailboxes
By default Dovecot uses Maildir++ directory layout for organizing mailbox directories. This means that all the folders are directly inside ~/Maildir directory, and:
~/Maildir/new, ~/Maildir/cur and ~/...
3
votes
Run script on receipt of email
In case if link goes down, here's summary.
First, go to master.cf and register your script "myhook" by adding the following line:
myhook unix - n n - - pipe flags=F user=www-data argv=/path/to/...
3
votes
Accepted
unable establish remote imap connection, why not?
After some back-and-forth through comments and chat the OP's problem is now resolved. The IMAP server needed to be specified as imap.mydomain.com instead of mydomain.com although for some reason this ...
3
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 ...
3
votes
Postfix does not work with TLS but Dovecot does
You have to uncomment the smtps block in your main.cf, then restart Postfix. STARTTLS works because it uses the standard smtp port (25).
3
votes
Accepted
How can I have multiple email accounts from different domains using Postfix?
You would use a virtual_map to map virtual users in your second domain to either real users on the server or to other addresses (similar to an alias).
e.g. in /etc/postfix/main.cf you would have:
...
3
votes
Finding the process id by port number
You might also like a solution using ss that is more systematic and more precise than grepping port numbers.
# ss -t -l 'sport = 22'
State Recv-Q Send-Q Local Address:Port Peer ...
3
votes
dovecot confusing site cert with mail cert
You experience the very purpose of certificates: preventing to accidentally connect with a server that isn't the one you expect (mail.example.com instead of beta.example.com). You must configure a ...
3
votes
Meaning of < in file path in dovecot configuration file?
According to Dovecot manual, the var_name = </path/to/file syntax reads the file contents into the variable.
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
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
dovecot × 184postfix × 101
email × 64
imap × 28
debian × 24
centos × 21
ssl × 16
ubuntu × 12
linux × 10
smtp × 10
maildir × 8
mysql × 7
authentication × 6
thunderbird × 5
permissions × 4
exim × 4
sasl × 4
spamassasin × 4
ldap × 3
sendmail × 3
certificates × 3
migration × 3
fetchmail × 3
rspamd × 3
shell × 2