Question

How can I allow an email box to send as the email box of my centreon (Postfix)

  • 26 July 2022
  • 2 replies
  • 608 views

Badge +3
  • Steward *
  • 16 replies

Hello,

While i was trying to configure the Postfix to send mails, I always end up with the same problem :

 

myadress@outlook.com not allowed to send as root@hostname.localdomain  STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message.
 

The relayhost = [smtp.office365.com]:587 like it is write in outlook.

Does anyone know how to solve this problem?

Thanks for your help.

Kind regards,


2 replies

Userlevel 3
Badge +9

Hello @Ced,

 

You can try to add the “-r sender@something.com” option to the notifcation command in the menu Configuration  >  Commands  >  Notifications.

For services, for example:

/usr/bin/printf "%b" "***** centreon Notification *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATE$ Additional Info : $SERVICEOUTPUT$" | @MAILER@ -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$

To:

/usr/bin/printf "%b" "***** centreon Notification *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATE$ Additional Info : $SERVICEOUTPUT$" | @MAILER@ -r "centengine@centreon.com" -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$

Regards.

Userlevel 4
Badge +13

🐝🌼

 

Reply