| Welcome to the Zimbra :: Forums! | |
Welcome, if you would like to post a comment please register.
We also encourage you to explore all things Zimbra with our team and members of the community.
|  | | 
09-01-2006, 06:30 AM
| | Zimbra Consultant & Moderator | |
Posts: 19,655
| | Quote: |
Originally Posted by rungsan I have tested with Sun JES Messaging by following fetchmail config.
poll mail.oldmail.com port 143 protocol IMAP user user1@oldmail.com password 'password' smtpname user1@newmail.com folder "Sent" fetchall keep
The result is all messages in Sent folder are fetched to Inbox in newmail and Received date are changed to curent time. How can I migrate Sent to Sent not to Inbox and not change received date? | You need to use imapsync to migrate mail and keep the original dates, do a search of the fourms and wiki for information on how to use imapsync.
__________________
Regards
Bill
| 
09-01-2006, 05:52 PM
| | Zimbra Employee | |
Posts: 1,434
| | imapsync should work better for you... You'll probably want to use imapsync instead. Search the forums for details! | 
06-14-2007, 07:15 AM
| | | Fetchmail and Zimbra Received Date Hi all - I didn't want to make a new thread, so I resurrected this one.
I've got zimbra (4.5.5) running fine on Ubuntu Server 6.06lts, and I'm using fetchmail to aggregate my multiple mail accounts, setup through webmin.
My question is this, regarding the web interface: everything seems to be working properly, except Zimbra is reporting messages as being received when fetchmail polls the mail servers, not the original time the message was sent. Now, the original time the message was sent is still in the header, and it is listed in the reading pane "sent by" field. However, in the list of messages itself, in the "Received" field, the time and dates are shown as the time of fetchmail polling (in my case, every 15 minutes) and not the original send time.
Now the real oddity - I ran zimbra in a test setup under Ubuntu Desktop 6.10 for about a month and I didn't notice this happening. As a matter of fact, I'm fairly certain the list of messages was showing the original send date as found in the header.
Any ideas? I understand Zimbra's MTA is receiving the mail at the time fetchmail is polling - and hence that's when the message is actually "being received" by Zimbra - but I swear this wasn't the functionality in my test.
Thanks!
Last edited by javamon; 06-14-2007 at 07:31 AM..
| 
05-20-2009, 12:45 AM
| | | fectchmail not required in Zimbra Logic of fetchmail is taken care by zimbra, i guess cause in particular accounts preferences , there is way of combining internal and external acount, so it solves the purpose of fetchmail
Thanks zimbra  | 
07-01-2009, 03:43 AM
| | | Fetchmail Script OK Quote:
Originally Posted by marcmac NOTE: this should all happen on an MTA server, or the deliveries will fail (eg, server should be running the mta service)
I've attached a fetchmail config creation script to this post - remove the .txt extension, make it executable, and you can use this for account aggregation.
(All of this can be done as the zimbra user)
Here how it works - you use it to configure fetchmail to grab a number of external accounts, and deliver them to a local account: Code: zmfetchercfg -a -u account@remote.domain.com -H remote.server.com:993 -l account@zimbra.local.com -p 'remote_pass' -s -P IMAP -f "Inbox" -k -c /opt/zimbra/conf/my_fetchrc
zmfetchercfg -a -u account@remote.domain.com -H remote.server.com:993 -l account@zimbra.local.com -p 'remote_pass' -s -P IMAP -f "Work/Other folder" -k -c /opt/zimbra/conf/my_fetchrc
zmfetchercfg -a -u gmail.user@gmail.com -H pop.gmail.com:995 -l other_account@zimbra.local.com -p 'remote_gmail_pass' -s -P POP3 -k -c /opt/zimbra/conf/my_fetchrc
chmod 710 /opt/zimbra/conf/my_fetchrc This sets up 3 accounts - 2 IMAP from the same server (different folders) and a pop account from gmail (delivered to a different local user). The -k tells it to leave the mail on the server. Also, all of my accounts use SSL to connect - the '-s' flag. If you don't need that, you can omit it (but you'll probably have to change the ports, too).
To test it out Code: HOME=/some/dir/I/can/write/to fetchmail -v -c -f /opt/zimbra/conf/my_fetchrc If everything looks good, remove the '-c' and it will really grab the mail.
Things to be careful about : the local account (-l option) needs to exist, or you'll bounce all your mail, which is bad.
Adding the -d option to the fetchmail call will cause this to run as a daemon, and periodically check your mail.
The folder options apply to the remote account, NOT the local account - if you want to control where it gets delivered, set up a filter.
OTHER STUFF:
Yes, this is horribly insecure. Yes, you're going to be storing your email passwords on disk in an easily readable format. This is more intended for the home/hobby user, not for any serious enterprise deployment. | i managed to follow all that you said and it worked fine, i am now left with 1 Question, the my fetchmail script is taking emails from pop.gmail.com (POP3) so when i log into the gmail.com account via the web, im seing that the emails are still in my gmail account although i have managed to fetch them to my local email-server. isnt there a way where by they are automatically deleted from Gmail so that I dont have to visit gmail to delete them afterwards?
regards
buggz | 
07-01-2009, 03:49 AM
| | | Change the lower case to upper case and it will remove the emails from the remote server. A quick search for fetchmail, via any reputable engine, would have found that 
__________________ | 
07-01-2009, 07:53 AM
| | | Quote:
Originally Posted by uxbod Change the lower case to upper case and it will remove the emails from the remote server. A quick search for fetchmail, via any reputable engine, would have found that  | i have tried to Put the Capital F for flush, but its not working
if i say vi /opt/zimbra/conf/my_fetchrc i get, poll pop.gmail.com port 995 protocol POP3 plugin "openssl s_client -quiet -connect pop.gmail.com:995" user myaccount@gmail.com password ' mypassword' smtpname bonnie@bbszw.com keep
i see that automatically a keep is put at the bottom, so i had tried to remove it and put a flush there but stil the emails keep remaining in my gmail account, fetchmail -d 900 -F -v -f /opt/zimbra/conf/my_fetchrc is this the correct way of doing it? i need it to run as a Daemon underground after every 15 minutes but deleting the mails from my gmail account
regards
buggz | 
07-01-2009, 08:46 AM
| | | Put it in the fetchrc file as I think that over writes the command line.
__________________ | 
07-02-2009, 03:30 AM
| | | maybe gmail has a problem you know i have tried to use "flush" or "nokeep" via webmin, but still mesages are remaining in my gmail account, i think its a gmail problem, not the fetchmail script dont you think so?
buggz | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |