Hello,
When I do an alarm, the file eventengine.log receive the alert but with the following errors and I don't receive a mail:
[2015-06-12 14:08:55,014] [INFO] [pid=26242 nav.alertengine.handle_new_alerts] alert 55 queued for admin due to subscription 1 [2015-06-12 14:09:21,098] [ERROR] [pid=26242 nav.alertengine.alertaddress.send] Email raised a DispatcherException indicating that an alert could not be sent at this time: Could not send email: Connection unexpectedly closed" Traceback (most recent call last): File "/usr/lib/python2.7/logging/handlers.py", line 926, in emit smtp.sendmail(self.fromaddr, self.toaddrs, msg) File "/usr/lib/python2.7/smtplib.py", line 722, in sendmail raise SMTPSenderRefused(code, resp, from_addr) SMTPSenderRefused: (553, 'sender domain must exist', 'navcron@navappliance') Logged from file profiles.py, line 377 [2015-06-12 14:09:21,655] [INFO] [pid=26242 nav.alertengine.check_alerts] 1 new alert(s), sent 0 alert(s), 1 queued alert(s), 0 alert(s) deleted, 1 failed send(s), 0 ignored [2015-06-12 14:09:21,656] [WARNING] [pid=26242 nav.alertengine.check_alerts] Send 1 alerts failed.
I configured Exim with the following parameters:
dc_eximconfig_configtype='satellite' dc_other_hostnames='exinfrserv1.epfl.ch' dc_local_interfaces='127.0.0.1 ; ::1' dc_readhost='exinfrserv1.epfl.ch' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='mail.epfl.ch' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='' dc_mailname_in_oh='true' dc_localdelivery='mail_spool'
When I test with the command 'echo "hello world" | mail -vv -s test nicolas.biselx@epfl.ch' The mail is sent and receive
In nav.conf, I also configured
DEFAULT_FROM_EMAIL=nicolas.biselx@epfl.ch
EMAIL_HOST=mail.epfl.ch EMAIL_PORT=465 EMAIL_HOST_USER=biselx EMAIL_HOST_PASSWORD=******** EMAIL_USE_SSL=True
I don't know what's wrong, Is it fair to configure Exim and nav.conf ? Is what I missed part of the configuration ?
Regards, Biselx Nicolas
On Fri, 12 Jun 2015 15:31:29 +0200 nicolas.biselx@epfl.ch wrote:
[2015-06-12 14:09:21,098] [ERROR] [pid=26242 nav.alertengine.alertaddress.send] Email raised a DispatcherException
[snip]
SMTPSenderRefused: (553, 'sender domain must exist', 'navcron@navappliance')
I don't know a whole lot about configuring Exim, but I think this error message is clear as day. Are you sure you restarted alertengine after changing the DEFAULT_FROM_EMAIL option in `nav.conf`?
I finally found: - Edit /etc/hostname and change navappliance by the server name - Only configure Exim and leave comments in this part nav.conf
# SMTP server settings to use when sending email alerts from NAV # #EMAIL_HOST = localhost #EMAIL_PORT = 25 #EMAIL_HOST_USER = #EMAIL_HOST_PASSWORD = #EMAIL_USE_TLS = False
You put me on the right track sorry for inconvenience for a question so basic. Thanks
Le 15. 06. 15 09:05, Morten Brekkevold a écrit :
On Fri, 12 Jun 2015 15:31:29 +0200 nicolas.biselx@epfl.ch wrote:
[2015-06-12 14:09:21,098] [ERROR] [pid=26242 nav.alertengine.alertaddress.send] Email raised a DispatcherException
[snip]
SMTPSenderRefused: (553, 'sender domain must exist', 'navcron@navappliance')
I don't know a whole lot about configuring Exim, but I think this error message is clear as day. Are you sure you restarted alertengine after changing the DEFAULT_FROM_EMAIL option in `nav.conf`?