2009/4/17 LuKreme <krem...@kreme.com>:
> I have a LAN with several computers on it used by a variety of users.  I
> have one server on the LAN running OS X and have postfix installed (probably
> needs updating, but not gotten that far). What I want to do is to have users
> on the LAN send emails to other users on the LAN (u...@example.local) and
> have those email addresses mapped to specific addresses on the remote server
> (f...@example.com, served by mail.example.com).
>
> I do not want the users to be able to send mail via example.local to any
> other users but those that I have mapped, and I do not want to accept any
> mail from outside the LAN for u...@example.local, but might want accept mail
> for local users if they are sent to the outward facing rdns for the machine
> (say u...@subdomain.example.com).
>
> So, i have a user bob who sends email to f...@example.local and my LAN's DNS
> points example.local's MX record to 10.11.12.13, and then postfix gets that
> mail, remaps it to fsm...@example.com and sends it out via a connection to
> mail.example.com. if bob tries to send to m...@example.local and there is no
> map, the user is rejected. If bob tries to send to m...@yahoo.com via the
> LAN postfix, it is rejected. 10.11.12.13's postfix will ONLY send to
> mail.example.com and only for users in the map.
>
> The question is, what is the best way to ensure that this works.  What is
> the best map to use, and am I forgetting anything obvious?

Would hosting example.local as a virtual alias domain do the job?
Assuming no other configuration, postfix will accept mail locally for
$mydestination, and for virtual_alias_domains. Then just list the
acceptable recipients in virtual_alias_maps.

These requirements of "may/may-not send to arbitrary-domain.com
depending on the connecting interface" sound troublesome, but I'm sure
someone here has a solution.

Reply via email to