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.
-----------------------------------------------------------------------