18 votes
Accepted

doveadm: Delete messages older than date

Apparently my solution was almost right, I can do what I need with: doveadm expunge -u [email protected] mailbox INBOX SENTBEFORE 1-Jan-2011 doveadm expunge -u [email protected] mailbox INBOX.Sent ...
TCB13's user avatar
  • 1,238
16 votes

Warning `undefined parameter: mua_sender_restrictions` when `postconf -n`

Let me guess, you're running latest Postfix. Yep, Postfix maintainer of postfix added the mua_client_restrictions on of the config file(s) ... in a partial manner. The "bug" was introduced ...
John Greene's user avatar
15 votes
Accepted

How do I update Postfix .db files after removing unwanted emails?

postmap /etc/postfix/virtual will update the virtual.db. It's not necessary to reload Postfix configuration. See postmap(1).
Esa Jokinen's user avatar
  • 49.8k
14 votes

Is there a way to pause mail delivery in Postfix (accumulate in queue)?

Use this to stop (pause) and start delivery of outgoing mail again: sudo postconf -e defer_transports=smtp; sudo postfix reload sudo postconf -e defer_transports=; sudo postfix reload; sudo postfix ...
trogper's user avatar
  • 241
13 votes
Accepted

How do I setup a SENT and TRASH folder with Dovecot?

The original answer from 2011 is outdated. Dovecot lifecycle announcement: For any version before 2.2, we are not going to be providing any patches or fixes. This has been the case before, but we are ...
wedi's user avatar
  • 398
12 votes

dovecot-lmtp does not exist

The answers and responses already given contain all the parts of the solution, here's my attempt to tie that info together, having struggled with and now fixed the same problem: Overview: Dovecot ...
Andrew Richards's user avatar
12 votes

Connect to private/auth failed: No such file or directory

After spending some hours trying to figure out this, I finally fixed my problem, hope this helps to others... In the postfix/main.cf file you have something like: smtpd_sasl_path = private/auth and ...
Cross's user avatar
  • 335
12 votes

How to check if dovecot's configuration is valid? (config file syntax)

Use doveconf. The below doveconf command will exit non-zero and output a message if there's an issue with your dovecot config doveconf 1>/dev/null echo $? The above command will output only STDERR ...
Michael Altfield's user avatar
11 votes
Accepted

Gmail flagging Dovecot email as insecure

I solved this by adding both these lines to Postfix's main.cf: smtp_tls_security_level = may smtpd_tls_security_level = may (I had only set smtpd_tls_security_level because of a misleading article ...
gavanon's user avatar
  • 529
11 votes
Accepted

Dovecot: missing +w perm: /var/mail, we're not in group 8(mail)

Do you read this documentation? You must add mail_privileged_group = mail Or make /var/mail world-writable with sticky bit set, allowing anyone to create new files but not overwrite or delete ...
Slipeer's user avatar
  • 3,313
11 votes
Accepted

Postfix + Dovecot: Create send-only email account

The easiest solution would be to add the user just like any other user, but restrict recipient. This will give an error during RCPT TO regardless whether the user actually exists or not. For example,...
Esa Jokinen's user avatar
  • 49.8k
11 votes
Accepted

What is the purpose of the < (less than symbol) before path in dovecot settings

It’s to make it read the contents of the file rather than using the literal string “/etc/dovecot/private/dovecot.pem” as the certificate.
Mike Scott's user avatar
  • 8,078
11 votes

Set up certs for multiple domains in Postfix and Dovecot

This is done by looking at the unencrypted domain name in the Server Name Indication (SNI) header in the TLS handshake to select the right certificate before any encrypted data is exchanged. At the ...
Billy's user avatar
  • 244
10 votes

SASL LOGIN authentication failed: UGFzc3dvcmQ6 - Find the username

If you have fail2ban installed you can enable sasl (or sometimes called postfix-sasl) in your jail.local (or jail.d) and that should make the annoyances go away. ## for me this is in /etc/fail2ban/...
Jay M's user avatar
  • 398
10 votes

SASL LOGIN authentication failed: UGFzc3dvcmQ6 - Find the username

I was able to prevent this by setting up SSL and requiring auth attempts over SSL only with smtpd_tls_auth_only = yes This doesn't present the AUTH option to the remote client after EHLO and so the ...
Chloe's user avatar
  • 1,174
10 votes

Postfix Mail server rejecting sending mail from wordpress site

Disable IPv6 inet_protocols = ipv4 Should do the trick Open /etc/postfix/main.cf with a text editor Find the line inet_protocols = all Replace all with ipv4 Restart postfix https://clientarea....
Anthony Fornito's user avatar
9 votes

dovecot start "Address already in use" error

Just did an upgrade on an AWS Linux instance and dovecot wouldn't start with Address already in use errors (same as original poster). netstat and lsof didn't show any process attached to those TCP ...
rsfault's user avatar
  • 91
9 votes

SASL LOGIN authentication failed: UGFzc3dvcmQ6 - Find the username

There are at least two ways of finding the user name(s) being tried. Logging SMTP transactions with Postfix If you know which host(s) your strange connections are coming from, you can enable verbose ...
pesco's user avatar
  • 91
8 votes

Dovecot Migration and old mails

I tried the accepted answer and it failed - the dovecot versions in play are probably too far apart and we also switched the underlying MTA. So here is a more robust solution: doveadm import Assuming ...
flowtron's user avatar
  • 215
8 votes

Migrating from any IMAP/POP3 server to Dovecot

You can also do the following on the command-line without configuration files: # doveadm -Dv \ -o imapc_host=<SOURCE_HOST> \ -o imapc_user=<SOURCE_USERNAME> \ -o imapc_password=<...
random dent's user avatar
8 votes
Accepted

Setting up mail accounts without real Linux users

Honest advice, use normal user accounts and let your Linux system authenticate the users. This is easy to manage and very secure. I don't want to say that other systems are insecure but I trust my ...
Pozzo-Balbi's user avatar
8 votes
Accepted

Dovecot cant connect to imaps 993

Solution The problem was in fact a configuration issue, which was commented on by dovecot itself in /var/log/syslog: Jan 14 17:34:23 mysite dovecot: imap-login: Fatal: Can't load ssl_cert: There is ...
Phillip -Zyan K Lee- Stockmann's user avatar
8 votes
Accepted

What are the correct dovecot file permissions for /etc/dovecot on Ubuntu 18.04?

The systemd unit, which controls dovecot has ProtectSystem set to full or strict, which prevents the processes from writing to /etc. Add to the unit file /etc/systemd/system/multi-user.target.wants/...
tilkov's user avatar
  • 253
7 votes

Gmail flagging Dovecot email as insecure

Your email is sent unencrypted. If you just want to try your best add the following to your main.cf smtp_tls_security_level = may To enforce TLS encryption for email sent to google add this to your ...
Jofre's user avatar
  • 569
7 votes
Accepted

Do Postfix and Dovecot support OCSP stapling?

As of 2017-10, No. Dovecot does not have any OCSP support whatsoever, as of 2016 was considering the feature for a future release, no work has been done on that since. Postfix does not have any OCSP ...
anx's user avatar
  • 9,783
7 votes

Set up certs for multiple domains in Postfix and Dovecot

To my knowledge, this is not possible. You have two options: Use one domain as the MX for all your other domains that the server should handle. So, if you have a cert configured for example.com and ...
Sven's user avatar
  • 99.6k
6 votes

How do I setup a SENT and TRASH folder with Dovecot?

I got a similar problem, the Samsung Android app was creating its own TRASH folder, instead of using the existing Trash one. After fixing it, as described below, I had to remove then add again the ...
Robin Thoni's user avatar
6 votes

Dovecot: autocreate plugin is deprecated, use mailbox { auto } setting

I just started experimenting with this myself, but I believe that in your case you need to replace these lines: protocol imap { mail_plugins = "autocreate" } plugin { autocreate = Trash ...
Serrano's user avatar
  • 251
6 votes

dovecot mail storage auto detection failed

I fixed this. I needed to uncomment the mail_location in 10-auth.conf i believe to point to the mbox (as it says in the file, because this is a new user there is no mailbox yet. After you also need to ...
ATv's user avatar
  • 129
6 votes

Manage multiple account from just one

You need to be aware that POP3 & IMAP (implemented by Dovecot) are protocols for accessing mailboxes while SMTP (implemented by Postfix) is for sending and receiving mail. Instead of trying to ...
Esa Jokinen's user avatar
  • 49.8k

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