Bug#432716: exim4-config: Exim4 4.67-5 does not honor dc_hide_mailname='true' setting
Miguel Martins Feitosa Filho
mfeitosa at certificadoranorte.com.br
Thu Jul 12 14:32:59 UTC 2007
Hi,
added the lines sent after
# This transport is used for smarthost and satellite configurations.
comment in template file
exim accepts config changes...
I get
2007-07-12 10:27:52 1I8ze4-0005SR-Qm <= mirian at tatarana U=mirian P=local
S=335
2007-07-12 10:27:52 1I8ze4-0005SR-Qm == fja at hifen.com.br R=smarthost
T=remote_smtp_smarthost defer (-1): Failed to expand return path "${if
match_domain{$sender_address_domain}{+local_domains}{${sender_address_local_part}@certificadoranorte.com.br}{${if match_domain{$sender_address_domain}{'"$mailname"'}{${sender_address_local_part}@certificadoranorte.com.br}fail}}}": unknown variable name "mailname"
in the log...
Could it be that I inserted lines in incorrect position in the file?
Thanks,
Miguel Feitosa
On Thu, 2007-07-12 at 07:53 +0200, Marc Haber wrote:
> On Wed, Jul 11, 2007 at 10:21:34PM +0200, Marc Haber wrote:
> > Try adding this:
> > .ifdef HIDE_MAILNAME
> > REMOTE_SMTP_HEADERS_REWRITE=headers_rewrite = *@+local_domains $1 at DCreadhost frs : *@'"$mailname"' $1 at DCreadhost frs
> > REMOTE_SMTP_RETURN_PATH=return_path = ${if match_domain{$sender_address_domain}{+local_domains}{${sender_address_local_part}@DCreadhost}{${if match_domain{$sender_address_domain}{'"$mailname"'}{${sender_address_local_part}@DCreadhost}fail}}}
> > .endif
> >
> > right before your remote_smtp_smarthost router in
> > /etc/exim4/exim4.conf.template and restart exim. Please report back if
> > this fixes things for you.
>
> Idiot me. The correct lines are of course
>
> .ifdef HIDE_MAILNAME
> REMOTE_SMTP_HEADERS_REWRITE=*@+local_domains $1 at DCreadhost frs : *@'"$mailname"' $1 at DCreadhost frs
> REMOTE_SMTP_RETURN_PATH=${if match_domain{$sender_address_domain}{+local_domains}{${sender_address_local_part}@DCreadhost}{${if match_domain{$sender_address_domain}{'"$mailname"'}{${sender_address_local_part}@DCreadhost}fail}}}
> .endif
>
> Try again please and report back.
>
> Please always reply to the BTS as well so that the bug trail is
> completely visible.
>
> Greetings
> Marc
>
More information about the Pkg-exim4-maintainers
mailing list