OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: EvilAchmed on September 12, 2024, 07:26:50 PM

Title: Quick Question about Monit
Post by: EvilAchmed on September 12, 2024, 07:26:50 PM
Trying to setup Monit to work with sending an email to Outlook.com.  Have everything working but I am getting an error because Outlook does not allow the sending email to be something different then the email address of the account that I am using.  As of right now Monit is saying that the sender's email is coming from monit@routername.domain.  I need to get this changed to address@outlook.com.  Does anyone know if this is possible.  I looked in the configuration but could not find any setting like this.

Thanks
Title: Re: Quick Question about Monit
Post by: danderson on September 12, 2024, 07:41:37 PM
you need to auth as the mailbox you want to send the message from, see attached pic



Quote from: EvilAchmed on September 12, 2024, 07:26:50 PM
Trying to setup Monit to work with sending an email to Outlook.com.  Have everything working but I am getting an error because Outlook does not allow the sending email to be something different then the email address of the account that I am using.  As of right now Monit is saying that the sender's email is coming from monit@routername.domain.  I need to get this changed to address@outlook.com.  Does anyone know if this is possible.  I looked in the configuration but could not find any setting like this.

Thanks
Title: Re: Quick Question about Monit
Post by: EvilAchmed on September 12, 2024, 07:51:08 PM
I already have that setup and verified it to be working.  Here is the output from the Monit Log.

Mail: Mailserver response error -- 554 5.2.252 SendAsDenied; name@outlook.com not allowed to send as monit@routername.doman; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [

Meaning that the From Address can not be from monit@routername.doman, it has to be from name@outlook.com.  How do I change the From Address to name@outlook.com
Title: Re: Quick Question about Monit
Post by: EvilAchmed on September 13, 2024, 06:17:50 AM
I was able to figure it out.  If anyone experiences this issue later on the solution is to go to your alert setting under the monit settings section and add "From: sender@example.com" to the mail format option.

Cheers