On Thu, 10 Nov 2005, Jandre Olivier wrote:
>
> smarthost:
>     driver = manualroute
>     transport = remote_smtp
>     route_list = * ${readfile{/etc/smarthost}{}}
>
> [ doesn't work when file is empty ]
> I presume I have to use some condition statement, but not sure how to do this?

Instead of adding a condition, use
    route_data = ${readfile{/etc/smarthost}{}}
The router declines if the expansion fails or results in an empty string.

Tony.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to