If it possible to manipulate imap accounts from the client side with certain account

2009-11-02 Thread Zhu Zhixin
Dear all,

I have an perl script to archive imap mailboxes from the client
side. The script uses Perl::LDAP modules from cpan.

It is succeed to archive all my old mails to new mailboxes, such as
mail_2007 and mail_2008 and so on.

The question now is, i don't know other peoples' password and well
even if i know the passwords, it is much more frustrated to change an
account and password for every account.

   So, i wonder if it is possible that one mail account can access all
other mail accounts just as the account owner. Then, this way, i just
need to run the script once and do archive on all account in the same
domain.

Best wishes,

Zhu Zhixin
-- 
Real SoftService

Baiyan Building Unit 406B
Beisihuan Zhong Road No.238

Mobile: 150 1030 1841

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: If it possible to manipulate imap accounts from the client side with certain account

2009-11-03 Thread Simon Matter
> Dear all,
>
> I have an perl script to archive imap mailboxes from the client
> side. The script uses Perl::LDAP modules from cpan.
>
> It is succeed to archive all my old mails to new mailboxes, such as
> mail_2007 and mail_2008 and so on.
>
> The question now is, i don't know other peoples' password and well
> even if i know the passwords, it is much more frustrated to change an
> account and password for every account.
>
>So, i wonder if it is possible that one mail account can access all
> other mail accounts just as the account owner. Then, this way, i just
> need to run the script once and do archive on all account in the same
> domain.

Hi,

You may want to check the "proxyservers" option in imapd.conf. Looks like
what you are looking for.

Regards,
Simon



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: If it possible to manipulate imap accounts from the client side with certain account

2009-11-03 Thread Zhu Zhixin
Simon Matter wrote:
> 
> Hi,
> 
> You may want to check the "proxyservers" option in imapd.conf. Looks like
> what you are looking for.
> 

Thanks very much. For proxyservers, i have done some test on it and
final didn't get any idea on howto use it.

It seems that no documents about proxyservers.

If you have experience on this, please help!


Thanks,
Zhu Zhixin


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: If it possible to manipulate imap accounts from the client side with certain account

2009-11-03 Thread Simon Matter
> Simon Matter wrote:
>>
>> Hi,
>>
>> You may want to check the "proxyservers" option in imapd.conf. Looks
>> like
>> what you are looking for.
>>
>
> Thanks very much. For proxyservers, i have done some test on it and
> final didn't get any idea on howto use it.
>
> It seems that no documents about proxyservers.
>
> If you have experience on this, please help!

I don't remember exactly how I have used it. It was to copy mailboxes from
cyrus-imapd to another system using imapsync. It was something like

- create a proxy user, in our case called "proxy". I don't remember
whether it needed a mailbox or maybe we only created it in the auth db.
- add "proxyservers: proxy" to imapd.conf

Now, with an IMAP client, you can authenticate as user "proxy" with
proxy's password but then login as the target user. That means you don't
need the target users password.

With imapsync that was done using
imapsync --authuser1 proxy --user1 buddy ...

I hope someone on the list can tell you how to do this in perl.

Regards,
Simon


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html