erik73 / addon-mailfilter

Mailfilter based on Rspamd and ClamAV - Home Assistant Add-on by Erik73
https://erik73.github.io
MIT License
0 stars 1 forks source link

Unable to send email using built-in Windows 11 e-mail client #128

Closed TomaszDom closed 1 year ago

TomaszDom commented 1 year ago
2022-11-11 23:27:06.471754414  mail.info: Nov 11 23:27:06 postfix/smtps/smtpd[432]: connect from unknown[192.168.1.1]
2022-11-11 23:27:06.533530027  mail.info: Nov 11 23:27:06 postfix/smtps/smtpd[432]: Anonymous TLS connection established from unknown[192.168.1.1]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
2022-11-11 23:27:11.587650201  mail.warn: Nov 11 23:27:11 postfix/smtps/smtpd[432]: warning: host or service 32b8266a-mailfilter:11332 not found: Try again
2022-11-11 23:27:11.589050598  mail.warn: Nov 11 23:27:11 postfix/smtps/smtpd[432]: warning: connect to Milter service inet:32b8266a-mailfilter:11332: Address not available
2022-11-11 23:27:46.708696279  mail.warn: Nov 11 23:27:46 postfix/smtps/smtpd[432]: warning: connect to mysql server core-mariadb: Unknown MySQL server host 'core-mariadb' (-3)
2022-11-11 23:27:46.710119028  mail.warn: Nov 11 23:27:46 postfix/smtps/smtpd[432]: warning: mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf lookup error for "someexternaladdress@gmail.com"
2022-11-11 23:27:46.711016595  mail.info: Nov 11 23:27:46 postfix/smtps/smtpd[432]: NOQUEUE: reject: RCPT from unknown[192.168.1.1]: 451 4.3.0 <someexternaladdress@gmail.com>: Temporary lookup failure; from=<admin@MYDOMAINHERE> to=<someexternaladdress@gmail.com> proto=ESMTP helo=<[IPv6:::ffff:192.168.1.206]>
2022-11-11 23:27:46.716612239  mail.info: Nov 11 23:27:46 postfix/smtps/smtpd[432]: disconnect from unknown[192.168.1.1] ehlo=1 auth=1 mail=1 rcpt=0/1 quit=1 commands=4/5

This is what happens when I try to send an email using the builtin Windows 11 email client. Despite what the log says Milter service is in fact running at 32b8266a-mailfilter (and works, it is scanning incoming email), so is MariaDB at core-mariadb (I can log in into postfixadmin without issues). I am in fact receiving email using this client without issues (DNS, SSL certificates are all set up correctly).

mailserver:

 Add-on version: 1.2.8
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2022.11.2
 Home Assistant Supervisor: 2022.10.2

spamd:

Add-on version: 2.0.2
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2022.11.2
 Home Assistant Supervisor: 2022.10.2
erik73 commented 1 year ago

Hi. Is the Mariadb addon installera and Running?It looks like it is not. Skickat från min iPhone12 nov. 2022 kl. 00:37 skrev TomaszDom @.>: 2022-11-11 23:27:06.471754414 mail.info: Nov 11 23:27:06 postfix/smtps/smtpd[432]: connect from unknown[192.168.1.1] 2022-11-11 23:27:06.533530027 mail.info: Nov 11 23:27:06 postfix/smtps/smtpd[432]: Anonymous TLS connection established from unknown[192.168.1.1]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits) 2022-11-11 23:27:11.587650201 mail.warn: Nov 11 23:27:11 postfix/smtps/smtpd[432]: warning: host or service 32b8266a-mailfilter:11332 not found: Try again 2022-11-11 23:27:11.589050598 mail.warn: Nov 11 23:27:11 postfix/smtps/smtpd[432]: warning: connect to Milter service inet:32b8266a-mailfilter:11332: Address not available 2022-11-11 23:27:46.708696279 mail.warn: Nov 11 23:27:46 postfix/smtps/smtpd[432]: warning: connect to mysql server core-mariadb: Unknown MySQL server host 'core-mariadb' (-3) 2022-11-11 23:27:46.710119028 mail.warn: Nov 11 23:27:46 postfix/smtps/smtpd[432]: warning: mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf lookup error for @." 2022-11-11 23:27:46.711016595 mail.info: Nov 11 23:27:46 postfix/smtps/smtpd[432]: NOQUEUE: reject: RCPT from unknown[192.168.1.1]: 451 4.3.0 @.>: Temporary lookup failure; @.> @.***> proto=ESMTP helo=<[IPv6:::ffff:192.168.1.206]> 2022-11-11 23:27:46.716612239 mail.info: Nov 11 23:27:46 postfix/smtps/smtpd[432]: disconnect from unknown[192.168.1.1] ehlo=1 auth=1 mail=1 rcpt=0/1 quit=1 commands=4/5

This is what happens when I try to send an email using the builtin Windows 11 email client. Despite what the log says Milter service is in fact running at 32b8266a-mailfilter (and works, it is scanning incoming email), so is MariaDB at core-mariadb (I can log in into postfixadmin without issues). I am in fact receiving email using this client without issues (DNS, SSL certificates are all set up correctly).

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

TomaszDom commented 1 year ago

It is installed and running, I'm using it for nginx proxy manager and nextcloud, postfix admin webui also works fine with it.

I can send email using the postfix webui interface, but not using an external client for some reason.

TomaszDom commented 1 year ago

I've installed Thunderbird and now everything seems to be working fine. The only issue is that the cert files from /ssl directory are not used. letsencrypt_certs: true is set, the correct certs are placed in /ssl (fullchain.pem and privkey.pem) and yet the cert is from Nginx Proxy Manager:

image

Actual cert:

image

TomaszDom commented 1 year ago

I have re-checked my setup, turns out it was a configuration issue on my end when it comes to certificates.