The SMTP Server tab enables you to configure the SMTP Server.
DWebPro's SMTP Server functions in two modes (Server Type):
If the SMTP Server is launched with the Via SMTP option, it will rely on an external SMTP server for sending email.
If the SMTP Server is launched with the Relay option, it will rely on a DNS server for resolving the email receiver's
domain names and then try to send the email directly to those servers,
exactly like a classic SMTP server would.
Sending email can occur in three different modes (Send Type):
- Transparent
- On Timeout
- On Count Reached
If the Transparent option is used, DWebPro
will attempt to transmit incoming email to the correct destination
(the recipients).
If the On Timeout option is used, incoming
email is queued and sent only on expiration of the previously set
timeout.
If the On Count Reached option is used,
incoming email is queued until reaching a previously set maximum number;
only after that will the messages be sent.
The http.ini fields specific to the SMTP
Server section are shown below:
[SMTP]
; SMTP Server settings
Start=1
DefaultSender=smtp@dwebpro.com
Timeout=300000
ServerType=1
SendType=1
StorageDir=##TEMP##\dwebpro\smtp\spool
SendOnShutdown=1
SendUnsentMessages=0
; Network settings
IP=127.0.0.1
Port=25
FindFreePort=1
; Server Type settings
ServerViaSMTP.Host=mail.libero.it
ServerViaSMTP.Port=25
ServerRelay.DNSHost=151.99.125.2
ServerRelay.DNSPort=53
ServerRelay.DNSTimeout=6000
; Send Type settings
OnTimeoutServer.Timeout=5000
OnCountServer.Count=1
; AntiVirus settings
AntiVirusDaemon=##DWEBPRO_PATH##\engine\clamwin\bin\clamscan.exe
AntiVirusParams=-d "##DWEBPRO_PATH##\engine\clamwin\db" -i --quiet --remove "%F"
Each of the fields within the ColdFusion section are detailed
below.
SMTP Server settings
Start SMTP Server
Start
Start SMTP Server specifies whether the
SMTP Server will be started.
Accepted values: 0, 1
Default Sender
DefaultSender
Default Sender specifies the email address
used by the SMTP Server to send the email that does not have a sender's
email address specified.
Accepted values: string
Timeout (in sec)
Timeout
Timeout (in sec) specifies timeout interval,
in seconds, before DWebPro returns an error. This value is saved in
milliseconds, but is displayed in seconds. For example, a value of 300 in this field is saved as 300000 in http.ini.
Accepted values: integer
Server Type
ServerType
Server Type specifies the SMTP Server's
working mode: Via SMTP or Relay. The Via Relay setting corresponds to a value
of 0 in http.ini while the Relay setting corresponds to a value of 1 in http.ini.
Accepted values: 0, 1
Send Type
SendType
Send Type specifies the email sending
mode: Transparent, On Timeout, or On Count Reached. The Transparent setting corresponds to a value of 0 in http.ini; the On Timeout setting
corresponds to a value of 1 in http.ini; the On Count Reached setting corresponds
to a value of 2 in http.ini.
Accepted values: 0, 1, 2
Storage Directory
StorageDir
Storage Directory specifies the path
to the folder for temporarily saving queued messages. Refer to the
DWebPro Internal Constants topic for additional information
on paths.
Accepted values: string
Send on Shutdown
SendOnShutdown
Send on Shutdown specifies whether DWebPro
attempts to send email into the spool before shutting down.
Accepted values: 0, 1
Send unsent messages
SendUnsentMessages
Send unsent messages specifies whether DWebPro
attempts to send the emails not sent with during the previous usage session.
Accepted values: 0, 1
Network settings
IP
IP
IP specifies the IP address on which
the SMTP Server listens.
Accepted values: string, in IPv4 format
Port
Port
Port specifies the port in which the
SMTP Server listens. If modifications to this field are made, it is
necessary to also modify the settings stored in the php.ini file so that the SMTP Server will work correctly with PHP.
Accepted values: string
Find Free Port
FindFreePort
Find Free Port specifies whether DWebPro
searches for a free port on which to start the SMTP Server. Refer
to the
DWebPro Internal Constants for more information.
Accepted values: 0, 1
Server Type settings
Via SMTP: Host
ServerViaSMTP.Host
Via SMTP: Host specifies the SMTP Server
to be used for sending messages. Note that this setting is used only
when the Server Type option is set to Via SMTP (0).
Accepted values: string
Via SMTP: Port
ServerViaSMTP.Port
Via SMTP: Port specifies the SMTP Server's
port to be used for sending messages. Note that this setting is used
only when the Server Type option is set to Via SMTP (0).
Accepted values: integer
Relay: Host
ServerRelay.DNSHost
Relay: Host specifies the DNS server
to be used for resolving the domain names associated to the email
addresses of the outgoing messages. Note that this setting is used
only when the Server Type option is set to Relay (1).
Accepted values: string
Relay: Port
ServerRelay.DNSPort
Relay: Port specifies the port the DNS
server uses for sending messages. Note that this setting is used only
when the Server Type option is set to Relay (1).
Accepted values: integer
Relay: Timeout (in sec)
ServerRelay.DNSTimeout
Relay: Timeout (in sec) specifies the
timeout, in seconds, for the name resolution operation performed by
the above-mentioned DNS server. Note that this setting is used only
when the Server Type option is set to Relay (1). This value is saved in
milliseconds, but is displayed in seconds. For example, a value of 6 in this field is saved as 6000 in http.ini.
Accepted values: integer
Send Type settings
Send Type On Timeout: Timeout (in sec)
OnTimeoutServer.Timeout
Send Type On Timeout: Timeout (in sec) specifies the timeout for sending messages. This value is saved
in milliseconds, but is displayed in seconds. For example, a value
of 5 in this field is saved as 5000 in http.ini.
Accepted values: integer
Send Type On Count Reached: Count
OnCountServer.Count
Send Type On Count Reached: Count specifies
the number of messages to place in the queue before sending the messages.
Accepted values: integer
AntiVirus settings
Antivirus Daemon
AntiVirusDaemon
Accepted values: string
Antivirus Params
AntiVirusParams
Antivirus Params specifies the parameters
sent to the antivirus program. The
%F string will
be replaced with the name of the file that contains the email to check.
Refer to the
DWebPro Internal Constants for more
information.
Accepted values: string