solaris that saves the configuration part of the applications that are installed. I recently had a requirement to set up an Organization-wide mail server to perform SMTP relay to Office365 and allow our Java, JS, Python applications to send emails from different office365 email ids based on the Subject (or) the sender details. The host name will be enclosed in brackets to specify that no MX lookup is required. This setting is mutually exclusive with the mta Boolean. I have already explained individual parameters which we use in postfix server, so I will not explain this again here. A value can # See the files in examples/chroot-setup for setting up Postfix chroot # environments on different UNIX systems. By default, the value of the relayhost parameter is empty. The /etc/postfix/transport file will contain the lookup table. The relayhost parameter defines Postfix SMTP relay host. Fortunately, all parameters have sensible default values. Here I will share the basic and minimal recommended configuration for postfix. Postfix has several hundred configuration parameters that are controlled via the main.cf file. smtp_listen The reason is because I set relayhost like that: zmprov ms mail.mydomain.com zimbraMtaRelayHost mail.mydomain.com. # dnf -y install postfix cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain -y . So what can I do to change my relay host and what exactly I If not defined, '-' is used (OS dependant) Default: Undefined. Configure Postfix. Thanks! Configure Postfix. You can configure postfix for more than one domain via the use of a hash file. According to Postfix configuration, different values can be set for the relayhost parameter; By default, the value of the transport_maps parameter in Postfix is not set, as can be checked with: postconf transport_maps. A boolean to define if postfix should be run in a chroot jail or not. If postfix is not running, which it was not for me, then your shortcut sudo postfix stop && sudo postfix start fails to run the second half. thank (4 Replies) There are six parameters which must be set in the Postfix configuration file main.cf. We only have to define the following parameters $ sudo editor /etc/postfix/main.cf Setting up Postfix. sudo debconf-set-selections <<< "postfix postfix/relayhost string smtp.mailgun.org" With those configurations in place, install Postfix: sudo apt -y install postfix In order for Postfix to connect with Mailgun, you must create a credentials file with the username and password for the Mailgun subdomain you obtained in Step 2. A relay host can be defined on a Postfix configuration file using the relayhost parameter. So two lines would be suggested here. To configure postfix to read the destination domains from a hash file, open the /etc/postfix/main.cf configuration file and add the following setting. A Boolean to define whether to configure postfix as a satellite relay host. This restricts clients that can use the Postfix server as an SMTP relay host. recently installed postfix on Solaris 10 but can not find the folder where you install the application to set the default main.cf postfix brings. Default: False. transport_maps = hash:/etc/postfix/transport you can find the sender_dependent_relayhost_maps parameter and set the value to. Modify relayhost. # The general format is lines with parameter = value pairs. This file contains the list of domains postfix will accept for local delivery. 3. There are two formats of the relayhost parameter: relay_host = gateway.my.domain relay_host = [an.ip.add.ress] The first format identifies a SMTP relay host mail server by its DNS name. Lines # that begin with whitespace continue the previous line. One small thing. This configures Postfix is to try to deliver mail directly to the Internet, which is usually not desirable. Postfix is a powerful opensource mail server with a lot of customization options available built-in. Example: true. satellite. The parameters are: relayhost, which specifies the mail relay host and port number. # # The relayhost parameter specifies the default host to send mail to