Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Noel Jones (njonesmegan.vbhcs.org)
Date: Thu Jun 10 2010 - 10:53:34 CDT
On 6/10/2010 10:20 AM, Chad Morland wrote:
> I am trying to setup a server that will be only used for mail forwarding
> and will not have any local mailboxes on it.
> I am trying to have virtual_alias_maps as the sole lookup and any other
> mail is rejected during the SMTP session after the RCPT TO command if
> the address is not found in virtual_alias_maps.
> I have the following in my configuration which works:
> smtpd_reject_unlisted_recipient = yes
> virtual_alias_maps =
> virtual_alias_domains =
> I'd like to do away with virtual_alias_domains but when I disable this I
> get "relay denied".
> Is there a way to configure postfix so that it is the final destination
> only for addresses defined in virtual_alias_maps and not the entire
> domain as implied by virtual_alias_domains?
You can use the "old" method of defining virtual_alias_domains
by defining them directly in virtual_alias_maps.
If your domain list doesn't change often, just list the
domains in main.cf. If there are more than a handful of
domains, use a static hash: table.