The value of $authenticated_id need not be the username. It can be set to
anything using the server_set_id option in the authenticator. So, if you
normally rewrite usernames into mailnames in the mail headers, you can also
rewrite the $authenticated_id. For example:
passwd_plain:
driver = plaintext
public_name = PLAIN
...
server_set_id = ${lookup{$2}dbm{/usr/exim/tables/rewrites}\
{$value}{$2}}
Inserting the following line into the received_header_text definition:
${if def:authenticated_id { (${authenticated_id})}}}} \
then causes the mailname to be output in parentheses as part of the
Received header.
Robert Evans
> Date: Thu, 18 Jan 2001 10:55:26 +0000
>
>
> michael@??? said:
> > I would really like to see something similar, perhaps with
> > "ID=$authenticated_id", similar to "helo=" and "ident=" in the default
> > received header.
>
> You need to be careful here - it might not be something you want to put
> in the headers since its giving away information about your account
> usernames. Additionally there is just a chance that leaking this data
> has data protection issues in the EU.
>
> My take is that it should not be added as a compiled in value, but
> should be given as an option in a sample config file.
>
> Nigel.
>
> --
> [ Nigel Metheringham Nigel.Metheringham@??? ]
> [ Phone: +44 1423 850000 Fax +44 1423 858866 ]
> [ - Comments in this message are my own and not ITO opinion/policy - ]
>
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##
--
mailto:Robert.Evans@cs.cf.ac.uk Tel:+44(0)29 2087 5518
http://www.cs.cf.ac.uk/People/Robert.Evans.html Fax:+44(0)29 2087 4598
Dept of Computer Science, Cardiff University, PO Box 916, Cardiff, CF24 3XF
Cardiff University is the public name of the University of Wales, Cardiff,
a constituent institution of the University of Wales.