Antelao relays outgoing mail through a Postfix container configured as a smart host. The container is installed only when an SMTP profile exists; skipping SMTP during setup leaves it out, and server installation still succeeds with a warning.
Configuring
The SMTP profile is part of the server configuration: host, port, credentials and the from
address. Set it during server config create, or afterwards on the SMTP page in the console.
# odoocli server config editTest it:
prod-1# odoocli server info --server prod-1The console's SMTP page has a send-test-message action, which is the fastest check that credentials and the relay actually work.
What Antelao sends
| When | |
|---|---|
| Test message | When you ask for one |
| Backup notifications | After scheduled backups, to the configured recipients |
| Security notifications | On sign-in events worth telling someone about |
| Fail2Ban notifications | When an address is banned, if recipients are configured |
| Licence expiry warning | Daily while the licence is inside its warning window |
The security notification is never blocked
The reason is narrow and worth stating: that mail is sent on the sign-in path. If a licence problem made it throw, it would stop people signing in. A missing notification is a much smaller harm than a console nobody can enter, so this one degrades instead of refusing.
The licence expiry warning
Sent daily while the licence is inside its warning window, which is licenseExpiryWarningDays in
odoo.json, defaulting to 30 days. Set it to 0 to turn the warning off.
Point the notification recipients at somewhere a human actually reads. An expiring subscription silently stops unattended backups, and this mail is the thing standing between you and finding that out a month later.
Odoo's own mail is separate
This is Antelao's mail, not your instances'. Each Odoo database has its own outgoing mail servers configured inside Odoo, and those are not managed here.