Postfix relay_domains

SYSTEM INFORMATION
OS type and version EL 9
Webmin version 2.400

Experimenting with Postfix after years of sendmail goodness.

Looking to find the equivalent of Relay Domains.

I understand it can be done by editing main.cf, but is there a Webmin function to do it?

Manually editing files every time a domain is added or retrieved is a bit of a chore these days.

Yes, check “Servers ⇾ Postfix Mail Server: SMTP Server Options” and its “Restrict mail relaying” option. The transport map is defined and editable in “Servers ⇾ Postfix Mail Server: Transport Mapping”.

Not really seeing the advantage to switching to postfix from sendmail yet.
There is Restrict mail relaying and also Map for allowed addresses for relaying. The difference is?
I am used to one file, domains that you accept email for and all else is rejected.
Webmin is very good for sendmail except that it edits the .cf directly instead of the .mc which is invites problems if you then want to do manual edits as well in the .mc file.
But it all makes sense.

The later is relay_recipient_maps option is used to control which recipient addresses are valid for the relay domains—that is, domains listed in relay_domains or indirectly through transport_maps

Any chance you could get the Sendmail part of Webmin to edit the .mc instead of the .cf? :slight_smile:

The Virtualmin configuration check now properly interprets Postfix configurations to only send mail by relay through other mail servers: virtualmin check-config Inappropriately Reports Postfix mydestination Must Include hostname · Issue #1031 · virtualmin/virtualmin-gpl · GitHub