On 2008-03-02 at 23:33 +0000, Luke Sheldrick wrote:
> I get the below error when trying to start exim with your excert:
>
> Starting exim: 2008-03-02 23:14:14 Exim configuration error in line 656 of
> /etc/exim/exim.conf:
> missing rewrite replacement string
That's because you missed out on some spaces and fields.
> using the following syntax under the transporters section
>
> remote_smtp:
> driver = smtp
> headers_rewrite = [EMAIL PROTECTED]@$domain}lsearch{/etc/exim/redir/[EMAIL
> PROTECTED]
> return_path = [EMAIL PROTECTED]/etc/exim/redir/$1}{$value}fail}
I wrote:
max_rcpt = 1
headers_rewrite = [EMAIL PROTECTED] [EMAIL
PROTECTED]/etc/mail/subaddress-maps/[EMAIL PROTECTED] f
return_path = [EMAIL PROTECTED]/etc/mail/subaddress-maps/$1}{$value}fail}
(and also mentioned the long lines and wrapping)
Split up with newlines, the second line there is:
headers_rewrite = [EMAIL PROTECTED] \
[EMAIL PROTECTED]/etc/mail/subaddress-maps/[EMAIL PROTECTED] \
f
So, a space between the match field and the replacement field, then
another space between the replacement field and the 'f' flag.
-Phil
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/