Is it possible to test the SMTP settings entered in the Monit "Genral section"? In particular the settings entered in the section "Alert settings".
In pfSense there was a button "Test SMTP settings". Can something similar be done in OPNSense GUI or on the command line?
When I look in System -> Log files -> General I get the following message:
Mail: Mailserver response error -- 553 #5.1.8 Domain of sender address <monit@opnsense.mudcrawler.net> does not exist
Can I specify a sender address somewhere? monit@mudcrawler.net in stead of monit@opnsense.mudcrawler.net will do because the domain mudcrawler.net is existent.
In the monit documentation I can find:
set mail-format {
from: Monit Support <monit@foo.bar>
reply-to: support@domain.com
subject: $SERVICE $EVENT at $DATE
message: Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION.
Yours sincerely,
monit
}
But in the file /usr/local/etc/monitrc I can not find this section. Moreover the header of this file says "DO NOT EDIT THIS FILE -- OPNsense auto-generated file"
Is it possible to change the from address somewhere?
Thanks,
Erik
I'm so sorry, the answer was already in my first post. :-[
In Services: Monit: Settings: AlertSettings [recipient] -> Mail format I filled in the following
from: [opnsense@domain_that_I_own]
reply-to: [my e-mail address]
subject: Monit Alert -- $EVENT
message: $EVENT Service $SERVICE
Date: $DATE
Action: $ACTION
Host: $HOST
Description: $DESCRIPTION
Your faithful employee,
Monit
Now it is working and upon monit start or restart I recieve an email as specified in mail format.
I'm sorry,
Erik