Description
-
Fires when new user is connecting to server.
Syntax
-
Private Sub
object_Connecting(User,
Action)
The Connecting Event syntax has these parts:
object |
A wodImapServer
object. |
User |
An ImapUser object.
Reference to user that wants to connect to your IMAP
server. |
Action |
An ImapActions
enumeration, as described in settings. Return value you
should fill with either Allow or Deny value, depending
if you will allow user to access server or not. |
Settings
-
The settings for Action are:
|
Deny |
0 |
Deny execution of the
action. |
|
Allow |
1 |
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 IMAP server. Server will fire this
event 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.
|