How to change the sender of mail notifications ?

  • 19 May 2022
  • 6 replies

Badge +3

Hello everyone,


I have configured the sending of mails for centreon however I can't find where to put the "from", I have an address in noreply@xxxxxxx, but I don't know where to put it, my mails are sent with :

configuration of the file /etc/postfix/

thank you in advance



6 replies

Userlevel 3
Badge +12

Hello @Kélian 

Centreon documentation explain that : or

You do check the Postfix Documentation, more specifically the postmap command and the map.

For french reader : at the end of this docs.

For others : and



Badge +3

Hello @gespada,


Thank you, i check this :) 




Badge +2



I come back to this copic because I have a similar problem.

Iindeed but notification does not go away and when I look at the logs, i see that postfix try to send the email but when using “notif@xxx is not allwoed to send as MAILER-DEAMOn@xxx ”

But I would like my emails to go from the address "notif@xxx" and not from "mailer-demon". how can i change this? 

For information if in CLI I use the commande mail -r it works

Can you help me?

Thanks in advance,

Best Regards,


Badge +10

add to the bunch



Badge +2

Hi Ponchoh,


Thanks for your link, but this not help me for my current problem.


My problem is when Centreon tries to send me a notification. 
It does it by default with "" and when I look at the log, I see the error put in my previous post. 

I need to change "" to "" well I don't see where I can change that. 

Do you have an idea? a parameter in the notification command?

For information my notification commande is:

“/usr/bin/printf "%b" "***** centreon Notification *****\n\nType:$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\nDate/Time: $DATE$" | @MAILER@ -r -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$


Thanks in advance,

Best Regard,

Badge +10