--
[ Picked text/plain from multipart/alternative ]
I am talking about a user .forward file.
This is mine now (the central part if it that is):
save "$home/mail${lookup {${local_part:${sg{${extract{for}{tabmaker
${sg{$h_received:}{\n}{
}}}{$value}{${extract{for}{${sg{$h_received:}{\n}{
}}}}}}}{;}{}}}@${domain:${sg{${extract{for}{tabmaker
${sg{$h_received:}{\n}{
}}}{$value}{${extract{for}{${sg{$h_received:}{\n}{ }}}}}}}{;}{}}}}
lsearch*@ {$home/vmails} {/$value}\
{${lookup {${domain:${sg{${extract{for}{tabmaker ${sg{$h_received:}{\n}{
}}}{$value}{${extract{for}{${sg{$h_received:}{\n}{ }}}}}}}{;}{}}}}
lsearch {$home/vmails} {/$value} {}}}}/inbox"
Rediculous, but it works. It gets the real e-mail address out of the
Received header field.
It only works if the "for" part is in there. Otherwise, i'm stuck again.
This is what i am trying to do:
I have a dns (la-france.net) parked on a remote server with a hosting
company.
For reasons of "miscommunication" it was not clear to me that the
situation is
different compared to the virtual hosting I was with before. Since i
'manage' -that
is to say : design, maintain and host- some(9) domains for customers, i
have these
domains now parked there, with a domain pointer to the same directory as
la-france.net.
I installed a small perl script to direct the http part in a local
subdirectory. Works fine.
My customer 'revimmo.com' is going into .../www/htdocs/revimmo,
'medias-immobilier'
is going into ..../www/htdocs/medias and so on. With that the http part
was solved.
There is no ftp, so i was left with a mail problem. The hosting company
does not
give me mails per domain, but just as much as i want on the main domain
(la-france.net).
These e-mails are only pop3 ;-(((, and are in a dir structure as
followes:
../la-franc/mail/charlie/inbox. la-franc is my user directory, mail has
a inbox file for the
master account (la-franc) and each other user has an directory in his
name with his
personal pop3 box.
So, what i did was give them proper names like 'revimmocharlie' and
revimmopatricia' and
'revimmomail' ..... total of about 40 at the moment. Then i made a file
"vmails" like this:
###############################################
#
# format : virtual e-mail space/tab real user name
# or just the domain name for the default receptionist
#
###############################################
charlie@??? revimmocharlie
patricia@??? revimmopatricia
keine@??? revimmokeine
kane@??? revimmokeine
chris@??? revimmochris
valerie@??? revimmovalerie
revimmo.com revimmocharlie
baubaut-immobilier.com baubaut
etc etc etc etc etc etc......
Then, of course i created the e-mail accounts, and put my .forward in
place.
First i just checked h_to: but that go's wrong quite fast since a LOT of
e-mails
donnot have it filled out properly.
So i tried ALL the header variables, the body vars, any var i could get.
Nothing,
exept for the received header.
The $local_part header field has 'la-franc' in it (and not the messages
'charlie'), and the
$domain has server681.savantnoc.com in it. That's the name of the
computer (server)
i'm running on.
The rest of the story you know.
Thansk in advance for your time looking into this problem.
Steven
le mer 15-05-2002 à 22:03, Philip Hazel a écrit :
On 15 May 2002, Steven Lobbezoo wrote:
> No, it does not. (using 3.4?), it contains the temporary e-mail and the
> domain of the
> machine that handles the mail, not even the main user domain, and not at
> all the envelop domain.
OK, I'm confused. I think we must be talking about different situations
here. I thought you were talking about data available in user filter
files. Maybe I got that wrong.
> But, in the mean time i found the real address in the Received header
> (after the for keyword).
The "for" keyword appears in Received: headers only for messages that
have exactly *one* recipient. If there are more than one, it is not
there (so as not to reveal Bcc recipients to each other).
Not quite sure what you mean by "temporary e-mail". Is aliasing or
something similar involved here? We need to know more detail of what you
are actually doing in order to give you more information.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
--
## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
--