jokob-sk / NetAlertX

🖧🔍 WIFI / LAN intruder detector. Scans for devices connected to your network and alerts you if new and unknown devices are found.
GNU General Public License v3.0
3.09k stars 187 forks source link

Undeliverable Email; Missing Date Field #885

Open NWBx01 opened 2 hours ago

NWBx01 commented 2 hours ago

Is there an existing issue for this?

The issue occurs in the following browsers. Select at least 2.

Current Behavior

Unable to send notification emails while using docker-mailserver. Email hits bounces and returns to the sender inbox with the following message:

INVALID HEADER

  Missing required header field: "Date"

Sure, enough. There does not appear to be a date field in the email: https://github.com/jokob-sk/NetAlertX/blob/4e90a82ea4cc3748c65d704472e1557136828e70/front/plugins/_publisher_email/email_smtp.py#L116-L122

Expected Behavior

Notification email would be sent to receiving inbox.

Steps To Reproduce

No response

app.conf

No response

docker-compose.yml

No response

What branch are you running?

Production

app.log

No response

Debug enabled

jokob-sk commented 2 hours ago

Thanks for the report.

This should be fixed in the next release. It would be great if you could test this. Can you please set up an instance of the netalertx-dev docker image (backup everything at first), in about 15 minutes (or after the last action finishes) from now?

⚠please don't reuse your existing config or DB, I'm currently modifying those ⚠

Make sure you refresh your browser cache - and click the 🔄 refresh button in the top right corner.

Thanks in advance, j

jokob-sk commented 2 hours ago

Another workaround is to use a different SMTP server, GMAIL/GMX work even without the Date field: https://github.com/jokob-sk/NetAlertX/blob/4e90a82ea4cc3748c65d704472e1557136828e70/docs/SMTP.md