LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-22-2008, 07:10 PM   #1
aot2002
Member
 
Registered: Dec 2003
Location: NY
Distribution: Ubuntu 7.10
Posts: 66

Rep: Reputation: 15
SOLVED* Gmail Imap Poll my Sent Folder Script?


I currently use gmail
I currently use corporate email (pop3)

Corporate allows me to download emails to gmail using pop3

Corporate drops all my emails i send using gmail as my mail server since they want to send emails through the corporate server

I refuse to move away from gmail interface and stick to these stringent rules they pose

I currently use Ubuntu and have been for quite some time

I installed fetchmail and was hoping there way a way to have it periodically poll using imap on gmail for my sent items

Then i can write the script if any new mail i sent out using corporate can be forced out through thier smtp server


Trouble so far has been ive not been able to successfully find a fetchmail script to poll my sent items in gmail? any links or guides with a simple example for this would help me a lot.

Last edited by aot2002; 03-23-2008 at 07:55 PM. Reason: title edit
 
Old 03-23-2008, 04:04 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
This is my fetchmailrc:
Code:
set postmaster "postmaster@mydomain.com"
set no bouncemail
set syslog

defaults
  smtpaddress "mydomain.com" fetchall

poll imap.gmail.com protocol imap:
  username "something@gmail.com" is "berhanie"
    password "secret" ssl
    folder "[Gmail]/Sent Mail"
    keep
    sslfingerprint "2E:52:DE:98:7F:07:A3:CB:43:9E:7B:77:51:60:0E:07"
The certificate fingerprints were obtains as follows:
Code:
berhanie@machine:~$ openssl s_client -connect imap.gmail.com:993 < /dev/null | openssl x509 -noout -md5 -fingerprint
...
MD5 Fingerprint=2E:52:DE:98:7F:07:A3:CB:43:9E:7B:77:51:60:0E:07

Last edited by Berhanie; 03-23-2008 at 04:05 PM.
 
Old 03-23-2008, 06:30 PM   #3
aot2002
Member
 
Registered: Dec 2003
Location: NY
Distribution: Ubuntu 7.10
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Berhanie View Post
This is my fetchmailrc:
Code:
set postmaster "postmaster@mydomain.com"
set no bouncemail
set syslog

defaults
  smtpaddress "mydomain.com" fetchall

poll imap.gmail.com protocol imap:
  username "something@gmail.com" is "berhanie"
    password "secret" ssl
    folder "[Gmail]/Sent Mail"
    keep
    sslfingerprint "2E:52:DE:98:7F:07:A3:CB:43:9E:7B:77:51:60:0E:07"
The certificate fingerprints were obtains as follows:
Code:
berhanie@machine:~$ openssl s_client -connect imap.gmail.com:993 < /dev/null | openssl x509 -noout -md5 -fingerprint
...
MD5 Fingerprint=2E:52:DE:98:7F:07:A3:CB:43:9E:7B:77:51:60:0E:07


I'll try that its funny because i tried everything except to use
[Gmail] with Sent Mail I'll let u know the results
 
Old 03-23-2008, 07:54 PM   #4
aot2002
Member
 
Registered: Dec 2003
Location: NY
Distribution: Ubuntu 7.10
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aot2002 View Post
I'll try that its funny because i tried everything except to use
[Gmail] with Sent Mail I'll let u know the results
Perfect thnks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Evolution and Gmail IMAP inbox email filtering. Marty McNamara Linux - Software 3 03-13-2008 09:13 PM
Easy configurations to download emails from gmail with IMAP, one per one as text frenchn00b Linux - General 2 11-30-2007 05:26 PM
A script within a folder to delete the folder, script, and the folder's contents Cyberman Programming 15 10-17-2007 07:32 AM
How to list gmail emails in box, with pop or imap (no delete on server), secured way? frenchn00b Linux - General 7 10-10-2007 04:59 AM
Poll remote POP, put into IMAP Server xrado Linux - Software 15 07-28-2006 06:20 AM


All times are GMT -5. The time now is 11:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration