Upgrade iRedMail from 1.6.7 to 1.6.8

Attention

Check out the on-premises, lightweight email archiving software developed by iRedMail team: Spider Email Archiver.

Paid Remote Upgrade Support

We offer remote upgrade support if you don't want to get your hands dirty, check the details and contact us.

ChangeLog

General (All backends should apply these changes)

Update /etc/iredmail-release with new iRedMail version number

iRedMail stores the release version in /etc/iredmail-release after installation, it's recommended to update this file after you upgraded iRedMail, so that you can know which version of iRedMail you're running. For example:

1.6.8

Mitigate Postfix "SMTP Smuggling" attack (short-term workaround)

There's a "SMTP Smuggling" attack found in all Postfix versions, visit Postfix website for more details: SMTP Smuggling.

Quote from Postfix website:

Details

The attack involves a COMPOSITION of two email services with specific differences in the way they handle line endings other than :

Postfix is an example of email service B. Microsoft's outlook.com was an example of email service A.

Impact

Please run shell commands below to apply the fix:

postconf -e smtpd_data_restrictions=reject_unauth_pipelining
postconf -e smtpd_discard_ehlo_keywords=chunking
postfix reload

Note: Most Linux/BSD distribution releases don't have latest Postfix release till today (Dec 29, 2023), we can only apply this "short-term workarounds". The "long-term fix" is upgrading Postfix to at least version: 3.8.4, 3.7.9, 3.6.13 and 3.5.23 to stop all forms of the smuggling attacks on recipients at a Postfix server.

CentOS/Rocky/Alma: Enable daily cron job to update SpamAssassin rules

Attention

This is applicable to only CentOS, Rocky Linux, AlmaLinux.

Please run command below to enable daily cron job to update SpamAssassin rules:

ln -sf /usr/share/spamassassin/sa-update.cron /etc/cron.daily/sa-update

Upgrade mlmmjadmin to the latest stable release (3.1.9)

Please follow below tutorial to upgrade mlmmjadmin to the latest stable release: Upgrade mlmmjadmin to the latest stable release

Upgrade netdata to the latest stable release (1.44.1)

If you have netdata installed, you can upgrade it by following this tutorial: Upgrade netdata.

OpenLDAP backend

Fix: allow to use (mlmmj) mailing list as member of another mailing list.

Please open file /etc/postfix/ldap/virtual_group_maps.cf, replace query_filter line by below one:

query_filter    = (&(accountStatus=active)(!(domainStatus=disabled))(enabledService=mail)(enabledService=deliver)(|(&(|(memberOfGroup=%s)(shadowAddress=%s))(|(objectClass=mailUser)(objectClass=mailExternalUser)))(&(memberOfGroup=%s)(!(shadowAddress=%s))(|(objectClass=mailAlias)(objectClass=mailList)))(&(objectClass=mailList)(enabledService=mlmmj)(|(mail=%s)(shadowAddress=%s)))))

Restarting postfix service is required.