Re: Limiting recipient access

From: Tony Earnshaw (no email)
Date: Wed Oct 01 2003 - 03:05:47 EDT


Arndt Roth wrote:

> I have 2 questions:

Can answer the first one, not the second. I have no experience with
virtual addresses / maps.

> 1. How can I tell postfix to accept only mail for a list of recipients and
> nobody else ?
>
> I tried:
> smtpd_recipient_restrictions =
> .....
> check_recipient_access dbm:/etc/postfix/access_map
> ....
>
> In access_map I have the users defined:
>
> a@ OK
> b@ OK
>
> When I connect to postfix I can send mail to c at mydomain dot com dot Why?
> How I can I reject all other recipients?

You're telling Postfix to accept what it would accept anyway. You'd
first have to ban the whole domain (REJECT or whatever) and then make a
list of exceptions, as above. IMHO this is not the correct approach -
rather use local_recipient_maps to tell Postfix which users to allow.

--Tonni

-- 
Tony Earnshaw
Millom kaksar eg litet kann trivast, millom jamningar helst er eg nøgd
http://www.billy.demon.nl
Mail: 







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD