The «Mail server» block («Inbound mail, outbound mail and antispam server settings») gathers the general settings. It appears with the Mail module; you also get there from the «Settings» icon of the Domains and Filters and lists pages. The button at the bottom is «Apply».
| Section | Field | Meaning | Typical value |
|---|---|---|---|
| «Postmaster» | «Postmaster address» | receives mail addressed to postmaster@ and is the sender of the appliance’s notifications (for example the backup ones) |
it@johnsmith.test |
| «Address for every user» | «Address» | an address whose mail reaches all active users who have a mail address, including those created later. Empty: not used | everyone@johnsmith.test |
| «Accept mail from outside» | off (default): only authenticated users (webmail and mail programs that log in) and the appliance’s services may write; a message sent without authentication is refused. Disabled while the address is empty | off | |
| «Limits» | «Message size limit (MiB)» | maximum size of a single message accepted by Postfix, from 1 to 4096 | 50 |
| «DMARC reports» | «Report retention (days)» | how many days to keep the aggregate reports received at dmarc@<domain>, from 30 to 3650 |
90 |
| «SMTP relay» | «Enable outbound SMTP relay» | forwards outgoing mail through a relay instead of delivering it directly. Off, host, port and credentials stay saved | off |
| «Relay host», «Relay port» | FQDN or IPv4 of the relay and port (587 suggested) | smtp.provider.test, 587 |
|
| «Require an encrypted connection (SSL/TLS)» | on: without encryption the mail does not leave (port 465: implicit TLS; other ports: mandatory STARTTLS). Off: it encrypts if the relay offers it, and on 465 always | on | |
| «Authenticate with username and password» | on: «Username» and «Password» appear | on | |
| «Password» | left empty keeps the saved one («(unchanged)»); if there is none it must be given | ||
| «Antispam» | «Enable AI for Antispam» | runs a local, specialised, lightweight AI model available to the antispam when evaluating mail. Turning it on installs the service in the background and takes a few minutes (the download happens only the first time); turning it off, the service is removed and frees about 3 GB of memory |
When you turn on the antispam AI the page is covered with «Enabling AI antispam… Do not close the page, this will take a few minutes.» If the appliance’s processor lacks the AVX/AVX2/FMA instructions, a red «CPU instructions missing on the host: …» appears under the switch together with the hint: without them the model is about five times slower and many emails exceed the time limit, getting no evaluation. In a virtual machine set the CPU type to “host” in the hypervisor.
Messages: «Mail server settings saved.» and, for the fields: «Invalid address», «Must be a value between 1 and 4096 MiB», «Must be a value between 30 and 3650 days», «Must be an FQDN or IPv4 address», «Must be a port between 1 and 65535».
Warning With the relay on, all outgoing mail goes through the provider’s relay: SPF and DKIM on your domain become partly the provider’s job. The «Sender authentication» panel flags it («Mail leaves through <relay>»). After turning it on, check every domain again.
The address for every user
The address is not a group to keep up to date: delivery resolves it at that moment, over the active users with an address. Rules:
- it must belong to a domain served by the server («The domain is not one the mail server serves»);
- it cannot already be the address of a user, an alias or a group («Already used by a user, an alias or a group»);
- it cannot be
postmaster,dmarc,bouncesormailer-daemon(«Reserved for the mail server»); - «Accept mail from outside» is off by default: for the outside world you have to turn it on, and then anyone on the internet can write to the whole company.
Warning With «Accept mail from outside» on, an address like
everyone@johnsmith.testbecomes a spam target that reaches everyone. Leave it off if it is only for internal communications. With the switch off, “only authenticated users and the appliance’s own services may write to this address (not the LAN in general)”.
Example: one address for announcements to everyone
Situation. The owner, John Smith, wants to be able to write to all employees with a single address, without maintaining a group.
Steps.
- System → Settings → Mail server, «Address for every user» section.
- «Address»:
everyone@johnsmith.test. Leave «Accept mail from outside» off. - Press «Apply».
Check. From webmail, jsmith writes to everyone@johnsmith.test: jgreen, jbrown, pblack and all the other active users with an address receive it. A message sent from an external address, without logging in, is refused.
If something goes wrong. «Already used by a user, an alias or a group»: choose a free name.
Example: using the provider’s relay
Situation. The office line has an address that many mail servers refuse; the provider supplies a relay.
Steps.
- System → Settings → Mail server, «SMTP relay» section.
- Turn on «Enable outbound SMTP relay».
- «Relay host»:
smtp.provider.test. «Relay port»:587. - «Require an encrypted connection (SSL/TLS)» on.
- Turn on «Authenticate with username and password», type «Username» and «Password» (the provider’s
<password>). - Press «Apply».
- For each domain, in Mail → Domains, press «Check again» and add to the SPF record the
include:that the provider indicates.
Check. A test email arrives with the correct sender. In the SPF panel «Mail leaves through smtp.provider.test» appears.
If something goes wrong. If mail does not leave, check «Relay port» and the encryption: on 465 TLS is always implicit.
Example: raising the message limit to 25 MiB
- System → Settings → Mail server, «Limits» section.
- «Message size limit (MiB)»:
25. - «Apply».
A larger message is refused by the server on receipt (and webmail programs flag it on sending). Remember that an attachment grows by about a third with encoding: a 20 MB file becomes roughly 27 MB in mail.