mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-20 06:08:35 +02:00
41 lines
1.4 KiB
ReStructuredText
41 lines
1.4 KiB
ReStructuredText
#############################
|
|
Postfix relay domains support
|
|
#############################
|
|
|
|
This plugin adds the support for relay domains using postfix. You can
|
|
use it when the MTA managed by Modoboa is not the final destination of
|
|
one or several domains.
|
|
|
|
If activated, two new objects will be available from the *Domains*
|
|
listing page: *relay domain* and *relay domain alias*.
|
|
|
|
The extension is compatible with the *amavis* and *limits*
|
|
ones. Resellers will be able to create both new objects.
|
|
|
|
Replace <driver> by the name of the database you use.To tell Postfix this feature exists, you must generate two new map
|
|
files and then update your configuration.
|
|
|
|
To generate the map files, run the following command::
|
|
|
|
$ modoboa-admin.py postfix_maps --categories relaydomains --dbtype <the database you use> <path>
|
|
|
|
Replace values between ``<>`` by yours.
|
|
|
|
Edit the :file:`/etc/postfix/main.cf` file and copy the following
|
|
lines inside::
|
|
|
|
relay_domains = <driver>:/etc/postfix/sql-relaydomains.cf
|
|
transport_maps =
|
|
<driver>:/etc/postfix/sql-relaydomains-transport.cf
|
|
<driver>:/etc/postfix/sql-relaydomain-aliases-transport.cf
|
|
|
|
smtpd_recipient_restrictions =
|
|
permit_mynetworks
|
|
reject_unauth_destination
|
|
check_recipient_access
|
|
<driver>:/etc/postfix/sql-relay-recipient-verification.cf
|
|
|
|
Replace ``<driver>`` by the name of the database you use.
|
|
|
|
Reload postfix.
|