iRedMail-0.9.3 and later releases drop Cluebringer, and replace it by iRedAPD, because:
Not all Cluebringer features are implemented in iRedAPD, but the most important 2 features have been implemented:
If you need other Cluebringer features, please stay with Cluebringer and let us know which features you need, so that we can implement it in future release of iRedAPD.
Please Make sure you're running iRedAPD-1.7.0 or later release, you can check the version number with command below:
grep '__version__' /opt/iredapd/libs/__init__.py
If you're not running iRedAPD-1.7.0 or later release, please follow our tutorial to upgrade it: Upgrade iRedAPD.
iRedAPD-1.7.0 and later release ship two scripts to migrate greylisting and throttling settings from Cluebringer:
/opt/iredapd/tools/migrate_cluebringer_greylisting.py
: used to migrate
greylisting settings./opt/iredapd/tools/migrate_cluebringer_throttle.py
: used to migrate
throttling settings.Please open above two files, update below parameters with correct SQL server address, port, database name, username and password for your existing Cluebringer database. You can find them in files below:
/etc/policyd/cluebringer.conf
./etc/cluebringer/cluebringer.conf
./usr/local/etc/cluebringer.conf
.cluebringer_db_host = '127.0.0.1'
cluebringer_db_port = 3306
cluebringer_db_name = 'cluebringer'
cluebringer_db_user = 'root'
cluebringer_db_password = ''
Then run below commands to migrate greylisting and throttling settings:
# cd /opt/iredapd/tools/
# python migrate_cluebringer_greylisting.py
# python migrate_cluebringer_throttle.py
That's it.
After migrated to iRedAPD, we need to update Postfix config file
/etc/postfix/main.cf
(Linux) or /usr/local/etc/postfix/main.cf
(FreeBSD)
to remove Cluebringer settings:
check_policy_service inet:127.0.0.1:10031
in main.cf
, like below:smtpd_recipient_restrictions =
reject_unknown_recipient_domain
reject_non_fqdn_recipient
reject_unlisted_recipient
check_policy_service inet:127.0.0.1:7777
check_policy_service inet:127.0.0.1:10031 # <- Remove this line
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
smtpd_end_of_data_restrictions =
check_policy_service inet:127.0.0.1:7777
check_policy_service inet:127.0.0.1:10031 # <- Remove this line
Restart Postfix service:
# service postfix restart
# /etc/rc.d/postfix restart
Stop Cluebringer service, and optionally, remove cluebringer packages.
# service cbpolicyd stop && yum remove cluebringer
# service postfix-cluebringer stop && apt-get remove --purge postfix-cluebringer
# service policyd2 stop && cd /usr/ports/mail/policyd2/ && make deinstall
Edit root user's cron job, remove the one used to clean up Cluebringer SQL database:
# crontab -e -u root
3 3 * * * /usr/sbin/cbpadmin --config=/etc/policyd/cluebringer.conf --cleanup >/dev/null
cluebringer
also.Document published under a CC BY-ND 3.0 license. If you found something wrong, please do contact us to fix it.