mailserver2 / mailserver

Simple and full-featured mail server using Docker
https://store.docker.com/community/images/mailserver2/mailserver
MIT License
133 stars 28 forks source link

Updated base image to https://github.com/mailserver2/debian-mail-overlay/releases/tag/v1.0.13 #58

Closed AndrewSav closed 6 months ago

AndrewSav commented 7 months ago

Apparently latest rspamd upgrade breaks the test. I do not have time to look at it this weekend, so if anyone would like to have a look, You are more than welcome

diroots commented 7 months ago

i think this should be set on hold, as debian did release today it's debian12.4-slim container, so if going with updated base image, it should be on this one. let me prepare it.

diroots commented 7 months ago

see https://github.com/mailserver2/debian-mail-overlay/pull/25 @AndrewSav

AndrewSav commented 6 months ago

@diroots rspamd 3.7.5 does not seem to make a difference, some one need to look at why the tests are failing

SaraSmiseth commented 6 months ago

I tested all rspamd versions since 3.5. Rspamd version 3.6 still works fine. Since version 3.7.1 I get the following error:

 ✗ checking logs: /var/log/mail.err in mailserver_default does not exist
   (from function `assert_failure' in file test/test_helper/bats-assert/src/assert.bash, line 140,
    in test file test/default.bats, line 848)
     `assert_failure' failed

   -- command succeeded, but it was expected to fail --
   output (12 lines):
     2024-01-07T07:59:01.380993+00:00 mail rspamd[1197]: <xu7gia>; cfg; rspamd_register_symbol_fromlua: duplicate symbol: CHECK_MID, skip registering
     2024-01-07T07:59:01.380999+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_BARE_IP as real (no parent)
     2024-01-07T07:59:01.381003+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_RHS_NOT_FQDN as real (no parent)
     2024-01-07T07:59:01.381006+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_MISSING_BRACKETS as real (no parent)
     2024-01-07T07:59:01.381008+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_RHS_IP_LITERAL as real (no parent)
     2024-01-07T07:59:01.381011+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_CONTAINS_FROM as real (no parent)
     2024-01-07T07:59:01.381013+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_RHS_MATCH_FROM as real (no parent)
     2024-01-07T07:59:01.381015+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_RHS_MATCH_FROMTLD as real (no parent)
     2024-01-07T07:59:01.381018+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_CONTAINS_TO as real (no parent)
     2024-01-07T07:59:01.381020+00:00 mail rspamd[1197]: <xu7gia>; symcache; add_symbol_with_callback: trying to add virtual symbol MID_RHS_MATCH_TO as real (no parent)
     2024-01-07T07:59:01.381025+00:00 mail rspamd[1197]: <xu7gia>; cfg; rspamd_register_symbol_fromlua: duplicate symbol: MID_END_EQ_FROM_USER_PART, skip registering
     2024-01-07T07:59:01.405921+00:00 mail rspamd[1197]: <xu7gia>; cfg; rspamd_init_lua_filters: init of /usr/share/rspamd/lualib/lua_ffi/spf.lua failed: /usr/share/rspamd/lualib/lua_ffi/spf.lua:71: size of C type is unknown or too large at line 35; trace: [1]:{[C]:-1 - cdef [C]}; [2]:{/usr/share/rspamd/lualib/lua_ffi/spf.lua:71 - <unknown> [main]};
   --

This is the only test that fails. The new rspamd version writes the above lines to mail.err and the test fails because the error log file should not exist.

It has to do something with this I think but I'm not sure what is causing it to be registered as duplicates?: https://github.com/rspamd/rspamd/blob/e9aa6550177993b54fb168fa535bb8a881001bcc/rules/mid.lua#L82

I did not find anything in the release notes: https://rspamd.com/blog/.

SaraSmiseth commented 6 months ago

We could downgrade rspamd to version 3.6 in the base image to release a new version with fixes for #60. Then figure out what is causing the error logs later. What do you think?

AndrewSav commented 6 months ago

I was thinking about this myself - good idea - go for it.

AndrewSav commented 6 months ago

@SaraSmiseth FYI @diroots silenced a few messages and the test do not fail anymore. Feel free to review https://github.com/mailserver2/mailserver/pull/61, if you are happy with that, we can use the current rspamd

AndrewSav commented 6 months ago

I pushed mailserver2/mailserver:20240109_01 to docker hub which I'm going to run for the next few days for testing

SaraSmiseth commented 6 months ago

@SaraSmiseth FYI @diroots silenced a few messages and the test do not fail anymore. Feel free to review #61, if you are happy with that, we can use the current rspamd

Yes, I'm happy 😺

I pushed mailserver2/mailserver:20240109_01 to docker hub which I'm going to run for the next few days for testing

Thanks, I'll also run it.

AndrewSav commented 6 months ago

I pushed tag 20240110_01 with the anti smuggling change. I also changed github action checkout from v2 to v3 because v2 was severely outdated and gave a warning.

Does any one else getting this in the mailserver logs after starting the container at some stage:

s6-svc: fatal: unable to control /services/rsyslogd: supervisor not listening

Edit: there is definitely something wrong with 20240110_01 Edit2: never mind I re-built it and pushed as 20240110_02 and it's ok now. Seems the build caches somehow screwed up the previous build.

AndrewSav commented 6 months ago

I'm happy to merge this and push 20240110_02 as latest/1.1.16, any objections?

diroots commented 6 months ago

debian-mail-overlay v1.0.14 tag not yet created and pushed to docker registry, right?

AndrewSav commented 6 months ago

@diroots this PR would not build if it was not. 1.0.14

AndrewSav commented 6 months ago

https://github.com/mailserver2/debian-mail-overlay/tree/v1.0.14 I forgot to create a gh release, I'll do it now.

diroots commented 6 months ago

yes, that's it, that's just i did not see a gh 1.0.14 release :p

SaraSmiseth commented 6 months ago

I'm happy to merge this and push 20240110_02 as latest/1.1.16, any objections?

No objections. I don't see any issues with pushing it.

AndrewSav commented 6 months ago

Cool, I'll try and do that soon-ish