Change the SMTP Port Number for Email Reports


How to change the SMTP port number for email reports.


The SMTP port needs to be changed due to email server requirements, including local email servers, Gmail, etc.


  1. Connect to the appliance via SSH
  2. Make a backup copy of the sendmail configuration file:
    cd /etc/mail/
  3. Edit the sendmail configuration file:
  4. Within the configuration file, locate the following line:
  5. Add the following line below the SMART_HOST line:
    define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
    define(`ESMTP_MAILER_ARGS', `TCP $H 587')dnl Please write quit the file :wq!
  6. then you have to M4 the file
     m4 /etc/mail/ > /etc/mail/
  7. Restart the sendmail service:
    service sendmail restart
  8. Send a test email:
    mail <recipient email address>
    Subject: Testing
    Body: Hello world.
  9. Press Ctrl+D to send the test email.

Have more questions?

Contact us

Was this article helpful?
0 out of 1 found this helpful

Provide feedback for the Documentation team!

Browse this section