On Sunday, June 21, 2009 at 21:12 CEST, Ville Walveranta <walvera...@gmail.com> wrote:
> I'm finally implementing into production the systems for which I got > excellent advise from this list last fall (or was it last summer?). > However, I have one issue I haven't been able to figure out: How do > I restrict mail reception only to certain accounts from external > sources? Do you really mean *accounts*, i.e. the final delivery address as opposed to initial recipient address? In other words, should r...@example.com refuse mail even when addressed indirectly via some alias? > The system defines various aliases which are redirected to > the root account. However, the system should not accept mail to > any of those accounts (or, in fact, even to the root account) > from an external source while routines/programs internal to the > system should be able to send mail to those addresses. You seem to be using "account" and "address" interchangably. > In case of the system in question it would be possible to fairly > easily define the accounts that *should* receive mail from the > outside of the system as the number of externally valid accounts > is fewer than the that of the system aliases. Depending on what, exactly, you mean RESTRICTION_CLASS_README may be useful. http://www.postfix.org/RESTRICTION_CLASS_README.html -- Magnus Bäck mag...@dsek.lth.se