Re: [Exim] .forward files and suffixes

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Jon Bendtsen
CC: Nicolas Dorfsman, exim-users
Assumpte: Re: [Exim] .forward files and suffixes
On Thu, 8 Nov 2001, Jon Bendtsen wrote:

> jon@intranet:~$ /usr/lib/sendmail -d10 -bf forward <testmail


> It STILL doesnt figure out the local_suffix
> The line Logwrite " + jon + \n"
> prints out the local_prefix, the local_part and the local_suffix


Have you read the "Exim's interface to mail filtering" document,
specifically, section 2? I quote:

------------------------------------------------------------------
When testing a filter in this way, Exim makes up an 'envelope' for the
message. The recipient is by default the user running the command, and so
is the sender, but the command can be run with the -f option to supply a
different sender. For example,

/usr/lib/sendmail -bf new-filter -f islington@neverwhere <test-message

Alternatively, if the -f option is not used, but the first line of the
supplied message is a 'From' separator from a message folder file (not the
same thing as a "From:" header line), the sender is taken from there. If -f
is present, the contents of any 'From' line are ignored.

The 'return path' is the same as the envelope sender, unless the message
contains a "Return-path:" header, in which case it is taken from there. You
need not worry about any of this unless you want to test out features of a
filter file that rely on the sender address or the return path.

It is possible to change the envelope recipient by specifying further
options. The -bfd option changes the domain of the recipient address, while
the -bfl option changes the 'local part', that is, the part before the @
sign. An adviser could make use of these to test someone else's filter
file.

The -bfp and -bfs options specify the prefix or suffix for the local part.
These are relevant only when support for multiple personal mailboxes is
implemented; see the description in section 26 below.
------------------------------------------------------------------

Take particular note of the last two paragraphs.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.