On Wed, Mar 30, 2011 at 11:54:32AM -0500, Clayton Keller wrote:

>>      # Identity virtual alias mappings for all users that
>>      # don't already have other alias entries.
>>      #
>>      c...@example.com                c...@example.com
>>      ...
>>
>
> I thought about that as well. However, the list could grow to over 20k+ 
> addresses.

I have a multiple of that many users in LDAP.

> Should I use the virtual_alias_maps rather than my use of:
>       
>       relay_recipient_maps = hash:/etc/postfix/relay_recipients

If all users are listed in virtual_alias_maps, your relay_recipient_table
can be empty, but you must still designate a table, since otherwise
validation is disabled.

    main.cf:
        relay_recipient_maps = ${indexed}empty

    empty:
        # Nobody here by that name

Postfix recipient validation always checks for a virtual alias (these
apply to all address classes) before checking any class-specific lookup
tables. If all users are listed in virtual(5) the remaining tables can
be empty, but are required to be defined, so that validation is not
disabled.

-- 
        Viktor.

Reply via email to