Paul Cocker wrote:
>>
>> Postfix expects this format:
>> [EMAIL PROTECTED]     OK
>>                              ^^^^^ -> this is a tab
>>     
>
> Thanks for the pointers. I've now set something up, but being more
> comfortable in Windows I've set it all up on that side:
>
> =========================
> @echo off
> adfind -list -sc exchaddresses:SMTP > validrecipients.txt
> cut -c 6- validrecipients.txt > validrecipients2.txt
> pscp -i "somepath\exchangeuser.ppk"
> "somepath\Validrecipients.txt"
> [EMAIL PROTECTED]:/home/someuser
> =========================
>
> I used -list in adfind to cleanup the output, that way I only need to
> trim the SMTP: bit.
>
> Cut comes from the UnxUtils package, it removes SMTP:
>
> I assume from your example that I need to insert an OK at the end of
> each line, but the documentation
> http://www.postfix.org/postconf.5.html#relay_recipient_maps seems to
> suggest I just need a list of addresses.
>
> Am I missing a page somewhere?
>
>   
All map files are expected to have a result, even if it's discarded
(like in this case).

Since you are using a flat lookup, you still need to run postmap on the
unix or linux side to have Postfix recognize the map
If you do not have a result, postmap will complain:
postmap: warning: test_map, line 1: expected format: key whitespace value

This will not give the expected result and all lookups will fail.

Brian

Reply via email to