On Mon, Apr 25, 2011 at 07:31:09AM -0400, [email protected] wrote:
> Hello
>
> I'm trying to get Postfix (DMZ) to relay only users listed in the
> relay_recipients to an internal Exchange server and if not in file look
> for a local account /etc/passwd then drop.
For a domain with some users local and some remote, list the domain in
mydestination, and extend the default value of local_recipient_maps to
include the desired remote users. Then you need to ensure that users
who are not local are forwarded the right place:
http://www.postfix.org/postconf.5.html#fallback_transport
You will not use relay_recipient_maps, since the domain is not remote
(some users are local). The same table however, can and must be included
in local_recipient_maps instead, in addition to any default tables for
handling local users. The default is:
$ postconf -d local_recipient_maps
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
> I also read that I should have $mydomain removed from mydestination but
> then the system does not accept any mail.
That advice is not correct.
--
Viktor.