Hot answers tagged

41 votes
Accepted

Is there a standard DNS record to indicate the IMAP server for a domain?

From a DNS perspective you have SRV DNS records which allow the use of DNS for publishing services and service discovery. Their main use is to allow services to run easily on non-standard ports and to ...
  • 74k
11 votes

UID uniqueness of IMAP mails

A tuple of (folder name, folder UIDVALIDITY, message UID) distinguishes a message from all others in an IMAP account. For any given message, that tuple can change between sessions, so you might want ...
10 votes
Accepted

Connecting to Hotmail's IMAP Server using Telnet

This is normal; it's exactly the same that happens, if you try to telnet HTTPS 443; the port 993 is for IMAPS, which uses TLS. In TLS connection (from RFC 5246, 7.4.1.2 Client Hello): When a client ...
  • 44.8k
10 votes
Accepted

Get new mails immediately

getmail seems to support IMAP IDLE. So you can write a simple systemd job: [Unit] Description=Starts getmail After=network.target [Service] ExecStart=/usr/bin/getmail --idle=INBOX Restart=on-failure ...
9 votes

Configure Dovecot to only let localhost connect via imap

The listen = addr:port config is deprecated in newer versions of dovecot. The new way of doing things is with service { inet_listener imap { address = ... } }. On my system it's in /etc/dovecot/conf....
  • 345
9 votes
Accepted

Roundcube + Dovecot: SSL errors when trying to log in

The different meaning of tls:// and ssl:// in $config['default_host'] is unfortunately not documented. tls:// means usage of STARTTLS, thus usually port 143 ssl:// means usage of TLS, thus usually ...
  • 4,263
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 ...
  • 215
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 ...
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 ...
7 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=<...
7 votes

Emptying Trash with Dovecot IMAP

The Plugin that @hostemaster mentioned is not really needed if you don't deal with thousand of users. Just create an easy script like this: #!/bin/bash # DOVEADM="/usr/local/dovecot/bin/doveadm"; $...
6 votes

Which IMAP flags are reliably supported across most mail servers?

The main IMAP protocol document is RFC3501. Section 2.3.2 describes the standard flags every IMAP implementation must work with. Are the system flags sufficiently widely supported that I can ...
  • 677
6 votes
Accepted

SquirrelMail showing empty inbox. THIS FOLDER IS EMPTY

I'm not an expert in either dovecot or postfix, but it looks like you have postfix configured to use Maildir style mailboxes, but you're telling dovecot to use mbox style mailboxes. Take a look at ...
6 votes
Accepted

PHP CLI not loading IMAP extension

There are separate configuration files for PHP when called via Apache and when called via the CLI. For example, in Debian (at least), these are in /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini, ...
6 votes
Accepted

Are CNAME "imap..." and "smtp..." subdomains needed?

Unless you plan on growing to the point you need to split your services onto different servers, these are unnecessary. When you do grow to that point, just add new A record for smtp, or even smtp1 ...
  • 27.6k
5 votes

Get new mails immediately

fetchmail in daemon mode with IMAP and --idle option may do the trick. Please have a look at man page as it mentions some limitations.
  • 3,305
5 votes
Accepted

E-mail transmission example

This is based on a misconseption that the ports have anything to do with encryption. However, I find this a good question, as it gives a chance to correct this misunderstanding. The ports are not to ...
  • 44.8k
4 votes

IMAP standard folder names - "Junk" or "Spam"

Luckily, RFC 6154 IMAP LIST Extension for Special-Use Mailboxes is here to help us, giving some standard mailbox attributes for identifying special-use mailboxes. \Junk This mailbox is where ...
  • 44.8k
4 votes
Accepted

Problems when launching doveadm

You have doubled imap_acl in the config, dovecot try to link that library twice protocol imap { mail_max_userip_connections = 20 mail_plugins = acl imap_acl imap_acl }
  • 6,904
4 votes

Disabling SSLv2 in Courier IMAP

Since SSLv2 and SSLv3 are obsolete for years and TLS is the successor, nowadays you probably want to disable TLS 1.0 and TLS 1.1 in courier. Don't set the TLS_CIPHER_LIST! The default will be fine, it ...
  • 2,439
4 votes
Accepted

Haproxy Load Balance IMAP,POP3,SMTP: Unable to use proxy 'imap' with wrong mode, required: http, has: tcp

According to the docs, mode can be set on all sections (backend, frontend, defaults, listen). You have a defaults section mode http. Could this be applying to the frontend sections that don't have ...
  • 4,201
4 votes

How do the servers mark the email as read

cPanel uses dovecot as POP3/IMAP server. Messages that are read are moved from new to cur folder. From: https://wiki2.dovecot.org/MailboxFormat/Maildir Directory Structure By default Dovecot uses ...
  • 2,691
4 votes
Accepted

Dovecot imap-login: confusing error? message

Start by checking that the SSL CERT is in order, installed at the correct location and has the correct file owner and mode. 644 for the certificate and 600 for the private key Then test it manually, ...
  • 511
4 votes
Accepted

Mail error 550 Maximum line length exceeded (RFC 5322 2.1.1)

The software which creates the email and submits it is responsible for ensuring that it complies with all relevant standards, such as not having excessively long lines. The mail server is rightly ...
4 votes
Accepted

Does email client connect to IMAP/SMTP server by resolving IP through A record or MX record?

When you deal with clients you set the hostname/IP of IMAP/POP/SMTP servers. And the client uses DNS (in case of hostname) to look up the IP address using the A (or AAAA) record of the server(s) you ...
  • 4,292
3 votes

Rename Junk folder in dovecot IMAP server

It is not Dovecot recreating the Trash folder; it is your mail client (Outlook in this case). Some mail clients, when first setting up the definition, will probe the mail server to identify folders ...
3 votes

RoundCube login to local IMAP server failing

Being confronted with the very same issue, I did a few ours of Google-Foo to get to the root of the issue: As Gabriel assumed correcty in his answer, it's not the fault of Roundcube – but of the way ...
  • 349
3 votes
Accepted

Gmail rejecting IMAP calls from AWS EC2 hosted James server

In fact, the problem is simple: your JAMES server is running in an instance that's probably geographically far from where you usually are when you log in to your Gmail account, so it appears to Google ...
3 votes

How to upload an mbox file to an IMAP server

It is a two-step procedure: Import the mbox file into a local email folder Then move (or copy) the newly imported emails to the imap folder In my case I used Mozilla Thunderbird with the already ...
  • 131
3 votes

Migrate IMAP account between providers - client access only

An excellent tool for Windows is MailStore Home (free) You install it on your PC then you Archive all your emails from IMAP Account1 on Server1 you simply Export all your previously archived emails ...

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