What postfix configuration setting defines the domains for which Postfix will deliver mail locally?

CORRECT TEXT
What postfix configuration setting defines the domains for which Postfix will deliver mail locally?
(Please provide only the configuration setting name with no other information)

CORRECT TEXT
What postfix configuration setting defines the domains for which Postfix will deliver mail locally?
(Please provide only the configuration setting name with no other information)

Answer: mydomain



Leave a Reply 2

Your email address will not be published. Required fields are marked *


jesus

jesus

Answer is mydestination

Ektoras

Ektoras

Correct answer is mydestination

1 /etc/postfix/main.cf:
2 myhostname = hostname.example.com
3 myorigin = $mydomain
4 relayhost = $mydomain
5 inet_interfaces = loopback-only
6 mydestination =

Translation:

Line 2: Set myhostname to hostname.example.com, in case the machine name isn’t set to a fully-qualified domain name (use the command “postconf -d myhostname” to find out what the machine name is).

Line 2: The myhostname value also provides the default value for the mydomain parameter (here, “mydomain = example.com”).

Line 3: Send mail as “[email protected]” (instead of “[email protected]”), so that nothing ever has a reason to send mail to “[email protected]”.

Line 4: Forward all mail to the mail server that is responsible for the “example.com” domain. This prevents mail from getting stuck on the null client if it is turned off while some remote destination is unreachable. Specify a real hostname here if your “example.com” domain has no MX record.

Line 5: Do not accept mail from the network.

Line 6: Disable local mail delivery. All mail goes to the mail server as specified in line 4.