A SmtpUser object.
Reference to the user who wants to connect to the
server.
Action
A SmtpActions
enumeration, as described in settings.
You should set it to Allow or
Deny to determine if user is allowed to
connect.
Settings
The settings for Action are:
Constant
Value
Description
Deny
0
Deny execution of the
action.
Allow
1
Allow to execute
action.
SilentDeny
2
Silently deny execution of
the action.
SilentAllow
3
Silently allow to execute
action.
Remarks
At the time this event is fired, no commands are entered
by user. Only his Hostname and
TimeConnected
properties are known to wodSmtpServer.
Server will fire this event so that you can decide if
you will let user access your server at all. This is very
handy if you want to perform IP filter checking on your
server, thus allowing only specific range of IP addresses
to access server. After you check user's Hostname
property, set Action =
Allow to let him continue using the server, or
Action = Deny to close
connection without any response made by your server. You
can prevent potential hackers or attackers this
way.