Postfix Notes

Postgrey notes below

POSTFIX INSTRUCTIONS

File created April 13, 2009 File created by Douglas Denny

   POSTFIX_HOME=/etc/postfix
   cd $POSTFIX_HOME

Details the local mercury postfix configuration and recent changes.

Location of config files: $POSTFIX_HOME/postfix

        main.cf is the primary config file. Start there.

2010-04-02 Changes

- (by DanielMacKay)

$POSTFIX_HOME/main.cf

/etc/init.d/postgrey

    OPTS="--user=postgrey --inet=mercury.bonmot.ca:10023 --pidfile=${PIDFILE} -d"

to

    --inet=localhost:10023

2009-04-13 Changes

Add paradisecinema.ca to postfix

Virtual Hosting

Online Readme: http://www.postfix.org/VIRTUAL_README.html

 1 $POSTFIX_HOME/main.cf:
 2     virtual_alias_domains = example.com ...other hosted domains...
 3     virtual_alias_maps = hash:/etc/postfix/virtual
 4 
 5 $POSTFIX_HOME/virtual:
 6     postmaster@example.com postmaster
 7     info@example.com       joe
 8     sales@example.com      jane
 9     # Uncomment entry below to implement a catch-all address10 # @example.com         jim 11 ...virtual aliases for more domains...

CHANGES

1 Updated $POSTFIX_HOME/main.cf

 virtual_alias_domains = paradisecinema.ca
 virtual_alias_maps = hash:$POSTFIX_HOME/virtual

2 Update $POSTFIX_HOME/virtual

 postmaster@paradisecinema.ca    postmaster
 info@paradisecinema.ca          daniel@bonmot.ca
 doug@paradisecinema.ca          denny

After changing the virtual file, do

 postmap $POSTFIX_HOME/virtual
 /usr/sbin/postmap $POSTFIX_HOME/virtual

After changing main.cf, run

 postfix reload
 /opt/csw/sbin/postfix reload

postgrey whitelist

The postgrey whitelists are in /etc/postgrey/

When you make a change to it, reload postgrey with

   /etc/init.d/postgrey reload

Added Megamailservers.com to whitelist for Norvals mail delivery server.

EOF

postfix blacklisting

Instructions here

postgrey

Start (as root:) /etc/init.d/postgrey start

aliases

Virtual Hosts Table

 cd $POSTFIX_HOME
 vi virtual

and it is rebuilt with "make"

The whitelist files are in $POSTFIX_HOME:

 postgrey_whitelist_clients
 postgrey_whitelist_recipients