C613-50631-01 Rev A Command Reference for IE340 Series 3279
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
MAIL (SMTP) COMMANDS
MAIL
SMTPSERVER
mail smtpserver
Overview This command specifies the IP address or domain name of the SMTP server that
your device sends email to. You must specify a mail server with this command
before you can send email.
Use the no variant of this command to remove the configured mail server.
Syntax
mail smtpserver {<ip-address>|<name>}
no mail smtpserver
Mode Global Configuration
Usage notes If you specify the server by specifying its domain name, you must also ensure that
the DNS client on your device is enabled. It is enabled by default but if it has been
disabled, you can re-enable it by using the ip domain-lookup command.
Examples To specify a mail server at “192.168.0.1”, use the command:
awplus(config)# mail smtpserver 192.168.0.1
To specify a mail server that has a host name of “smtp.example.com”, use the
command:
awplus(config)# mail smtpserver smtp.example.com
To remove the configured mail server, use the command:
awplus(config)# no mail smtpserver
Related
commands
debug mail
delete mail
mail
mail from
show counter mail
show mail
Parameter Description
<ip-address> Internet Protocol (IP) address for the mail server.
<name> Domain name (FQDN) for the mail server (also known as the host
name).