Dear Charles,
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.
When the script gets a email, it splits
From:
[EMAIL PROTECTED]
To:
account: example
domain: example.com
The script uses this information to delivery in the right directory, depending on
the domain.
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.
Regards Cleiton
Charles Cazabon gravada:
> Cleiton L. Siqueira <[EMAIL PROTECTED]> wrote:
> >
> > I make a perl script called deliverator.
> > This script uses safecat program to delivery the messages
> > in the Maildir.
> > My actual script split the account and domain of the RECIPIENT
> > and check where it must delivery the message. If case it doesn't
> > find the account or domain my script return a message to the SENDER
> > notifying that the email wasn't found.
>
> How is this different than the standard qmail delivery method with a
> qmail-start invocation specifying "./Maildir/" as the default delivery
> target?
>
> > I would like to implement in this script, the possibitity of avoiding the
> > local users in my network to send anonymous messages to the others. But I
> > need to know once more information like RECIPIENT or SENDER. I need to know
> > What the IP address of the SENDER is. Because this way I can check if he
> > belongs in my network and avoiding he to send anonymous messages. To do this
> > I'd match the SENDER and IP ADDRESS and if they are right I would permit if
> > they wouldn't match I' deny. Of course that remote e-mail I will permit to
> > send any e-mail. My email server is protected against relay.
>
> qmail helpfully sets various environment variables for programs run from
> .qmail files -- see the manual page for qmail-command for details.
>
> 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.
> -----------------------------------------------------------------------