Can username contain @ mark in configuring authentication to smtp server for ASUP transferring?
Applies to
ONTAP 9.5 or earlier
Answer
- The AutoSupport
mail-hosts
parameter supports authentication using theuser:password@mailhost
format. - However, if an email address is used as the user name, the
@
symbol in the email address is misinterpreted as the mailhost name and the parameter is not parsed correctly.
For example: autosupport modify -node node1 -mail-hosts user1@host.com:pw1@mailhost1
, host.com
is interpreted as the mailhost name.
- As a workaround, in the user name, enter
%40
instead of the@
symbol.
For example: autosupport modify -node node1 -mail-hosts user1%40host.com:pw1@mailhost1
Additional Information
- BUG 851157
- username and password pair setting is not available via System Manager GUI. Please use CLI instead and refer to the following docs below.
- ONTAP 9.5 or earlier : system node autosupport modify
[-mail-hosts <text>,…]
- SMTP Mail Hosts
Also, you can optionally prepend a user name and password combination for authentication to each mail server.
The format of the username and password pair isuser1:pw1@mymailhost.example.com
.<-----------------
The username and password can be specified on none, all, or some of the mail hosts. - ONTAP 9.6 or later : system node autosupport modify
[-mail-hosts <text>,…]
- SMTP Mail Hosts
Also, you can optionally prepend a user name and password combination for authentication to each mail server.
The format of the username and password pair isuser1@mymailhost.example.com
. <-----------------
User will be prompted for the password. <-----------------
The username and password can be specified on none, all, or some of the mail hosts.
- ONTAP 9.5 or earlier : system node autosupport modify