Skip to main content
Solved

Changing the default sender domain for email notifications @servercentreon

  • October 18, 2024
  • 2 replies
  • 216 views

Forum|alt.badge.img+2
Hey !I'm coming to you today because I'm stuck with the centreon/postfix settings.I would like to change the sender email cent-engine@servercentreon to cent-engine@domain.frdespite the change of the main.cf filewith in particular the addition of $myorigin it still remains in @servercentreonHas anyone had the problem before?Thanks !

Best answer by Sarge

Greetings,

Maybe try this:

Add the following line in /etc/postfix/main.cf

sender_canonical_maps = hash:/etc/postfix/sender_canonical

Add this kind of file /etc/postfix/sender_canonical (create it if not existing)
Adapt it with any kind of adress that suits your need.

user@server.local notifier@my-domain.com

And run this afterward.

postmap /etc/postfix/sender_canonical

Don’t forget to restart postfix once you’re done with the above in order for your new configuraton to be in effect.

If you need more details you can have a look here:
https://www.postfix.org/ADDRESS_REWRITING_README.html

Best regards.

2 replies

Sarge
Centreonian
Forum|alt.badge.img+3
  • Centreonian
  • Answer
  • October 18, 2024

Greetings,

Maybe try this:

Add the following line in /etc/postfix/main.cf

sender_canonical_maps = hash:/etc/postfix/sender_canonical

Add this kind of file /etc/postfix/sender_canonical (create it if not existing)
Adapt it with any kind of adress that suits your need.

user@server.local notifier@my-domain.com

And run this afterward.

postmap /etc/postfix/sender_canonical

Don’t forget to restart postfix once you’re done with the above in order for your new configuraton to be in effect.

If you need more details you can have a look here:
https://www.postfix.org/ADDRESS_REWRITING_README.html

Best regards.


Forum|alt.badge.img+2
  • Author
  • Steward *
  • November 7, 2024

Thanks I’ts ok !!

Best regards