Re: [vchkpw] forwording mail's from qmail to ______ server
Dear Mr.Arun Kumar,Please go through this > [EMAIL PROTECTED] wrote:>> We are shifting one of mail server from qmail to Exchange server for>> testing,> > ... my sympathies. You'll be back.> >> so how can i forward mails from qmail mail server to Exchange >> server.> > Look at the qmail-remote manual page.> http://qmail.geto.net/man/man8/qmail-remote.html> > If it's just POP mailboxes (not IMAP with subfolders), you can> push the messages out using qmail-remote. Below are examples> of how to remail messages in people's folders. Your script may> not end up being exactly the same, but it should give you an> idea as to qhat you need to do.> > #!/bin/sh> PATH=/var/qmail/bin:/home/vpopmail/bin:$PATH # or whatever> export PATH> REMOTE=NEWSERVER.YOUR.DOMAIN> [EMAIL PROTECTED]> USERS="[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]"> for user in $USERS; do> dir=`vuserinfo -d $user`> for subdir in new cur; do> cd $dir/Maildir/$subdir || continue> for msg in *; do> qmail-remote $REMOTE $ADMIN $user < $msg> done> done> done> > If you just have one domain using qmail and not vpopmail,> just change directories to the domain and run:> > #!/bin/sh> PATH=/var/qmail/bin:$PATH # or whatever> export PATH> REMOTE=EXCHANGE.YOUR.DOMAIN> [EMAIL PROTECTED]> for user in * do> for subdir in new cur; do> cd $dir/Maildir/$subdir || continue> for msg in *; do> qmail-remote $REMOTE $ADMIN [EMAIL PROTECTED] < $msg> done> done> done> > If you need to preserve IMAP subfolders, it gets more complicated. You'd> actually have to write (as Jeremy said) a Perl script using> Net:IMAP to push the message into their new mailboxes. If it's just a> few users, each user can add the new IMAP account and just> drag/drop the messages into their new folders.> > --> Eric ZiegastRegards Venu --This Message and any attachments is intended solely for the addresses and is confidential. If you receive this message in error or if you are not the intended recipient, please delete the mail. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited. Please inform us in case of erroneous delivery, thanks for your cooperation.
Re: [vchkpw] forwording mail's from qmail to ______ server
On Wednesday 21 July 2004 11:13 am, Eric Ziegast wrote: > [EMAIL PROTECTED] wrote: > > We are shifting one of mail server from qmail to Exchange server > > for testing, > > ... my sympathies. You'll be back. after his PHB dies, perhaps :) > > so how can i forward mails from qmail mail server to Exchange > > server. > > Look at the qmail-remote manual page. > http://qmail.geto.net/man/man8/qmail-remote.html > > If it's just POP mailboxes (not IMAP with subfolders), you can > push the messages out using qmail-remote. or easier, serialmail. [snip] > If you need to preserve IMAP subfolders, it gets more complicated. > You'd actually have to write (as Jeremy said) a Perl script using > Net:IMAP to push the message into their new mailboxes. I found Net::IMAP to suck. Mail::IMAPClient was much better, YMMV. > If it's just > a few users, each user can add the new IMAP account and just > drag/drop the messages into their new folders. that's how I'd do it :) -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
Re: [vchkpw] forwording mail's from qmail to ______ server
[EMAIL PROTECTED] wrote: > We are shifting one of mail server from qmail to Exchange server > for testing, ... my sympathies. You'll be back. > so how can i forward mails from qmail mail server to Exchange > server. Look at the qmail-remote manual page. http://qmail.geto.net/man/man8/qmail-remote.html If it's just POP mailboxes (not IMAP with subfolders), you can push the messages out using qmail-remote. Below are examples of how to remail messages in people's folders. Your script may not end up being exactly the same, but it should give you an idea as to qhat you need to do. #!/bin/sh PATH=/var/qmail/bin:/home/vpopmail/bin:$PATH # or whatever export PATH REMOTE=NEWSERVER.YOUR.DOMAIN [EMAIL PROTECTED] USERS="[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]" for user in $USERS; do dir=`vuserinfo -d $user` for subdir in new cur; do cd $dir/Maildir/$subdir || continue for msg in *; do qmail-remote $REMOTE $ADMIN $user < $msg done done done If you just have one domain using qmail and not vpopmail, just change directories to the domain and run: #!/bin/sh PATH=/var/qmail/bin:$PATH # or whatever export PATH REMOTE=EXCHANGE.YOUR.DOMAIN [EMAIL PROTECTED] for user in * do for subdir in new cur; do cd $dir/Maildir/$subdir || continue for msg in *; do qmail-remote $REMOTE $ADMIN [EMAIL PROTECTED] < $msg done done done If you need to preserve IMAP subfolders, it gets more complicated. You'd actually have to write (as Jeremy said) a Perl script using Net:IMAP to push the message into their new mailboxes. If it's just a few users, each user can add the new IMAP account and just drag/drop the messages into their new folders. -- Eric Ziegast