Pandora FMS Community

How to change alert from email address on local MTA

ainamori · 25 may 2017, 21:21 · 3 mensajes · 62 visitas

  1. Inicio del debate

    Hi, I'd like to know how do I configure changing the sender address of alert. I configured "/etc/pandora/pandora_server.conf" as the below, but pandora server still send an alert address from "root". Does the "mta_from" work with only other MTA servers ? ============================== -- /etc/pandora/pandora_server.conf  -- snip -- mta_address localhost mta_port 25 mta_from Description  -- snip -- ---- My server platform is the followings - OS-  - CentOS 6.7  - pandora_server     - pandorafms_server-6.0SP4-1.noarch - local MTA     - postfix    # postconf -d      append_dot_mydomain = yes      mydomain = mydomain.com      myhostname = C6-dev001.mydomain.com --- maillog May 25 10:09:58 C6-dev001 postfix/pickup[28903]: 1324B80DD0: uid=0 from= May 25 10:09:58 C6-dev001 postfix/cleanup[29311]: 1324B80DD0: message-id=[email protected] May 25 10:09:58 C6-dev001 postfix/qmgr[28904]: 1324B80DD0: from=, size=732, nrcpt=1 (queue active ----

  2. Hello ainamori, Your MTA parameters looks ok, I've just tested it by only modifying the "mta_from" parameter, and it has worked well for me, modifying the description and even the mail address. Have you restarted the pandora_server daemon after applying the changes? Kind regards, Antonio.

  3. Hi Antonio, I think I found the cause of the problem. I created mail command as the following because I'd like to send an email as text mail (not HTML mail) --- echo "_field3_" | col -bx | mail -s "_field2_" _field1_ --- I'll fix the command... I'm very sorry I have forgotten I created the mail command...

Entra en tu cuenta para publicar.