Everything about email on an APOLO server: the mail server and how to install it, email for a domain, mailboxes, forwarders, filters and the spam filter, webmail, deliverability, and the reports that answer "where is my mail?". Hosting users manage the mail of their own domains on the Email page; administrators also have the Mail server page for the whole server.
| What | Where | Who |
|---|---|---|
| Email on or off per domain, mailboxes, forwarders, catch-all, autoreplies, domain filters, the domain's spam filter, its DNS records, webmail addresses, mail app settings | Email → Mailboxes | Everyone with the Email feature, for their own domains |
| What happened to a message | Email → Delivery reports | Everyone, for their own domains |
| The mail services, delivery reports per domain, the queue, webmail and SOGo, advanced settings, protection, Postfix's configuration | Mail server | Administrators |
| Installing Postfix, Dovecot, Rspamd, Roundcube and SOGo | Services → Email | Administrators |
| Mailboxes, forwarders, the largest mailbox and the hourly sending limit of a package | Limits | Administrators |
Hosting users find Email in the menu under Account. Administrators open it from Go to at the top of the panel (Ctrl K) or from the Email column of Websites → Domains; they see the domains and mailboxes of every account there.
The mail server
APOLO's mail server is made of well-known open-source parts that run on the server itself. APOLO installs them, writes their configuration and keeps it in step with the panel.
| Part | What it does | Ports |
|---|---|---|
| Postfix | Receives mail for your domains from other servers and sends the mail of mail apps, webmail and websites. | 25 (STARTTLS), 587 (STARTTLS), 465 (TLS) |
| Dovecot | Keeps the mailboxes and serves them over IMAP and POP3, enforces mailbox sizes and runs the Sieve filters while it delivers. | 993 and 143 (STARTTLS), 995 and 110 (STARTTLS) |
| OpenDKIM | Signs outgoing mail with the DKIM key of each domain. Comes with Postfix. | 8891, this server only |
| APOLO's mail filter | Part of the APOLO agent: checks who sends each message (a mailbox may send only as its own account's domains) and the hourly sending limits. | 8890 and 8892, this server only |
| Rspamd (optional) | Gives every incoming message a spam score and seals it with ARC. | 11332 and 11334, this server only |
| Roundcube (optional) | Webmail. | through the apps port 2096 and mail.<domain> |
| SOGo (optional) | Webmail with calendars and contacts, CalDAV and CardDAV, and ActiveSync. AlmaLinux, Rocky Linux and RHEL 9 only. | 20000, this server only |
The server is not an open relay. Port 25 accepts mail only for the domains whose mail is delivered here; mail apps send through 587 or 465, where signing in with the mailbox's address and password is required and TLS is mandatory. IMAP and POP3 need TLS too: on 143 and 110 only after STARTTLS. Mail is stored in Maildir folders under /var/vmail/<domain>/<name>/, owned by the system user vmail; mailbox passwords are kept only as hashes.
BEDEM, when it is installed and set to block, stops addresses that keep guessing passwords on the SMTP sign-in, IMAP or POP3. The panel's own messages (password reset links, certificate warnings) can go out through this Postfix or through another SMTP server: Settings → Server → Panel e-mail.
Install the mail server
Administrators only. There are two ways:
- In the setup wizard of the first sign-in (see First steps), section Email: Install the mail server now installs Postfix, Dovecot and Rspamd, and Roundcube webmail adds the webmail. Both are on for whatever isn't installed yet. Roundcube needs the mail server and PHP (installed, or chosen in the wizard). If Postfix or Dovecot fails, the rest isn't tried; a failed Rspamd doesn't stop the others.
- In Services, group Email: Install on each row. Each install runs in the background with a progress card at the bottom right, and the bell tells you when it is done. Mail server → Status lists the same services with their versions and states, and its Install buttons lead to the same place.
Install them in this order: Postfix (it brings OpenDKIM), Dovecot (with Pigeonhole, the Sieve support for spam rules, filters and autoreplies), then Rspamd ("Install Postfix first: Rspamd checks the mail Postfix receives."), Roundcube webmail (needs Postfix, Dovecot and an installed PHP version) and, if you want calendars and contacts, SOGo (see SOGo).
What the install does on the server:
- Opens the mail ports in the firewall (25, 465, 587 for Postfix; 143, 993, 110, 995 for Dovecot) when firewalld or ufw runs; see Firewall.
- Writes Postfix's settings in
main.cfandmaster.cfand Dovecot'sconf.d/90-apolo.conf, and checks them with Postfix's and Dovecot's own tools; a configuration that doesn't pass is taken back. - Uses the Let's Encrypt certificate of the server's host name, or makes a self-signed one (see Certificates).
- Rspamd comes from rspamd.com's repository (with EPEL on AlmaLinux and Rocky Linux); on Debian and Ubuntu the distribution's package is used when that repository can't be reached. Roundcube is the newest 1.6 release (the long-term series) from the Roundcube project, installed only when its SHA-256 checksum matches, and runs on a PHP instance of its own (
apolo-php@webmail) with the newest installed PHP from 7.4 up.
The mail server can be installed before any domain uses it. Nothing is delivered until you turn email on for a domain (below).
The Mail server page
Administrators only, in the menu under System. Its tabs:
- Status
- Mail services: Postfix, Dovecot, Rspamd, Roundcube and SOGo, each with its version and whether it is running, stopped or failed. A service that isn't installed has Install, which opens Services → Email.
- Delivery reports
- Every domain's sent, delivered and received mail. See Delivery reports per domain.
- Queue
- The messages Postfix hasn't delivered yet. See Mail queue.
- Webmail
- Roundcube and SOGo, the webmail sign-in page and SOGo's settings. See Webmail and SOGo.
- Advanced settings
- Message size, default mailbox size, recipients, connections, TLS and a smarthost. See below.
- Protection
- Server-wide spam and abuse protection. See Mail protection.
- Configuration
- Postfix's
main.cfandmaster.cfas text. See Postfix configuration editor.
Advanced settings
Mail server → Advanced settings holds the Postfix and Dovecot limits APOLO otherwise sets for you. Save mail settings checks them with Postfix and Dovecot before they are applied: a value the server refuses is not saved.
- Maximum message size 50 MB
- The largest e-mail the server accepts, from 1 to 2048 MB. A message written in Roundcube can be up to 50 MB whatever is set here.
- Default mailbox quota Unlimited
- The size of a new mailbox created without one: through the API, or by a migration when the old mailbox had no limit. The panel's form always asks for a size. With Unlimited, such a mailbox gets the account's storage as its size (at most the package's largest mailbox, and never more than 1 TB).
- Recipients per message 1000
- How many recipients one message may have. Empty uses Postfix's default of 1000.
- IMAP connections per account Dovecot's default
- Simultaneous IMAP and POP3 sessions of one mailbox from one address (Dovecot's
mail_max_userip_connections, 10 unless you set it). With SOGo installed, connections from the server itself may hold 100. - Minimum TLS version Default
- Default, TLS 1.2 or TLS 1.3, for Postfix: mail coming in and going out. With Default, TLS 1.2 or newer is required where TLS is mandatory (587 and 465). IMAP and POP3 always require TLS 1.2 or newer.
- Send outbound mail through a smarthost off
- Relays every outgoing message through an external SMTP server instead of sending it directly: useful when the server's IP address has a poor reputation or the provider blocks port 25. Fields: Smarthost (its host name), Port (587 by default), Username (empty: no authentication) and Password. The password stays on the server (Postfix's
sasl_passwd, readable by root only) and is never shown again; leave it blank to keep the stored one. With a username, the connection to the smarthost must use TLS.
Certificates
- The server's certificate. Postfix and Dovecot use the Let's Encrypt certificate of the server's host name when there is one (see Host name). Otherwise APOLO makes a self-signed certificate for the host name (valid for 820 days, made again 30 days before it expires); mail apps then ask once whether to trust it.
mail.<domain>. Every domain with email on gets a Let's Encrypt certificate of its own formail.<domain>oncemail.<domain>points to this server in public DNS; a website isn't needed. The same certificate also coverswebmail.<domain>,autoconfig.<domain>andautodiscover.<domain>when they point here. It is requested when email is turned on, and AutoSSL asks again (every 2 hours at most for the same name) until the name points here, so a record added later is picked up by itself. Postfix and Dovecot present it to clients that ask for that name, and renewals are picked up by themselves.- Where you see it. Every
mail.<domain>is on the SSL/TLS page with its state and the reason when it couldn't be issued, and there you get it at once (Get a certificate, Renew now), install your own certificate or remove it. - The first mailbox. Creating a domain's first mailbox asks for the certificate of
mail.<domain>at once, as the mail apps get set up then; Mail app settings show "APOLO is getting a certificate…" until it is there. Nothing has to be started by hand. - The mail host. Mail app settings show
mail.<domain>. Until it has a certificate of its own the card says so and gives the server's host name, which works meanwhile (see Mail apps); APOLO gets the certificate by itself once the name points here.
Turning email off for a domain removes its Let's Encrypt certificate for mail.<domain>; turning it on again gets a new one. Your own certificate stays until the domain's mail goes (the domain, its website or the account is deleted).
Email for a domain
Email is turned on per domain, under Domains on the Email page. The list holds every domain of the account: each website's domain, its aliases (without www., which belongs to the website) and the domains without a website from Websites → Domains (see Domains). An alias shows "Alias of <domain>", a domain without a website shows "No website".
- Make sure Postfix and Dovecot are installed (administrators, above).
- Open Email and turn on the switch of the domain under Domains. While no domain has email yet, the page says where to start and the first switch pulses. The switch changes at once; the row shows Turning email on… while the server sets the domain up, then Email is on.
- Add the records from DNS records at the domain's DNS provider. When the domain's zone is on this server's DNS, APOLO adds them itself (see DNS: mail records).
- Wait until the domain's MX points to this server. Mail routing shows when mail is delivered here; Check again asks at once.
- Create mailboxes, forwarders and the rest.
You can also start with Create mailbox: on a domain whose email is off, the form says so and email is turned on for it when you create the address.
When you turn email on, APOLO looks up the domain's MX in public DNS, sets the domain up in Postfix and Dovecot (Postfix takes its mail once the MX points here), makes its DKIM key and turns on its spam filter with the defaults. In the background it installs OpenDKIM if it is missing and requests the certificate for mail.<domain>. Domains of public mail and web services (gmail.com, outlook.com and the like) are refused: "<domain> belongs to a public mail or web service and can't be added here."
Turning email off stops mail for the domain, and its mailboxes can't sign in. Their messages are kept until you delete the mailboxes or the website. The DKIM key stays on the server, so the DNS record is still valid when you turn email on again; the domain's autoreplies and spam rules stop. Deleting the website (or the alias, or the domain) deletes its mailboxes with their messages, its forwarders, the DKIM key and the mail certificate.
While an account is suspended, mail for its domains is still received and stored, but none of its mailboxes can sign in (IMAP, POP3, SMTP or webmail), and open sessions are closed. See Suspend an account.
Mail routing
Postfix delivers mail for a domain on this server only while the domain's public MX record points here. Otherwise mail for the domain is handled like mail for any outside address: also mail sent from this server's websites and mailboxes goes to the domain's own mail server. This keeps anyone from catching mail meant for a domain whose mail is hosted elsewhere. The section Mail routing on the Email page shows the current answer and lets you choose:
- Automatic (by MX) default
- Follows the MX. The main MX decides (the one with the lowest priority number): when this server is only a backup MX, mail goes to the main one.
- Another mail server
- Mail for the domain always goes to its own mail server.
- This server
- Administrators only: mail is delivered here whatever the MX says, for example when the domain's mail comes through a filtering service.
A domain whose email was just turned on counts as "another mail server" until the check finds its MX here. While a domain set to Automatic waits for its MX, mail that arrives here for it is held back with "try again later" (451) instead of bounced, so senders and filtering services keep it and retry; a domain set to Another mail server gets a permanent refusal. The MX is asked from public DNS (never this server's own DNS): when email is turned on, a minute after the panel starts and every 6 hours for every domain, every hour for the domains delivered here and every 15 minutes for the ones waiting. When a check fails, the previous answer stays in use. Every change of the routing goes into the audit log.
DNS records for mail
The section DNS records on the Email page lists what to add at the domain's DNS provider, each with a copy button. MX and A bring mail to this server; SPF, DKIM and DMARC keep your mail out of spam folders.
| Purpose | Type | Name | Value |
|---|---|---|---|
| Address of the mail server | A (and AAAA with IPv6) | mail.<domain> | the server's public address |
| Where mail for the domain is delivered | MX, priority 10 | <domain> | mail.<domain> |
| SPF: servers allowed to send for the domain | TXT | <domain> | v=spf1 mx a ip4:<IPv4> ip6:<IPv6> ~all |
| DKIM: key that signs your outgoing mail | TXT | apolo._domainkey.<domain> | v=DKIM1; k=rsa; p=… |
| DMARC: what receivers do when checks fail | TXT | _dmarc.<domain> | v=DMARC1; p=none |
| Webmail address (webmail.<domain>), optional | A (and AAAA) | webmail.<domain> | the server's public address |
| Mail app setup (autoconfig, autodiscover, SRV), optional | A (and AAAA), SRV | autoconfig., autodiscover., _imaps._tcp, _pop3s._tcp, _submissions._tcp, _submission._tcp, _autodiscover._tcp | see Mail apps |
Behind NAT the records carry the server's public IPv4 address, not the private one of its network card. A domain whose mail is on another server gets no mail app setup records. Some DNS providers want only the part before the domain (mail, _dmarc, apolo._domainkey) and @ for the domain itself; for an SRV record some ask for the service (_imaps) and the protocol (_tcp) separately. "No DKIM key yet" means OpenDKIM is still being set up: check again in a few minutes. What each record does is explained under Deliverability.
Mailboxes
A mailbox is an address with its own password and storage, such as info@example.com. People read it in any mail app over IMAP or POP3 and in webmail. Mailboxes are part of the account's backups, and a single mailbox can be restored on its own (see Restore).

Create a mailbox
- Turn email on for the domain (above). Until then Create mailbox is greyed out.
- Choose Create mailbox.
- Address: the name and the domain. Lower-case letters, digits, dots, dashes and underscores, starting and ending with a letter or digit, up to 64 characters. Names with other letters (such as š or ü) can't be mailboxes; mail from such addresses still arrives.
- Password: at least 10 characters, and not easy to guess (common words and names, sequences like 1234 or qwerty, repeated characters and the address itself are refused). The field can make one for you.
- Mailbox size: 512 MB, 1 GB, 2 GB or 5 GB (1 GB is preselected), up to the largest mailbox of the account's package. It counts towards the account's storage.
- Choose Create mailbox.
The account's package decides how many mailboxes it may have: "The account uses 5 of 5 mailboxes. Remove one or ask for a higher limit." An address that already has forwarders can become a mailbox too: the mailbox keeps the mail and the forwarders send their copies on.
The mailbox list
Each row shows the address with a copy button, Used (what the mailbox holds against its size, measured every 5 minutes) and Created. Badges under the address tell more:
- Two-factor: webmail asks for a code after the password (below).
- Catch-all: it gets the mail for unknown addresses of its domain.
- Forwarded to …: a forwarder on its own address sends copies on.
- Filter forwards to … (a warning): the mailbox's own filter in webmail forwards its mail (see Mailbox filters).
- Autoreply on, Autoreply until …, Autoreply from …, Autoreply ended; and Importing mail, Imported …, Import stopped or Import failed. A badge opens its window.
The icon next to the menu opens webmail signed in (see below). The menu of a mailbox has:
- Open webmail
- With Roundcube and SOGo both installed, also Open in Roundcube or Open in SOGo for the other one. Administrators see Install webmail when there is none.
- Change password
- The same rules as a new mailbox. Phones and mail apps signed in to the mailbox will ask for the new password: its IMAP and POP3 sessions and its webmail sessions end.
- Turn off two-factor
- Only while two-factor is on. See below.
- Autoreply
- See Autoreplies.
- Change quota
- 512 MB, 1 GB, 2 GB, 5 GB or 10 GB, up to the package's largest mailbox; the current size stays in the list. A size smaller than what the mailbox holds is allowed, with a warning: "That's less than the mailbox already holds. New mail is refused until messages are deleted."
- Import mail
- See Import mail from another server.
- Delivery report
- Opens Email → Delivery reports for this address, for the last 7 days.
- Use as catch-all, Turn off catch-all
- See Catch-all.
- Delete mailbox
- Asks you to type the address. All messages in the mailbox are deleted, and so are its calendars and contacts in SOGo; mail sent to the address afterwards bounces. A running import stops, and a catch-all that pointed to the mailbox is turned off. A mailbox that ends a loop of forwarders can't be deleted until one of those forwarders is removed.
Mailbox size and the largest mailbox
- The size is an upper limit, not a reservation. What a mailbox really holds counts towards the account's Storage, together with its files and databases.
- One mailbox can't be larger than the account's storage. All mailboxes together may be, because most stay well below their size.
- A package's Largest mailbox (in Limits; 20 GB for new packages, empty for no limit) caps every mailbox of its accounts: "Mailboxes of this account can be at most … MB." A mailbox that is already larger keeps its size and can only be made smaller. Restores and migrations keep a mailbox's original size.
- When a mailbox is full, Dovecot lets the message that fills it take it up to 10% over its size; after that, new mail is refused while the sending server is still connected ("552 5.2.2 The mailbox is full"), so the sender hears about it at once.
- When an account uses all of its storage, new mail for its mailboxes waits ("try again later", 452) until there is room again.
- Early warnings tell the owner when a mailbox reaches the notification threshold (90% by default; see Notifications).
Two-factor sign-in for a mailbox
Mailbox users turn two-factor sign-in on themselves, on the webmail sign-in page: Settings → Two-factor sign-in → Turn on two-factor. They enter the current password, scan the QR code with an authenticator app (Google Authenticator, Microsoft Authenticator, Aegis and others) or type in the key, and enter the 6-digit code it shows. From then on webmail asks for a code after the password, and the mailbox has the Two-factor badge in the panel.
- Two-factor protects webmail in the browser. Mail programs (IMAP, POP3, SMTP, CalDAV, CardDAV and ActiveSync) keep signing in with the mailbox password alone.
- It works only with APOLO's webmail sign-in page on (below). With Roundcube's and SOGo's own sign-in pages the password alone opens webmail.
- Turning it off on the sign-in page asks for the password and a code.
- A lost phone: the account's owner or an administrator chooses Turn off two-factor in the mailbox's menu. Webmail asks only for the password again and the mailbox's webmail sessions end; its owner can turn two-factor on again on the sign-in page.
Forwarders
Mail to a forwarder's address is sent on to another inbox, on this server or anywhere else. In Forwarders on the Email page:
- Type the name before the @ and choose the domain.
- Type the destination address.
- Choose Add. The trash icon on a row deletes the forwarder.
- The address must be on one of your domains with email on. Forwarders work only while the domain's mail is delivered here (Mail routing).
- To send one address to several inboxes, add one forwarder per destination, up to 50 for one address. A package can limit the account's forwarders (Forwarders in Limits, empty for no limit).
- A forwarder can't send mail to its own address, the same forwarder can't be added twice, and a loop (a to b, b to a) is refused: "That makes a forwarding loop".
- Mail forwarded to outside addresses gets a rewritten envelope sender (SRS) so the receiving server accepts it. It has an hourly limit of its own per account, the same number as the sending limit, counting one message per outside address (Limits); over it, the sending server is told to try again later.
- The autoreply of a mailbox also answers mail that came to it through forwarders.
Forwarding a mailbox's own address
An address that is a mailbox can have forwarders too. The mailbox keeps the mail and a copy goes to each destination: the forwarder shows Copy kept in the mailbox and the mailbox Forwarded to …. This is how you read mail in Gmail and still answer as the address through the mailbox's SMTP sign-in (Gmail's "Send mail as"). When the mailbox is deleted, its forwarders go on by themselves.
Mailbox users can set this up themselves on the webmail sign-in page, under Settings → Forwarding: Forward to another address asks for the current password (so a stolen session can't send the mail elsewhere), up to 10 addresses. These forwarders belong to the account like any other, appear under Forwarders on the Email page, and the audit log marks them "(set in webmail)". Removing one doesn't ask for the password.
Catch-all
Normally mail to an address that is neither a mailbox nor a forwarder (a typo, an old address) bounces back to the sender. A catch-all sends it to one of the domain's mailboxes instead. In Catch-all on the Email page, choose under Mail for unknown addresses:
- Bounces back to the sender: the default.
- Goes to <mailbox>: one of the domain's own mailboxes. The choice is saved at once.
The same works from a mailbox's menu: Use as catch-all and Turn off catch-all. Mailboxes and forwarders get their own mail as before. A catch-all also gets the spam sent to made-up addresses, so keep the spam filter on for that domain. Deleting the chosen mailbox turns the catch-all off. A domain needs a mailbox first: until then, mail to unknown addresses bounces.
Autoreplies
An autoreply answers incoming mail automatically, for example while someone is away; the mail still arrives in the mailbox as usual. Open it with Autoreply in the mailbox's menu. Mailbox users set the same autoreply themselves on the webmail sign-in page (Settings → Autoreply).
- Send an automatic reply
- Turns the reply on or off.
- Subject optional
- Up to 200 characters. Empty: "Auto:" and the subject of the message.
- Message
- The reply, up to 8000 characters.
- First day optional
- Empty: from now.
- Last day optional
- Empty: until you turn it off. It can't be a day that has passed. Days follow the panel's time zone.
- Between two replies to the same sender 1 day
- 1, 2, 3, 7, 14 or 30 days: each sender gets at most one reply in that time.
- Mailing lists, automatic messages, bounces and spam get no reply (also spam that is only marked). Mail sent to the mailbox's forwarders gets one too.
- While this autoreply is on, an out-of-office reply set inside Roundcube or SOGo isn't sent: each message gets one reply.
- The reply is sent from the mailbox's address, so the receivers' SPF check passes.
- Spam moved to Junk or deleted by the spam filter, and mail a domain filter moved or deleted, isn't answered (see the order).
- Autoreplies need Sieve (Pigeonhole, which comes with Dovecot); APOLO adds it when it is missing. When email is off for the domain, its autoreplies stop.
Filters
Filters act on mail while it is delivered. There are two kinds: domain filters, set on the Email page for all mailboxes of a domain, and each mailbox's own filters, set in webmail. Both are Sieve scripts that Dovecot runs.
The order mail goes through
- The domain's spam filter: Always allow, Always block, the spam score.
- The domain's filters, in their order.
- The mailbox's autoreply.
- The mailbox's own filters in webmail.
Moving a message to a folder or deleting it (by the spam filter or a domain filter) ends the run: later rules, the autoreply and the mailbox's own filters don't run. Sending a copy doesn't end it.
Domain filters
In Filters on the Email page (choose the domain at the top when you have several), Add rule opens a new rule:
- Name
- Up to 60 characters, for the list.
- Conditions
- 1 to 5 conditions, with All conditions must match or One condition is enough. A condition is a field (Sender, Recipient (To or Cc), Subject, Header with its name, such as
List-Id, or Size in KB), a comparison (contains, doesn't contain, is exactly, begins with, ends with; is present for a header; is larger than and is smaller than for the size) and a value. Upper and lower case don't matter. For the sender and the recipient, "contains" also looks at the name; "is exactly", "begins with" and "ends with" compare only the address (ends with@partner.rs).*and?are ordinary characters, not wildcards. - Action
- Move to a folder (letters, digits, spaces, dashes and underscores; the folder is made in each mailbox when the first message arrives), Delete it (the message never reaches the mailbox and can't be found again) or Send a copy to an address (the mailbox keeps the message; the server's forwarding rule and sending limits apply).
A domain has up to 50 rules. In the list each rule has a switch to turn it off, arrows to move it up or down, and buttons to change or delete it; every change saves the whole list. The server compiles the rules before they are saved: a rule it can't use isn't saved, and the earlier rules keep working. A copy must follow the server's forwarding rule (Automatic forwarding): with a rule other than To any address, a copy to an address the rule doesn't allow is refused when you save. Domain filters come back with the domain when it is restored from a backup.
Mailbox filters in webmail
Each mailbox can have its own filters, out-of-office reply and forwarding: in Roundcube under Settings → Filters, in SOGo in its preferences. They are kept on the server (Sieve, through ManageSieve on this server only, port 4190) and work whatever program reads the mail.
- Forwarding in these filters follows the server's rule (Automatic forwarding): to any address (the default), only within the mailbox's own domain, to the own domain and listed domains, or not at all. Roundcube offers only what the rule allows, and the server refuses any other forwarding.
- Every 5 minutes the panel reads each mailbox's active filter. A filter that forwards mail shows the warning badge Filter forwards to … on the mailbox. If nobody set that up, remove the filter in webmail and change the password: a new password doesn't remove filters.
- Mail forwarded by a filter is sent with the mailbox as its sender, under an hourly limit of its own per mailbox (the same number as the mailbox's sending limit).
Spam filter
Rspamd checks every message that comes in from the internet and gives it a spam score: ordinary mail stays near 0, spam usually gets 6 or more. What happens to spam is each domain's choice. Mail sent from this server and by signed-in mailboxes isn't scored.
- Install (administrators): Services → Email → Rspamd, or Install in the Spam filter section of the Email page. It needs Postfix.
- For every domain: from a score of 15 the server refuses the message while the sender is still connected (554), so it never arrives. Rspamd adds the headers
X-Spam-Level(one*per point),X-Spam-Status,X-Spamd-ResultandAuthentication-Results, and first removes copies of them that a sender put in. There is no greylisting. - The Junk folder: every mailbox has one, created and subscribed for it and marked as the spam folder, so mail apps show it as Junk or Spam.
- Mail keeps flowing when Rspamd is stopped: it arrives unscored, and the section warns administrators that Rspamd is stopped. Without Sieve, spam is only marked ("Spam is only marked: Dovecot's Sieve plugin isn't installed on this server.").
The spam filter of a domain
In Spam filter on the Email page (choose the domain at the top when you have several), the summary shows the status, the score from which mail is spam, what happens to it and the two lists; administrators also see Checked today and Marked as spam today for all domains of the server. Change opens the settings:
- Filter spam on
- Off: all mail goes to the inbox; spam still gets its spam mark (the headers), so mail apps and the mailbox's own filters can use it.
- Spam score 5
- Mail with this score or more is spam, from 1 to 15. A lower number catches more spam, and more good mail with it.
- What to do with spam Move to the spam folder
- Move to the spam folder: into the mailbox's Junk folder, so nothing is lost. Delete it: spam never reaches the mailbox, and good mail taken for spam can't be found again. Only mark it: spam stays in the inbox with its spam mark.
- Delete instead when the score is this or more off
- With Move to the spam folder only: obvious spam is deleted from this score (from the spam score up to 15), borderline spam still goes to Junk.
- Always allow
- Never treated as spam (unless the server refuses it at 15). The sender's From address is compared. Mail from an allowed sender skips the spam rules; domain filters, the autoreply and the mailbox's own filters still run.
- Always block
- Always treated as spam, whatever its score: to Junk, or deleted with Delete it, also with Only mark it. The From address and the envelope sender are compared.
Both lists take one entry per line: an address (boss@firma.rs), @domain for all of its addresses, or *.domain for its subdomains (not the domain itself); up to 500 entries in each list. The settings are written as the domain's Sieve script on the server.
Mail protection
Mail server → Protection (administrators) holds server-wide settings that keep the mail this server sends out of spam folders and cut the junk it receives. They apply on top of each domain's spam filter.
- Outbound limit 300 / hour
- How many messages a signed-in mailbox may send per hour (together with its webmail), and the account's websites together. Over the limit the server tells the sender's app to try again later (451), so no mail is lost and a hacked mailbox can't ruin the server's reputation. A package can set its own number (Outbound email per hour in Limits); from 10 to 100,000, and 0 uses the default.
- Refuse forged mail from this server's domains on
- Mail from the internet whose sender is an address of a domain whose mail is on this server is refused (550), unless the domain's SPF record allows the sending server; when DNS can't be asked, the mail is let through. The domain's own mailboxes send through this server, so anything else is someone pretending ("the director" asking for a payment). Turn it off only while an outside service sends as your domain and its SPF record doesn't list that service yet.
- Learn from the Junk folder on
- When a user moves a message into Junk, the filter learns it as spam, and as good mail when it is moved back out. Uses a small Redis of its own (about 128 MB) and needs Rspamd and Sieve.
- Reject bots before the conversation (postscreen) off
- Blocks spam bots on port 25 before they can send: a sender that talks before the greeting is a bot. A sender that is new to the server may have to connect a second time. Sending on 587 and 465 is never affected. It changes how port 25 works, so try it on a test server first.
- Also check DNS blocklists off
- With postscreen only: senders listed in Spamhaus are rejected too. It needs a local recursive resolver on the server (see the server's DNS servers): with a public one such as 8.8.8.8 or 1.1.1.1, Spamhaus answers with errors that look like hits and good mail is rejected. A busy server also needs a Spamhaus data query key.
- Block dangerous attachments on
- Refuses e-mail whose attachment ends in a listed extension, the usual way malware arrives. When an attachment matches: Reject (the default), Mark as spam (adds 10 to the spam score) or Tag only (adds 2). Blocked extensions:
exe com scr pif bat cmd vbs vbe js jse wsf wsh hta msi msp cpl jar lnk scf reg ps1 msc vxd dllby default, separated by commas or spaces, without the dot, up to 200; clearing the list turns the block off. Applies to incoming and outgoing mail, through Rspamd.
Webmail
There are two webmail programs: Roundcube, the panel's webmail, and SOGo, optional, with calendars and contacts (below). Both can be installed side by side; people sign in to either with the full email address and its password. In front of both is APOLO's own webmail sign-in page.
Administrators install Roundcube in Services → Email, with Install on the Webmail card of the Email page, or in the setup wizard. It needs Postfix, Dovecot and an installed PHP version ("Roundcube needs PHP. Install a PHP version in Server → PHP first.").
Webmail addresses
| Address | When |
|---|---|
https://<server>:2096/ | For every mailbox: the server's apps port, on by default. The Webmail card shows it as For every mailbox. |
https://mail.<domain>/ | When mail.<domain> has its Let's Encrypt certificate (Certificates) and no website uses that name. |
https://webmail.<domain>/ | When webmail.<domain> points to the server and is on that certificate. |
https://<domain>/webmail | On every website: leads to the domain's webmail. or mail. address, or else to the server's address. |
/webmail/ and /SOGo/ on the panel's addresses | Browsers are sent on to the apps port. |
The Webmail card on the Email page gives the addresses to pass to the people who use the mailboxes (Webmail for <domain>, Also at, From the website and For every mailbox); no panel account is needed. When the panel's address is an IP address but the host name has a valid certificate, administrators are told to switch the panel address to the host name, so these links use it.
Webmail, SOGo and the database tools run on their own port, 2096 (see Ports). It must be open in the server's firewall and in the provider's. When it isn't, a webmail tab opened from the panel says after 12 seconds that the host doesn't answer and which port to open.
APOLO's webmail sign-in page
On by default, under Mail server → Webmail → Webmail sign-in: APOLO's webmail sign-in page. Every webmail address opens it:
- The full email address and its password. Open settings goes to the settings after signing in.
- The 6-digit Two-factor code, when the mailbox has two-factor on.
- Roundcube or SOGo, when both are installed. Always open the one I choose now remembers the choice.
The page is in nine languages (the choice is under the card). Roundcube's and SOGo's own sign-in pages are closed while it is on. A session lasts at most 12 hours and ends after 2 hours without activity; restarting the panel signs people out. Ten wrong sign-ins from one address in 10 minutes, or ten for one mailbox in 15 minutes from addresses it never signed in from, block further tries for a while; after five wrong codes the person signs in again.
Turning the switch off brings back Roundcube's and SOGo's own sign-in pages. Two-factor isn't asked there, and the settings below aren't available.
What people can do on the sign-in page
Settings on the page, or Open settings when signing in, has:
- Webmail after signing in
- With both installed: Ask each time, or always open Roundcube or SOGo.
- Forwarding
- A copy of the mail to up to 10 other addresses; the mailbox keeps the mail (see above).
- Autoreply
- The mailbox's autoreply, the same one as in the panel, with the same settings (see Autoreplies). Set up the autoreply or Change, then Save: turning it on or saving it on asks for the current password, so a stolen session can't make the mailbox answer everyone in its name. Turn off doesn't. The audit log marks the change "in webmail".
- Change password
- The current password, then the new one twice (at least 10 characters). Mail programs on phones and computers need the new one too; the mailbox's other webmail sessions end.
- Two-factor sign-in
- Turn on two-factor or Turn off two-factor (see Two-factor sign-in).
Roundcube
- Roundcube 1.6 with its Elastic skin, folders including Archive and Junk, download of attachments as ZIP, a junk button that moves messages to Junk, and filters, out-of-office and forwarding under Settings.
- People send only as their own address: Roundcube doesn't let them change the sender. Sessions end after 30 minutes without activity.
- New Roundcube 1.6 releases are offered with the system updates and counted as security updates. The webmail's database is copied first, and if the upgrade fails, the previous version stays (see System updates).
Opening webmail from the panel
The webmail icon in a mailbox's row, or Open webmail in its menu, opens the default webmail in a new tab, already signed in, without the password. The link works once and for 60 seconds. The mailbox's owner and administrators can use it, from the browser only (not with an API token); it is refused while email is off for the domain or the account is suspended. Each opening goes into the audit log ("Opened webmail for …").
SOGo: calendars and contacts
SOGo 5 is an optional second webmail with calendars and address books. Phones and Thunderbird sync calendars and contacts with it over CalDAV and CardDAV, and, when the administrator turns it on, as an Exchange account with ActiveSync.
Install SOGo
Administrators install it in Mail server → Webmail (Install on the SOGo row) or in Services → Email → SOGo groupware. It needs:
- AlmaLinux, Rocky Linux or RHEL 9 on x86_64: Alinto's free packages (nightly builds) exist only there. On other systems the page says so; use Roundcube.
- Postfix and Dovecot: SOGo signs in to the mailboxes on this server.
- MariaDB (or MySQL) or PostgreSQL, for its database
apolo_sogowith the calendars and contacts. - At least 2 GB of memory; it uses about 0.5 to 1 GB.
- Port 20000 free: a website's app on it must move to another port first.
The install adds Alinto's signed package repository and installs SOGo with its tools, ActiveSync support and a memcached of its own. Apache comes with the package: APOLO empties its SOGo configuration, so /SOGo isn't on every Apache website, and leaves it stopped. SOGo is then at https://mail.<domain>/SOGo/ and at /SOGo/ on the panel's apps address, and on the sign-in page next to Roundcube.
Calendars and contacts on phones
With SOGo installed, the Webmail card on the Email page has Calendars and contacts on phones and in Thunderbird:
- CalDAV and CardDAV address:
https://mail.<domain>/SOGo/dav/whenmail.<domain>has its webmail address, otherwise the same path on the panel's address. Onmail.<domain>,/.well-known/caldavand/.well-known/carddavlead there too. - ActiveSync server (Exchange account): the host name, shown while ActiveSync is on.
The username is the full email address and the password the mailbox password. On an iPhone add a CalDAV and a CardDAV account, on Android use DAVx5, and in Thunderbird add the calendar and the address book with the address; with ActiveSync on, a phone can add an Exchange account instead (mail, calendar and contacts in one, with push).
SOGo settings
Mail server → Webmail → SOGo settings, administrators only. Saving applies the settings at once: SOGo restarts, which signs nobody out.
- Default webmail Roundcube
- With both installed: what Open webmail on the Email page opens, and what
https://mail.<domain>/opens while APOLO's sign-in page is off. The other one stays available. - ActiveSync (Exchange accounts) off
- Phones and Outlook can add the mailbox as an Exchange account, with push. Each phone with push keeps one SOGo process busy. Microsoft licenses the ActiveSync protocol: Alinto says production use needs a licence from Microsoft.
- SOGo processes automatic
- How many requests SOGo handles at once: automatically 3 per GB of memory, from 4 to 30; you can set 2 to 100. Raise it when many phones use push.
- What every mailbox starts with
- Opens after signing in (Mail), Look for new mail (every 5 minutes), New messages (HTML), Reply (below the quote), Week starts on (Monday), Working day in the calendar (8:00 to 18:00) and Reminder of a new event (no reminder). Each person can change these in SOGo's own preferences; a change here applies to those who haven't.
- Automatic forwarding To any address
- Where people may forward their mail automatically with filters, in SOGo and in Roundcube, and where domain filters may send copies: To any address, Only within the mailbox's own domain, Own domain and the domains listed (with Domains mail may be forwarded to) or Not allowed. The server refuses any other forwarding, which keeps a hijacked mailbox from sending mail away unnoticed.
- Sign out after no activity 120 min
- 15 to 10,080 minutes. Phones and calendar apps are not affected.
- Public calendars and address books off
- People may publish a calendar or an address book with a link anyone can open without signing in.
- Limit sending from SOGo off
- At most 30 messages and 300 recipients within 10 minutes; then sending waits 30 minutes, counted from the first of those messages. Mail apps that send over SMTP have their own limit (Protection).
- Wrong passwords before blocking 5
- Within 10 minutes, for one mailbox; then Sign-in blocked for 10 minutes.
- Performance
- Memory per process (512 MB; a process that uses more restarts after its request), ActiveSync: items per answer and ActiveSync: size of an answer (0 for SOGo's own) for phones that sync very large mailboxes.
Always set: people send only from their own address and can't add outside mail accounts, nobody can share with "all users" of the server, the password is changed only in the panel or on the sign-in page, reminders of events go out by email every minute, and idle sessions are closed every 5 minutes. Signing in from the panel works only while APOLO's network rule that closes SOGo's port to every other program on the server is loaded (it uses nftables); otherwise the page warns "Signing in from the panel is off" and people sign in with the mailbox address and password. Calendars, contacts and SOGo's settings are backed up with each account's mail and removed with the mailbox.
Deliverability
Receiving servers accept mail and keep it out of spam folders when they can verify where it comes from. APOLO prepares everything on the server; what is left for you is the DNS records and the server's reverse DNS.
SPF
The SPF record lists the servers allowed to send for the domain. APOLO's is v=spf1 mx a ip4:<IPv4> ip6:<IPv6> ~all. A domain may have only one SPF record: when other services also send as the domain (a newsletter service, a mail provider), add them to this one record (for example with include:) rather than publishing a second one.
DKIM
OpenDKIM signs the mail that leaves this server (from mailboxes, webmail and websites) with the domain's own key: 2048-bit RSA, selector apolo, published as a TXT record at apolo._domainkey.<domain>. The key is made when email is turned on, stays on the server while email is off and is deleted with the domain. The record is long: if your DNS provider asks, split it into strings of up to 255 characters (APOLO's own DNS does that itself).
DMARC
The DMARC record tells receivers what to do with mail that fails SPF and DKIM. APOLO suggests v=DMARC1; p=none: receivers only watch. Once your mail passes SPF and DKIM (a week or two, also for newsletters and other services that send as the domain), change it to p=quarantine so forged mail goes to spam. To get the receivers' reports, add rua=mailto: and an address of yours. The policy is the domain owner's choice: APOLO suggests p=none and never tightens it by itself.
ARC
With Rspamd installed, mail from the internet gets an ARC seal with the receiving domain's DKIM key (selector apolo, so the record you already have covers it). When that mail is forwarded on, Gmail and Outlook still see the result of this server's checks.
SRS
A message forwarded to an outside address keeps its From, but its envelope sender becomes an SRS address of the forwarding domain (SRS0=…@<domain>), so the receiving server's SPF check passes. A bounce to that address goes back to the original sender for 30 days; nothing but bounces is accepted at SRS addresses. Mail whose sender is one of this server's domains keeps its sender.
Reverse DNS (PTR)
Many receivers refuse mail from an address without reverse DNS. The reverse DNS of the server's IP address is set by the provider of that address (often in its control panel), not in the domain's DNS. Postfix greets other servers with the server's host name, so set the reverse DNS of the server's IPv4 address to that name, and make sure the name points back to the same address. Outgoing mail prefers IPv4.
Who may send as a domain
A signed-in mailbox, webmail and the websites of an account (PHP's mail(), cron jobs) may send only as the domains of their own account: its websites, aliases, mail domains and domains without a website. That applies to the envelope sender and to every address in From. The server's own host name may be used by everyone; outside domains are left to the receivers. Anything else is refused: "… may not send mail as <domain>: the domain belongs to another account on this server". So one account can't send mail that passes the DKIM, SPF and DMARC checks of another account's domain.
The deliverability check
The section Deliverability on the Email page compares what DNS answers for the domain with the records above. Check now runs it; it reads DNS only and changes nothing. Each line is OK, Attention, Problem or Not checked, with the expected and the found value for Attention and Problem; the summary says Looks good, Needs attention or Problems found.
| Line | OK when |
|---|---|
| Mail host (A) | mail.<domain> points to this server (Attention: it points elsewhere; Problem: no record). |
| Mail routing (MX) | An MX of the domain is mail.<domain> (Attention: another server; Problem: no MX). |
| SPF | One SPF record that allows this server, with mx, a or its address (Attention: it may not allow this server; Problem: none, or more than one). |
| DKIM | The published key is this server's (Attention: another key; Problem: not published; Not checked: DKIM isn't set up yet). |
| DMARC | p=quarantine or p=reject. The suggested p=none shows Attention until you tighten it (Problem: no record). |
| Reverse DNS (PTR) | The reverse DNS of the server's IPv4 is the domain's mail host (Problem: none). An address normally has one reverse DNS name, so on a server with several mail domains this line shows Attention for the domains whose mail host is another name. |
Delivery reports
Delivery reports show what happened to each message and what the receiving server answered. They are read from Postfix's log each time you open them (/var/log/maillog on AlmaLinux and Rocky Linux, /var/log/mail.log on Debian and Ubuntu, with the rotated copies; the system journal when there is no log file). Nothing is stored. For a very large log the oldest part of a long period isn't read, and the page says so.
On the Email page
Email → Delivery reports shows the mail sent from and to your own domains (administrators: every domain). One row per message and recipient, newest first:
- Filters: a search (address, queue ID or Message-ID), the status (Every status, Delivered, Problems only, Retrying, Bounced, Refused), the period (last 24 hours, 3, 7 or 14 days), the domain, and Both, Sent or Received.
- Status: Delivered, Delivered to <folder> (such as Junk), Retrying with the number of attempts, Bounced, Gave up or Refused (refused by this server while it was handed in).
- Details (click a row): the receiving server's answer, the first and last attempt, the receiving server, the folder, who sent it (the mailbox that signed in, or the account whose program sent it), the queue ID, the Message-ID, the size and the status code, with a plain explanation: the address doesn't exist, the receiving server can't be reached, the recipient's mailbox is full, the receiver refused it by its own rules (spam filter, SPF, DKIM or DMARC), or the spam filter put it in Junk.
Postfix tries again for up to 5 days before it gives up and tells the sender. The newest 300 rows are shown; search for an address to see older ones. Delivery report in a mailbox's menu opens the report for that address.
Delivery reports per domain
Administrators see every domain of the server in Mail server → Delivery reports, for the last 48 hours or a period from 6 hours to 14 days.

- Four totals: Sent (with how many were delivered), Not delivered (with the share of the sent mail), Retrying (waiting in the queue to be tried again) and Received.
- Mail per domain: each domain with its account, sent, delivered, retrying and not delivered mail, the Failure rate, received and refused mail, and the last failure. The failure rate turns yellow from 5% (and 2 failures) and red from 25% (and 3 failures): a hijacked mailbox or an abused contact form looks like that. Sort by most mail, most failures, highest failure rate or name; a row at the end counts the mail that isn't for this server's domains (refused relaying, bounces).
- A domain opens its totals, Who sent the mail (each sender, and how: signed in as a mailbox, sent by a program of an account such as a website's contact form, or passed on by a forwarder; up to 25) and its messages. Clicking a sender shows only its messages.
Mail activity
Administrators also see Mail activity at the top of the Email page: received, delivered, deferred, bounced, rejected, spam and queued mail, counted from the last lines of the current mail log (up to 60,000), with the latest mail errors and links to the problems, the per-domain reports and the queue.
Mail queue
Mail server → Queue (administrators) lists the messages Postfix hasn't delivered yet: Sending, Waiting to retry after a temporary error, On hold or Arriving. It refreshes every 15 seconds and shows the newest 5000 messages, with counts per state and a search by address or queue ID.
- Retry all now tries every waiting message again.
- For the selected messages: Try now, Hold (Postfix leaves them alone), Release (back from hold) and Delete. Deleted messages are removed without being delivered and their senders aren't told; this can't be undone.
- The eye icon shows a message, its headers and body (the beginning only, up to 256 KB) and the reason of the last failure, with the same actions.
Every action goes into the audit log. On the server itself only root can list or flush the queue, so hosting accounts can't see other accounts' queued mail.
Limits
| Limit | Default | Where it is set |
|---|---|---|
| Messages per hour, per signed-in mailbox (with its webmail) | 300 | Mail server → Protection; Outbound email per hour in a package |
| Messages per hour, an account's websites together | the same number | the same |
| Mail forwarded to outside addresses, per account | the account's number, counted apart (one per outside address) | |
| Redirects and replies of a mailbox's filters | the mailbox's number, counted apart | |
| Sending from SOGo's web interface | off (30 messages, 300 recipients in 10 minutes) | SOGo settings |
| Message size | 50 MB | Advanced settings |
| Recipients per message | 1000 | Advanced settings |
| Simultaneous IMAP and POP3 connections | Dovecot's default (10 per address) | Advanced settings |
| Mailboxes per account | from the package | Mailboxes in Limits |
| Largest mailbox | 20 GB for new packages | Largest mailbox in Limits |
| Mailbox size | 1 MB to 1 TB, never more than the account's storage | |
| Forwarders per account | no limit | Forwarders in Limits |
| Destinations of one address | 50 | |
| Forwarding set on the webmail page | 10 addresses | |
| Domain filters | 50 rules, 5 conditions each | |
| Always allow and Always block | 500 entries each |
The hourly limit is a bucket that fills up again over the hour. Over the limit the server answers "<sender> sent N messages in the last hour, the most allowed; try again later" (451): mail apps show the error and can send again later, and mail from a website's mail() waits in the queue and goes out by itself. A package's limits are explained under Limits; Security can also stop websites from talking to other mail servers directly (see Hardening).
Import mail from another server
Import mail in a mailbox's menu copies a mailbox from another IMAP server (Gmail, Yahoo, iCloud, Zoho, the old hosting) into this one, with its folders, flags and dates. To move whole accounts, with their websites, databases and mail, from another panel or server, see Migration.
- Choose the Mail provider: Gmail, Yahoo, iCloud, Zoho or Other server. For Other server, type the IMAP server and choose the Security: SSL/TLS (port 993) or STARTTLS (port 143).
- Type the User name (usually the whole email address) and the password. Gmail, Yahoo and iCloud need an App password made in the account's security settings; the window says where.
- Choose Check connection. APOLO signs in and lists the folders with where each one goes and how many messages it holds. Uncheck the folders you don't want.
- Choose Import (the button names the number of messages). The import runs on the server: you can close the window, and mail appears in the mailbox as it is copied. Stop import stops it.
- Folders go to their match here by their special use or usual name (Sent, Drafts, Trash, Junk, Archive); prefixes such as
INBOX.and[Gmail]/are dropped. Gmail's All Mail, Starred and Important aren't copied: they only show messages of the other folders. - Messages already here aren't copied again, so you can Import again later for mail that arrived since, or to go on after a stop. Nothing changes on the other server. The result counts Copied, Already here, Not copied and Messages in all.
- The password is sent to the other server only and never saved. The mailbox's size applies to the imported mail.
- Hosting users import only from servers on the internet (not this server or a private network), with TLS on ports 993 or 143, and at most 10 sign-in tries in 10 minutes. Administrators may also use another port and no encryption (the password is then sent unencrypted). For an old server with a self-signed or expired certificate, reached by its own address, Other server has Don't check the certificate.
- At most two imports run at the same time on the server. Gmail sends at most about 2.5 GB a day over IMAP: for a bigger mailbox, start the import again the next day.
- Microsoft 365 and Outlook.com no longer accept a password over IMAP, so they can't be imported this way.
Mail apps
Mail app settings on the Email page shows what to enter in any mail app. The username is the full email address and the password the mailbox's.
| Server | Port and security | |
|---|---|---|
| Incoming (IMAP) | the mail host | 993, SSL/TLS (or 143 with STARTTLS) |
| Outgoing (SMTP) | the mail host | 465, SSL/TLS, or 587, STARTTLS; sign-in required |
| POP3 | the mail host | 995, SSL/TLS (or 110 with STARTTLS) |
The mail host is mail.<domain>. Until it has a certificate of its own (see Certificates), mail apps that use it warn about the certificate: the card says so, offers Get the certificate now and links to the SSL/TLS page. Meanwhile the server's host name works too; when that is the server's self-signed certificate, mail apps ask once to trust it. Port 25 is for other mail servers and doesn't take a sign-in: mail apps must send on 465 or 587. Addresses with a plus, such as info+shop@example.com, are delivered to info@example.com.
Mail apps that set themselves up
Thunderbird, Outlook and most phones find the settings on their own from the email address and the password:
- Thunderbird asks
autoconfig.<domain>(also over plain HTTP) andhttps://<domain>/.well-known/autoconfig/mail/config-v1.1.xmlon the domain's website. - Outlook asks
https://autodiscover.<domain>/autodiscover/autodiscover.xmland the same path on the domain's website. With SOGo's ActiveSync on, phones that ask for an Exchange account get the ActiveSync server. - SRV records name the servers for the others:
_imaps._tcp(993),_pop3s._tcp(995),_submissions._tcp(465),_submission._tcp(587) and_autodiscover._tcp(443,autodiscover.<domain>).
For that, autoconfig.<domain> and autodiscover.<domain> point to the server (the optional records under DNS records; APOLO adds them when it holds the zone) and join the mail.<domain> certificate. Only domains with email on whose mail is delivered here get an answer; a domain whose mail is on its own mail server is left alone. A name a website uses, or a record of your own for it (such as an autodiscover record that points to Microsoft), is left as it is.
Postfix configuration editor
Mail server → Configuration (administrators, from a browser session only, not with an API token) shows Postfix's own files, main.cf and master.cf, as they are on the server, in an editor that colours Postfix's syntax. Postfix checks a file before it is saved, then reloads without dropping a connection.
- Choose main.cf or master.cf at the top; the path is next to it.
- Edit the text. Lines with a stripe are set by APOLO; hovering shows where the panel sets them.
- Choose Save and reload Postfix (or Ctrl+S). Discard throws the changes away.
Saving goes through four checks, and the first one that fails leaves the file as it was:
- The file must not have changed on the server since you opened it; otherwise Load the current file loads the new version.
- Postfix reads the new file in a temporary copy of its folder. A line it refuses is marked and scrolled to ("Postfix refused main.cf, line 12: …"); its warnings, such as an unused parameter (usually a misspelt name, which Postfix ignores), are shown after saving.
- APOLO's own values can't be changed here: the next mail change would put them back. Change them where the panel sets them; the section Set by APOLO lists them by place: Mail server Advanced settings, Mail server Protection, the spam filter and DKIM, the server's host name, and what the mailboxes on this server need.
- The file is written, checked with
postfix checkand Postfix is reloaded; if the check or the reload fails, or Postfix stops, the previous file comes back.
Settings in effect lists what Postfix runs with apart from its defaults (postconf -n), with a search. History keeps the last 10 changes of each file with who made them; Undo puts back the file from before a change and reloads Postfix, while APOLO's own values keep their current settings. Changes and undos go into the audit log. When Postfix is stopped, a saved file is checked as usual and used when Postfix starts.
If mail doesn't work
- No mail arrives for a domain
- Look at Mail routing: mail is delivered here only while the MX points to this server (Check again asks at once). Check that port 25 is open in the provider's firewall, then look for the message in Delivery reports.
- Mail goes to the recipients' spam folders
- Run the deliverability check and fix what it marks: SPF, DKIM and reverse DNS matter most. Look at the server's address on public blocklists, or use a smarthost.
- Mail can't be sent to other servers
- Many providers block outgoing port 25 on new servers: messages wait in the queue with "Connection timed out". Ask the provider to open it, or use a smarthost.
- A mail app can't send
- It must send on 465 (SSL/TLS) or 587 (STARTTLS) with the full address as username. "try again later" means the hourly limit (Limits); "may not send mail as" means the From address isn't one of the account's domains.
- A message is missing
- Search for the address in Delivery reports: "Delivered to Junk" means the spam filter moved it; a domain filter may have moved or deleted it.
- Webmail opens a blank or waiting tab
- Port 2096 is closed in a firewall (Webmail addresses).
- Rspamd or another mail service fails
- Services shows why a service can't start (a missing system user, group or program) and doesn't restart it in a loop; key services are restarted by themselves otherwise (see Automatic restart). If Rspamd's package didn't create its system user, APOLO creates it when the spam filter is set up, at Start or Restart in Services and after an update.
Every 6 hours, and a minute after the panel starts, APOLO checks every domain's routing again and writes the mail configuration again (Postfix's tables, Dovecot, OpenDKIM, certificates, the firewall), so a file changed by hand is put right. Mail keeps flowing when Rspamd or APOLO's mail filter doesn't answer: they let mail through rather than stop it. More help: Troubleshooting.
Something missing or unclear? Ask support or report a bug.