Webmail and mail clients
Roundcube webmail on webmail.<domain> in the customer's brand, the mail. and webmail. hostnames with certificates, automatic setup for Thunderbird and Outlook, and the manual settings with the standard ports.
On this page
Mailboxes on a Berth server can be read in the browser with Roundcube, or in any mail program over IMAP or POP3. This page explains where webmail lives and why, how to give each domain its own mail. and webmail. names, how mail programs configure themselves, and which settings to use when they don't.
Webmail with Roundcube
Berth installs Roundcube with the elastic skin and the managesieve, zipdownload and markasjunk plugins. Users log in with their full e-mail address and the mailbox password. The Spam button moves a message to Junk and, if the mailbox has auto-block switched on, blocks the sender.
The Mail tab of a domain has a Webmail button, and the card Mail program has Open webmail. Both go to the right address for that domain.
Webmail is a separate component; install without it with berth install --no-webmail.
Webmail never runs on the panel's address
Roundcube always has its own hostname and never runs under the panel's address. A flaw in webmail, such as a cross-site scripting bug, therefore cannot reach the panel session of whoever is looking at it: the browser treats them as different origins, the panel's cookies are never sent to webmail, and strict security headers keep webmail out of frames. Roundcube also runs as its own system user, separate from the web server and from every subscription.
| Address | Who uses it |
|---|---|
webmail.<domain> | Customers, once switched on for the domain and covered by its certificate. |
webmail.<panel name> | The administrator, and the fallback for domains without their own webmail name. |
The server's webmail name defaults to webmail. in front of the panel name. To set it, add an A record (and AAAA if the panel has IPv6) pointing to the panel's address. The panel checks the DNS regularly and requests a Let's Encrypt certificate by itself as soon as the name points here. Until then, the card Webmail on its own name under Settings shows the record that is missing.
berth panel webmail-host # show, with the DNS records needed
berth panel webmail-host webmail.panel.example.nl
berth panel webmail-host --check # check the DNS again nowOld bookmarks to /webmail/ on the panel redirect to the new name.
Webmail in your own brand
Roundcube shows the brand the customer sees in the panel: the name, the logo and the help-desk link of their reseller, of your platform, or of Berth. Each webmail hostname gets its own brand, so customers of two resellers on the same server each see their own. Brands are set up under Settings → Branding; see Resellers and white label.
mail. and webmail. on the customer's own domain
Customers coming from Plesk often have mail.example.com in their mail program and open webmail at webmail.example.com. Berth supports the same names, with a certificate so mail programs never show a warning.
- Point the names you want to the server in DNS: an A record (and AAAA) for
mail.example.comandwebmail.example.com. When the panel manages the domain's DNS, it does this itself. - On the domain's Mail tab, open More settings → Mail under the domain's own name and click Switch on.
- The panel requests the domain's certificate again, now including these names. The card shows which names the certificate covers.
berth mail hosts --domain example.com --on
berth mail hosts --domain example.com # show
berth mail hosts --domain example.com --offThe same switch serves mta-sts.example.com for the MTA-STS policy and openpgpkey.example.com for OpenPGP keys. During a migration, an administrator can skip the DNS check (--skip-dns-check) while the old server's address is still being taken over.
Automatic setup in mail programs
Thunderbird, Outlook and most mobile mail apps can configure themselves from just the e-mail address and password. Berth answers both common methods, and only for domains that have mail on this server:
- Autoconfig (Thunderbird and others): the program asks the domain's website for
/.well-known/autoconfig/mail/config-v1.1.xml; the site passes it on to the panel. - Autodiscover (Outlook): the program asks for
/autodiscover/autodiscover.xml, or finds the panel through the SRV record_autodiscover._tcp.<domain>. The panel adds that record to the recommended mail DNS when the panel itself has HTTPS, so autodiscover also works when the website has no HTTPS or is hosted elsewhere.
Both return the server name for the domain: mail.<domain> when that name is on and covered by the certificate, otherwise the server's mail hostname. Apple configuration profiles (.mobileconfig) are not provided; on iPhone and Mac, enter the settings below.
Manual settings
When a program does not find the settings itself, use these. The exact server name is shown on the domain's mail page in the card Mail program.
| Setting | Value |
|---|---|
| Username | The full e-mail address |
| Password | The mailbox password |
| Incoming, IMAP | server name from the mail page, port 993, SSL/TLS |
| Incoming, POP3 | server name from the mail page, port 995, SSL/TLS |
| Outgoing, SMTP | server name from the mail page, port 465, SSL/TLS, with password |
STARTTLS also works on port 143 (IMAP), 110 (POP3) and 587 (SMTP submission). Only TLS 1.2 and newer is accepted, and the server never accepts a password over an unencrypted connection. A mailbox can only send as its own address or one of its aliases; see Outbound mail.
IMAP folders use the Plesk-compatible namespace INBOX. with . as separator, so folders keep their names when mailboxes move from Plesk.
When something does not work
- Login fails: use the full address as username, and reset the password with New password on the mailbox if needed. Repeated failures from one address are temporarily blocked.
- Certificate warning: the program uses a name the certificate does not cover. Use the server name from the mail page, or switch on
mail.<domain>as above. - Mail does not arrive: check the domain's Mail log tab and the DNS check on the mail page; see Mailboxes.