################################################################################## Postfix ################################################################################## Config : /etc/postfix/main.cf To apply changes: #postfix reload ################################################################################## [/etc/postfix/main.cf] myhostname = host.local.domain (machine name is not FQDN) myhostname = host.virtual.domain (virtual interface) myhostname = virtual.domain (virtual interface) mydomain = local.domain mydomain = virtual.domain (virtual interface) #Outbound mail: myorigin = $myhostname (default: send mail as "user@$myhostname") myorigin = $mydomain (probably desirable: "user@$mydomain") #Default: > mydestination = $myhostname, localhost.$mydomain, localhost #Domain wide: > mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain #Host with multiple DNS A records: > mydestination = $myhostname, localhost.$mydomain, localhost, > www.$mydomain ftp.$mydomain #Mail Relay from: mynetworks_style = host|subnet|class (default: authorize "subnet") mynetworks = 127.0.0.0/8 (safe: authorize local machine only) mynetworks = 127.0.0.0/8 168.100.189.2/32 (authorize local machine) #Mail Relay to: relay_domains = $mydestination (default) relay_domains = (safe: never forward mail from strangers) relay_domains = $mydomain (forward mail to my domain and subdomains) #Delivery method relayhost = (default: direct delivery to Internet) relayhost = $mydomain (deliver via local mailhub) relayhost = [mail.$mydomain] (deliver via local mailhub) relayhost = [mail.isp.tld] (deliver via provider mailhub) #Notify only serious problems notify_classes = resource, software #If host is behind FW NAT proxy_interfaces = 200.200.200.4 (the proxy/NAT external network address) [/etc/aliases] postmaster: you root: you #newaliases <- To apply aliases changes #postconf alias_maps <- To verify Check Logs: ---------- # postfix check # egrep '(reject|warning|error|fatal|panic):' /some/log/file -------------------------------------------------------------------------------- Hugo Martin www.hackcraft.com (2006)