Email setup

There are 2 possibilities:
  • Using STOR2RRD settings
  • Using OS system settings

STOR2RRD setings

You can specify SNMP settings in the application: UI ➡ Settings ➡ Alerting ➡ SMTP options
This is supported since STOR2RRD v7.50
SMTP setup



Configure it as per your company's standards for your Operating System
When you are on Xorux Virtual Appliance, then there is Postfix MTA installed and running, configuration is in /etc/postfix
Follow this for email troubleshooting

Set mail relay in STOR2RRD

Actual version STOR2RRD 7.30 does not support UI based procedure for specifying a mail relay. Future versions will contain that
However you can use this workaround.
su - stor2rrd
cd /home/stor2rrd/stor2rrd
umask 022
echo " export SMTPHOST=relay.company.com" >> etc/.magic

Setting mail relay in the Operating System (Postfix based)

Using Smart Host

Smart Host is an email relay in your internal site which accepts incoming email traffic.
You need to know its name and port where it is listening (25 usually).
Under root:
  • Stop Postfix
    # systemctl enable postfix.service
    # systemctl stop postfix.service
    
  • Set Smart Host and port
    # vi /etc/postfix/main.cf
    
    relayhost = mail.your_internal_domain.com:25
    
  • Start Postfix
    # systemctl start postfix.service
    
  • In case of "invalid domain" problem set your hostname in FQDN format (include domain)
    # vi /etc/postfix/main.cf
    
    myhostname = appliance_hostname.your_internal_domain.com
    

Using MX DNS records

Postfix finds appropriate email relay server from DNS MX records itself.
Under root:
  • Stop Postfix
    # systemctl enable postfix.service
    # systemctl stop postfix.service
    
  • Set myhostname to actual Appliance hostname in FQDN format (include domain)
    # vi /etc/postfix/main.cf
    
    myhostname = appliance_hostname.your_internal_domain.com
    
  • Start Portfix
    # systemctl start postfix.service
    

More info