Topic: getmail integration
Hi,
for those having a hosting server and wish to sync the 2 servers , i just discovered getmail (better than fetchmail)
i have changed the code to resend the mail via smtp (so that iredmail process it as usual) - getmail do not scan
here is the instructions for centos + openldap -- still draft --
(i'm using a modified code from :
http://www.effinger.org/blog/2009/03/22 … 4-getmail/)
1. install getmail :
wget http://choonrpms.choon.net/centos/5.6/c … noarch.rpm
rpm -ivh http://choonrpms.choon.net/centos/5.6/c … noarch.rpm
or
yum localinstall http://choonrpms.choon.net/centos/5.6/c … noarch.rpm
2. create an OU in the domain with phpldapadmin
ou=Mails
3. add the schema to openldap (need to see how to integrate the schema)
copy the dovecot.schema to /etc/openldap/dovecot.schema
/etc/openldap/slapd.conf
include /etc/openldap/schema/dovecot.schema
restart openldap : service ldap restart
4. create folders :
/root/getmail/getmail_config
mkdir -p /root/getmail/getmail_config
5. create the hosting accounts in phpldapadmin :
dn: dcRetrieveLogin=<external login>,ou=Mails,domainName=<..........>
dcaccountstatus: active
dcretrievelogin: <external login>
dcretrievepassword: <external password>
dcretrieveserver: <external server>
dcretrievetype: SimplePOP3Retriever
dcsubmailaddress: <local email address>
objectclass: dcExternalMailAccount
objectclass: top
6. copy the files in /root/getmail (see zip file)
and change config file : getmail-ldap.cfg
replace accordingly
7. test by running getmail-ldap.py
8. add to crontab
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.