Hi people,
I'd like to know if someone could help me with this doubt.
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.
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.
If someone can give me this information about how I can get to catch
IP address of the SENDER I would thank.
Regards Cleiton