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 ...
HBruijn's user avatar
  • 80.3k
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 ...
Esa Jokinen's user avatar
  • 49.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 ...
Stefan Seidel's user avatar
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
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 ...
BillThor's user avatar
  • 28k
5 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 ...
Esa Jokinen's user avatar
  • 49.8k
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.
Tomek's user avatar
  • 3,553
5 votes
Accepted

IMAPS, SSL or TLS

The distinction between SSL and TLS is obsolete (or rather: SSL is obsolete, there's only TLS left). There is a distinction between explicit TLS (STARTTLS) and implicit TLS (usually with a dedicated ...
Zac67's user avatar
  • 11.7k
5 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 ...
Michael Hampton's user avatar
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 ...
Esa Jokinen's user avatar
  • 49.8k
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 ...
rubo77's user avatar
  • 2,519
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 ...
Andy Shinn's user avatar
  • 4,271
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 ...
ralz's user avatar
  • 2,781
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, ...
Ingvar J's user avatar
  • 531
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 ...
Romeo Ninov's user avatar
  • 5,932
3 votes

What happens if you have one imap client and one pop client?

When the POP client connects, and assuming it is not configured to leave a copy of the email on the server, then it will download and remove them. The IMAP client will see whatever mail is present on ...
Sam Cogan's user avatar
  • 39k
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 ...
Steve Shipway's user avatar
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 ...
Will's user avatar
  • 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 ...
Marco Demaio's user avatar
3 votes

Configuring roundcube with SSL for SMTP and IMAP

I know this question is old but can be useful for someone. In order to get IMAP running with SSL or TLS, you must copy IMAP configuration from config/defaults.inc.php file to config.inc.php. And ...
Diego Sousa's user avatar
3 votes

Recommended way to migrate MS Exchange mailboxes to Dovecot

I would also use IMAPSync here it would preserved all flags: unread will stay unread, read will stay read, deleted will stay deleted. If you wish to more commercial solution then you can check ...
BastianW's user avatar
  • 2,888
3 votes

Recommended way to migrate MS Exchange mailboxes to Dovecot

Dovecot's integrated dsync (usually used to replicate between Dovecot servers) can be used to migrate from arbitrary IMAP servers including Exchange. Basically, you will run doveadm dsync backup -R &...
Jens Erat's user avatar
  • 1,603
3 votes

SRV Records not visible, can not receive E-Mails

The SRV record is unlikely to be the culprit here; the MX record is what should be used. And there's one error in those - you have an MX record with preference 20 pointing at "mail.bla.example.com" ...
Jenny D's user avatar
  • 28.1k
3 votes

Why isn't disk space reduced after deleting mails through IMAP with Dovecot?

In MBOX format messages are stored in a single huge file one below the other, with a very simple structure: From [email protected] Sat Nov 10 06:00:00 2018 From: Author <author@example....
Esa Jokinen's user avatar
  • 49.8k
3 votes

Dovecot imap-login: confusing error? message

The openssl command as mentioned by Ingvar, finally lead me to overcome the accept,failed, succes line in /var/log/dovecot.log The problem was caused by an ambiguous character (#) in the user ...
kzpm's user avatar
  • 99
3 votes

Get new mails immediately

Better solution (IMHO): Have your mail server at a position where it can be directly delivered to (e.g. not an inhouse server behind a firewall). Use some mail hosting service or some form of VPS to ...
Sven's user avatar
  • 99.6k
3 votes
Accepted

How to enable IMAP php extension on aws EC2 instance

The main problem with imap is that this package is not available as php-imap on amazon linux 2 so we need to choose some alternative way. The main problem is to configure the essential files that are ...
MD Nasirul Islam's user avatar

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