On 4/27/2010 10:04 AM, Carlos Mennens wrote:
On Tue, Apr 27, 2010 at 10:18 AM, Noel Jones<njo...@megan.vbhcs.org> wrote:
If you want to help out folks who type in vaild-but-dead domain names, such
as tehnews.com, you can add transport_maps entries to immediately bounce
the mail.
# transport_maps
tehnews.com error:5.1.2 not a working domain
I really like the idea of creating a 'transport_map' so I verified my
/etc/postfix/transport directory existed and read the docs. I show
that 'transport smtp' is the default so I opened the transport file
and added the following line:
tehnews.com error:5.1.2 not a working domain
I then saved the file and ran:
postmap /etc/postfix/transport
I really didn't see if I needed to specifically squeeze the
'transport_maps' parameter in a specific area in 'main.cf' so I
appended to the very end of the file as you can see from my new
Postconf -n below:
The order of parameters in main.cf is irrelevant; put it
anywhere convenient. "postconf" always displays parameters in
sorted alphabetical order regardless of main.cf order.
[...]
I tested this and it appears to give an immediate delivery failure
with reason. Does this look OK to you guys?
Looks as if everything's just dandy.
Peace.
-- Noel