CONFIG COMMUNICATION SMTP
Level
log,modify
History
port appears in Netasq 6.0.0
option service_object for port appears in Netasq 6.1.0
option State appears in Netasq 7.0.0
level changes from other,modify to log,modify in Netasq 9.0.0
options username and password appear in Netasq 9.0.2
option domain is replaced by emailAddress in 3.3.0
option starttls is replaced by security in 5.0.0
option sendername appears in 5.0.0
option replytoaddress appears in 5.0.0
option replytoname appears in 5.0.0
option caserver appears in 5.0.0
option certserver appears in 5.0.0
option retrydelay appears in 5.0.0
option statminrefreshperiod appears in 5.0.0
option statmaxmailcount appears in 5.0.0
option bindaddr appears in 5.0.0
Description
Configure SMTP for mail notifications.
Usage
state=(0|1) [server=<host_object>] [emailAddress=<user@domain>] [port=<service_object|int>] [bindaddr=<host_object>]
[delay=<int>] [username=<string>] [password=<string>] [security=(None|StartTLS|SSL/TLS)] [tlscheck=(0|1)]
[tlscheckhostname=(0|1)] [sendername=<string>] [replytoaddress=<user@domain>] [replytoname=<string>] [caserver=<ca_name>]
[certserver=<ca_name>:<certificate_name>] [retrydelay=<int>] [statminrefreshperiod=<int>] [statmaxmailcount=<int>]
server and emailAddress are mandatory and cannot be empty whenever state=1, unless already set in the config.
server, emailAddress and port can be set empty whenever state=0.
bindaddr, replytoaddress, sendername, replytoname, caserver and certserver can be set empty regardless of the state.
username and password have to be set at the same time in the config : any command that results in having only one of these two fields empty in the config is not valid.
sendername and replytoname forbid the use of these characters : ; , \"
username and password forbid the use of these characters : <tab> <space> \" \\
username, sendername and replytoname further forbids these characters : > <
bindaddr specified host should be a host belonging to the firewall
caserver and certserver cannot be set at the same time unless one of the two is empty.
delay and retrydelay are durations in seconds while statminrefreshperiod is a duration in milliseconds.
Returns
Error code
Example
CONFIG COMMUNICATION SMTP state=1 server=smtp_server emailAddress=user@stormshield.local delay=900 retrydelay=900 statminrefreshperiod=9000 statmaxmailcount=42
CONFIG COMMUNICATION SMTP state=1 server=smtp_server emailAddress=user@stormshield.local bindaddr=Firewall_in replytoaddress= replytoname= caserver= certserver=
CONFIG COMMUNICATION SMTP state=0 server= emailAddress= username= password= sendername=