> /etc/postfix/main.cf:
>     transport_maps = static:relay:[10.2.0.17]:10015

Okay.  I thought the _maps would imply an external file.  I clearly 
misunderstood that, and learned about the 'static:' too.  Thanks.

What I'd actually intended to ask though is, if I wanted to add the 

  -o transport_maps=static:relay:[10.2.0.17]:10015

to MASTER.cf, which of the three services' sections would I add this under,

        smtp      inet   n       -       n       -       1       postscreen
        smtpd     pass   -       -       n       -       -       smtpd

&/or

        relayTEST unix   -       -       n       -       -       smtp

?

IIUC, if it's in main.cf it applies to multiple sections.

> relay_recipient_maps =
> 
> That is bad. Your server will accept mail for non-existent users,
> and either will throw away email (which may break the law) or it
> will be a backscatter source (which may cause your server to
> become blacklisted).

My intention is to use automatic recipient validation by having the Postfix at 
the VPS contact the backend Postfix at the office to check for valid users.

IIUC from reading 
http://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient and other 
posts, to do that you're supposed to leave blank

        relay_recipient_maps =

and then set

        smtpd_relay_restrictions = permit_mynetworks, reject_unauth_destination

But "That is bad" suggests I'm doing this wrong.

Is this the wrong approach to address verification?

Reply via email to