Postfix: main

From Define Wiki
Jump to navigation Jump to search

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



Other useful Directives