1

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

Post's attachments

getmail-ldap.zip 4.79 kb, 17 downloads since 2011-06-10 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: getmail integration

Not sure why i cannot download attachment.

Also, would you like to write this tutorial in our wiki site? We have some other integration tutorials available there smile
http://www.iredmail.org/wiki/

3

Re: getmail integration

Ok,

let me try

ZhangHuangbin wrote:

Not sure why i cannot download attachment.

Also, would you like to write this tutorial in our wiki site? We have some other integration tutorials available there smile
http://www.iredmail.org/wiki/

4

Re: getmail integration

how can i access the wiki? have no login

5

Re: getmail integration

It's now open for registration, please go to create an account for yourself. smile

6

Re: getmail integration

Thanks