Free Hosting Online for WorkStations

< Previous | Contents | Next >

4.2.2. Postfix


For Postfix integration, we will associate the domain lists.example.com with the mailing lists. Please replace

lists.example.com with the domain of your choosing.


You can use the postconf command to add the necessary configuration to /etc/postfix/main.cf:


sudo postconf -e 'relay_domains = lists.example.com'

sudo postconf -e 'transport_maps = hash:/etc/postfix/transport' sudo postconf -e 'mailman_destination_recipient_limit = 1'


In /etc/postfix/master.cf double check that you have the following transport:


mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py

${nexthop} ${user}


It calls the postfix-to-mailman.py script when a mail is delivered to a list.


Associate the domain lists.example.com to the Mailman transport with the transport map. Edit the file /etc/ postfix/transport:



lists.example.com mailman:


Now have Postfix build the transport map by entering the following from a terminal prompt:


sudo postmap -v /etc/postfix/transport


Then restart Postfix to enable the new configurations:


sudo systemctl restart postfix.service


Top OS Cloud Computing at OnWorks: