An expression
evaluating to an object of type
wodSmtpNotify.
Owner
Required. A wodSmtpServer
object. Reference to wodSmtpServerCom instance that
called this callback method.
User
Required. A SmtpUser object.
Reference to the user who wants to connect to the
server.
Action
Required. 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
NOTE: This method is called only if you
implementedIwodSmtpNotifyinterface in your application, and
wodSmtpServer1.Notificationproperty has received reference to
instance of your implementation.
At the time this notification method is called, no
commands are entered by user. Only his Hostname and
TimeConnected
properties are known to Smtp server. Server will call this
notification method so 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.