The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Use the transport map in the relay_domains list
Author: rgl 
Date:   28-08-06 23:08

Nice article, thanks for publishing it!

I have a minor suggestion to add, instead of having to define the lists domains in both the relay_hosts variable and in the transport file, eg:

# in main.cf:
relay_domains = lists.freebsddiary.org, lists.freshports.org
transport_maps = hash:/usr/local/etc/postfix-config/transport

# in transport:
lists.freebsddiary.org mailman:
lists.freshports.org mailman:


I usualy just define the domains inside the transport file, and also use that file in the relay_domains variable, eg:

# in main.cf:
relay_domains = hash:/usr/local/etc/postfix-config/transport
transport_maps = hash:/usr/local/etc/postfix-config/transport

# in transport:
lists.freebsddiary.org mailman:
lists.freshports.org mailman:


This works because we take advantage on the fact that relay_hosts is a list, and Postfix only looks at the left side of lists; this is described under the "Postfix lists versus tables" section at http://www.postfix.org/DATABASE_README.html.

-- Rui Lopes

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org