Cleiton L. Siqueira <[EMAIL PROTECTED]> wrote:
>
> The difference than the standart is that I have many different domains in my
> server. And I check them through the SQL database (Postgres). I organize
> different directories for each domain in the /home directory. For example,
> if I have this domains in my system: example.com and sample.com I will have
> two directories in /home directory like this: /home/example.com/ and
> /home/sample.com/ and into these directories there will be the account of my
> users.
This sounds exactly like what vmailmgr does. It also sounds very similar to
what vpopmail does. vmailmgr doesn't need an external database, either.
> The script uses this information to delivery in the right directory,
> depending on the domain.
vmailmgr does this.
> I'd like to know once more information. About the IP ADDRESS of SENDER. I
> need to know what enviroment variable is responsible to keep the IP ADDRESS
> of SENDER.
Well, at delivery time, the sender's domain is set in an environment variable,
but not the IP address. The IP address is of course available in the
Received: line that qmail adds when it accepts the message. Your script
could simply look at the last (i.e. topmost) Received: line which begins
with the exact string "Received: from".
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------