Difference between revisions of "Postfix: main"
Jump to navigation
Jump to search
(Created page with "== main.cf == The main configuration file is nearly 700 lines long. Any changes to this file are only implemeted after the daemon has been reloaded: <syntaxhighlight> /etc/init.d/pos...") |
|||
| Line 6: | Line 6: | ||
/etc/init.d/postfix reload | /etc/init.d/postfix reload | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | |||
| + | == Directive that need to be changed == | ||
| + | |||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | | myhostname || The hostname of the systems || myhostname = server1.example.com | ||
| + | |- | ||
| + | | mydomain || the network the server is to be used for || mydomain = example.com | ||
| + | |- | ||
| + | | inet_interfaces || Limited to the local system by default || inet_interfaces = all | ||
| + | |- | ||
| + | | inet_protocols || ipv4 or ipv6 || inet_protocols = all | ||
| + | |- | ||
| + | | mydestination || the systems served by this server | mydestination = $mydomain, $myhostname, localhost, localhost.$mydomain | ||
| + | |- | ||
| + | | mynetworks || the network address of the network covered by server | mynetworks = 192.168.122.0/24, 127.0.0.0/8 | ||
| + | |} | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | == Other useful Directives == | ||
Latest revision as of 15:30, 26 August 2013
main.cf
The main configuration file is nearly 700 lines long. Any changes to this file are only implemeted after the daemon has been reloaded:
/etc/init.d/postfix reload
Directive that need to be changed
| myhostname | The hostname of the systems | myhostname = server1.example.com |
| mydomain | the network the server is to be used for | mydomain = example.com |
| inet_interfaces | Limited to the local system by default | inet_interfaces = all |
| inet_protocols | ipv4 or ipv6 | inet_protocols = all |
| mydestination | mydestination = $mydomain, $myhostname, localhost, localhost.$mydomain | |
| mynetworks | mynetworks = 192.168.122.0/24, 127.0.0.0/8 |