Topic: Feature implementation requests for future release
A few feature implementation requests for a future release of iRedMail.
-Ability to auto delete messages.
Adding this to crontab:
# Cleanup Drafts, Sent, Junk, Trash
0 3 * * * /usr/local/bin/dovecot-expunge.sh
and creating this script /usr/local/bin/dovecot-expunge.sh with the following contents:
#!/bin/bash
#
DOVEADM="/usr/bin/doveadm";
$DOVEADM expunge -A mailbox Drafts savedbefore 365d
$DOVEADM expunge -A mailbox Sent savedbefore 365d
$DOVEADM expunge -A mailbox Junk savedbefore 30d
$DOVEADM expunge -A mailbox Trash savedbefore 30d
will remove messages in Draft and Sent folders older than 365 days, and remove messages older then 30 days in the Junk and Trash folders.
-Remove Postfix headers on outgoing messages by default. Postfix gives away lots of information that most probably wouldn't include given a choice, especially when sending with a client such as Thunderbird or any iPhone or Android SMTP mail app. With the below solution the log files still have this information for outgoing messages if needed.
Adding a file called: /etc/postfix/smtp_header_checks
with the below:
/^\s*(Received: from)[^\n]*(.*)/ REPLACE $1 [127.0.0.1] (localhost [127.0.0.1])$
/^\s*User-Agent/ IGNORE
/^\s*X-Enigmail/ IGNORE
/^\s*X-Mailer/ IGNORE
/^\s*X-Originating-IP/ IGNORE
and editing /etc/postfix/master.cf by finding:
submission inet n - n - - smtpd
and adding:
-o cleanup_service_name=subcleanup
and by adding
subcleanup unix n - - - 0 cleanup
-o header_checks=pcre:/etc/postfix/smtp_header_checks
to /etc/postfix/master.cf
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.