On 10/1/2015 4:09 PM, Alex wrote:
> Hi,
> 
>>> How can I configure the external system to support the
>>> check_recipient_access while also then forwarding on valid users to
>>> the internal system?
>>
>> Why is that a question.  You can just do what you said.  That said,
>> you should instead define the internal domains as "relay_domains",
>> and impement a relay recipient validation table:
>>
>>     main.cf:
>>         indexed = ${default_database_type}:${config_directory}/
>>         parent_domain_matches_subdomains = smtpd_access_maps
>>         relay_domains = example.com
>>         relay_recipient_maps = ${indexed}relay-recipients
>>
>>     relay-recipients:
>>         [email protected] exists
>>         [email protected] exists
>>         ...
>>
>> See http://www.postfix.org/ADDRESS_CLASS_README.html
> 
> I've been reading this and trying to make sure I understand before I proceed.
> 
> I'm not familiar with using "exists" as a possible option and was
> unable to locate where that's defined. Where is this defined? Is it
> just the equivalent to DUNNO?
> 
> Can it be done as a pcre so I can continue to use my existing
> relay-recipients file in the form of:
> 
> /^myuser@example\.com$/       DUNNO
> 
> Thanks,
> Alex
> 


Short answer is yes, you can use a pcre table with DUNNO.

Longer answer is the relay_recipients_maps tables are used as a
list, and the actual value isn't used -- it can be anything.  But
the unused return value must be present since tables must be a
key/value pair; bare keys are not allowed.
http://www.postfix.org/postconf.5.html#relay_recipient_maps


  -- Noel Jones

Reply via email to