Change email alert return address

Is there a way to change the return address on email alerts from STOR2RRD? Our alerting system requires a specific return address. 


  • Hi,

    it is hardcoded, you can change it here:
    bin/ lines 1691 and 140
      my $mailfrom = "stor2rrd";

    Bad thing is that you have to do it again after next upgrade.
    We will think about parametrisation for the future ...

  • Thank you.
  • Looks like there is a hard coded email from "lpar2rrd" somewhere. On hardware failures I am getting a "rejected" email from this from address. Where might this be in the code?
  • if you use the latest code 2.01 then there is definitelly user stor2rrd for HW alerting:

    bin/ line 211
      my $mailfrom = "stor2rrd";

  • Running the latest code 2.01, and that location "mailfrom" was changed. But receiving hardware errors  "from": "" in my alert system. 
  • Found a solution to my issue, so thought I would share. Used postfix to resolve. 

    Added the following to last line of /etc/postfix/ file
    smtp_generic_maps = hash:/etc/postfix/generic

    Added the following to the last line of /etc/postfix/generic
    lpar2rrd user@fqdn
    stor2rrd user@fqdn

    postmap /etc/postfix/generic

    Restarted postfix
    service postfix restart

    With this I still needed to change the mailfrom in and files, but it is now sending from the address I needed.
  • ok, I tested actual solution and sendmail ignores "from:" item and places there actuall Unix user name.

    how did you change mailfrom variable in and

  • I changed the mailfrom variable in the code as per your instructions above. 
Sign In or Register to comment.