As far as I am aware you set up an SMTP server externally to JIRA (as shown below)
You would use a single user to authenticate to your SMTP server in this instance. Therefore you would only have one actual SMTP user. Mails would only come from that user and therefore you wouldn't need to verify that this user was present.
In theory you can do what your asking but you'd need to authenticate to your SMTP server to run the command. It's not a straightforward task.
What problem are you trying to solve with this approach? Maybe I can help solve the underlying issue??
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs