############################### # example snippets from my postfix main.cf file # typically found in /etc/postfix/main.cf # # These bits are just for reference/clarity. Postfix # is well documented, so check out the samples, help # and all the other goodies, too. # #11-22-2006 Red Byer www.redstoyland.com # ################################ ################################################################### #####################SNIPPET 1##################################### ################################################################### # INTERNET HOST AND DOMAIN NAMES # # The myhostname parameter specifies the internet hostname of this # mail system. The default is to use the fully-qualified domain name # from gethostname(). $myhostname is used as a default value for many # other configuration parameters. # #myhostname = host.domain.tld myhostname = myservername.mydomainname.com # The mydomain parameter specifies the local internet domain name. # The default is to use $myhostname minus the first component. # $mydomain is used as a default value for many other configuration # parameters. # mydomain = mydomainname.com ################################################################### #####################SNIPPET 2##################################### ################################################################### # ALIAS DATABASE # # The alias_maps parameter specifies the list of alias databases used # by the local delivery agent. The default list is system dependent. # # On systems with NIS, the default is to search the local alias # database, then the NIS alias database. See aliases(5) for syntax # details. # # If you change the alias database, run "postalias /etc/aliases" (or # wherever your system stores the mail alias file), or simply run # "newaliases" to build the necessary DBM or DB file. # # It will take a minute or so before changes become visible. Use # "postfix reload" to eliminate the delay. # #alias_maps = dbm:/etc/aliases alias_maps = hash:/etc/aliases #alias_maps = hash:/etc/aliases, nis:mail.aliases #alias_maps = netinfo:/aliases # The alias_database parameter specifies the alias database(s) that # are built with "newaliases" or "sendmail -bi". This is a separate # configuration parameter, because alias_maps (see above) may specify # tables that are not necessarily all under control by Postfix. # #alias_database = dbm:/etc/aliases #alias_database = dbm:/etc/mail/aliases alias_database = hash:/etc/aliases #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases ################################################################### #####################SNIPPET 3##################################### ################################################################### # CANONICAL MAPPING # # (from example in /etc/postfix/samples, added by Red 6/28/06 # The canonical_maps parameter specifies optional address mapping # lookup tables. The mapping is applied to both sender and recipient # addresses, in both envelopes and in headers. This is typically used # to clean up dirty addresses from legacy mail systems, or to replace # login names by Firstname.Lastname. See canonical(5) for details. # # By default, no canonical address mapping is done. # # If you use this feature, run "postmap /etc/postfix/canonical" to # build the necessary DBM or DB file after every change. The changes # will become visible after a minute or so. Use "postfix reload" # to eliminate the delay. # canonical_maps = hash:/etc/canonical # sender_canonical_maps # Address mapping lookup table for envelope and # header sender addresses. sender_canonical_maps = hash:/etc/canonical.from # recipient_canonical_maps # Address mapping lookup table for envelope and # header recipient addresses. recipient_canonical_maps = hash:/etc/canonical.out