LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-30-2016, 12:20 PM   #1
TBotNik
Member
 
Registered: May 2016
Posts: 387

Rep: Reputation: Disabled
Making GMail IMAP work in PostFix


All,

Have reached my limit working with Thunderbird, it's filtering, processing and directory command.

So I installed PostFix so I can call all 50 email accounts, receive, filter, process, redirect to appropriate directories and then send that output to TBird.

However cannot find anything definitive on setting up read of GMail, through IMAP. Since over 30 of my email accounts are GMail, this is a critical piece.

Hoping someone can direct me to the right resource.

Thanks!

TBNK
 
Old 11-30-2016, 12:25 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
It isn't clear to me "what" you want to use to connect to gmail? Thunderbird?
 
Old 11-30-2016, 12:45 PM   #3
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
You did not make it clear if Postfix is installed on the same machine or on a VPS? By the way, what you need is 'relayhost' directive. You can found tons of info over the Internet how to set it up. Remember, your password is going to be stored in plaintext.
 
Old 11-30-2016, 05:51 PM   #4
TBotNik
Member
 
Registered: May 2016
Posts: 387

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
It isn't clear to me "what" you want to use to connect to gmail? Thunderbird?
szboardstretcher,

No obviously I need PostFix to read all 30 of my GMail accounts, which use POP/IMAP to read them, but can find absolutely nothing on how to configure PostFix for either protocol.

Actually, from what I read, it may be FetchMail that needs to read these into PostFix. However as PF noobie, not sure about anything any of PostFix and it's supporting pieces do, so clueless!

Cheers!

TBNK

Last edited by TBotNik; 11-30-2016 at 06:00 PM.
 
Old 11-30-2016, 05:54 PM   #5
TBotNik
Member
 
Registered: May 2016
Posts: 387

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by c0wb0y View Post
You did not make it clear if Postfix is installed on the same machine or on a VPS? By the way, what you need is 'relayhost' directive. You can found tons of info over the Internet how to set it up. Remember, your password is going to be stored in plaintext.
c0wb0y,

I read up on relayhost, and it may just be my noobie stupidity, but seems totally irrelevant to what I'm doing, and matter of fact none of the materials on relayhost explain what it does, so unless you already know what it does, you can not use it at all!

Of course I'm open to an education, because I can't get it from the manuals.
This, by the way, is my 3rd attempt to install/use PostFix and I always hit the wall hard on this app. The documentation I feel is the problem, as way to many assumptions about ones knowledge level make it cryptic, at best, so no amount of reading causes any absorption, as they are definitely talking a foreign language!

Cheers!

TBNK

Last edited by TBotNik; 12-01-2016 at 08:02 PM.
 
Old 12-02-2016, 01:29 AM   #6
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
As I said before, relayhost is what you need. And because you also want some mail routing, you would probably need a local delivery agent such as procmail, maildrop or Dovecot LDA.

Not to underestimate you or something, may I ask if do you have an idea how mail server works?
 
Old 12-02-2016, 02:44 AM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,716

Rep: Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554
Postfix is a Mail Transfer Agent (primarily SMTP) and has zero to do with POP or IMAP or "reading" gmail.

Fetchmail (or getmail) is probably what you want to liberate your mail from gmail.

You will then need at least a Local Delivery Agent but could also use a local MTA such as Postfix, but really, that is a lot more complexity than you imagine and, tbh, just using Tbird directly, as you currently are, is probably an order of magnitude easier to manage.
 
Old 12-05-2016, 11:52 AM   #8
TBotNik
Member
 
Registered: May 2016
Posts: 387

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by c0wb0y View Post
As I said before, relayhost is what you need. And because you also want some mail routing, you would probably need a local delivery agent such as procmail, maildrop or Dovecot LDA.

Not to underestimate you or something, may I ask if do you have an idea how mail server works?
c0wb0y,

Not really, always been only on the mail client side of things, till I started messing with PHPList, but still do not see how all the parts fit together. Really need a flow chart to understand this and how all the parts fit together.

Did find info, finally on setting up POP and IMAP in fetchmail, which I now understand is the tool PostFix needs to gather emails from other external email accounts, and PostFix itself is the mail server for a domain you want. Not sure if that means it has to registered somewhere and whether there is a cost with that or not.

Cheers!

TBNK
 
Old 12-05-2016, 12:10 PM   #9
TBotNik
Member
 
Registered: May 2016
Posts: 387

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Postfix is a Mail Transfer Agent (primarily SMTP) and has zero to do with POP or IMAP or "reading" gmail.

Fetchmail (or getmail) is probably what you want to liberate your mail from gmail.

You will then need at least a Local Delivery Agent but could also use a local MTA such as Postfix, but really, that is a lot more complexity than you imagine and, tbh, just using Tbird directly, as you currently are, is probably an order of magnitude easier to manage.
descendant_command,

No I exceeded the capability of TBird over 8 years ago. I have 50 email accounts. I get 2,000-5,000 emails daily. From these I need to:

1.) Fetch mail from each account,
2.) Determine the folder for it (over 1,000 folders & some mails need to be in multiple folders),
3.) Automatically create new folders for new recruiting/HR contacts,
4.) Send automated replies by company or topic, but not for all inbound mail,
5.) Send emails by topic or company to my "Important" folder,
6.) Synchronize all emails across 20 machines,
7.) Allow TBird to read the modified/processed email as one email account, instead of 50,
8.) Create filtering/processing rules on the fly, including automation of rules creation,
9.) Automation of incoming "product" emails to generate "contacts" in my "SugarCRM" vendors section,
10.) ID "Service Ticket" emails for correct service processing to "osTicket".
and other things needed later on!

What I read, I can get all the processing done that I want done in PostFix, but not sure if that is PostFix itself or PostFix plus addons. From what I'm reading about FetchMail, sounds like it's PostFix+!

Cheers!

TBNK

PS
The auto sendouts have to process through PHPList and additionally want to run PHPList output to/through PostFix to throttle sendouts, so as not to break the dumping parms set by most "mailout" services.

Last edited by TBotNik; 12-05-2016 at 12:14 PM.
 
Old 12-05-2016, 12:57 PM   #10
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
Quote:
No I exceeded the capability of TBird over 8 years ago. I have 50 email accounts. I get 2,000-5,000 emails daily. From these I need to:
Is that even humanly-possible to read 2-5000 emails/day?

I am sure procmail can do that for you. But you would spend quite a bit of time cooking a recipe for it. And if you haven't configured and managed a mailserver before, it can be quite a challenge, let alone securing it.

By the way, are you a marketing company, or ...?

Last edited by c0wb0y; 12-05-2016 at 12:58 PM.
 
Old 12-09-2016, 03:08 PM   #11
TBotNik
Member
 
Registered: May 2016
Posts: 387

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by c0wb0y View Post
Is that even humanly-possible to read 2-5000 emails/day?

I am sure procmail can do that for you. But you would spend quite a bit of time cooking a recipe for it. And if you haven't configured and managed a mailserver before, it can be quite a challenge, let alone securing it.

By the way, are you a marketing company, or ...?
c0wb0y,

No! That is exactly why I have to have better mail processing that TBird can provide!

Example:
I get 200-500 new product announcements daily. I will never read them, but will not delete, since I might need to search for one of these later, so have to move these to my "Products" folder.

Then I get 200+ daily emails for training, which again I do not read, but must move to my "Taining" folder.

I also get 500+ emails for services, mostly from off-shore companies, but since none can pass my simple coding test, again only stored for references in "/Vendors/Off Shore/".

And I get 500+ HR/Recruiting emails, which have to have an auto-reply, then stored in "/Recruiters/Their Comp Name/". The company name folder has to be autogenerated if not already existing. If/when they properly respond to the autoreply (must be a priority level email + must have 2 email addresses), that is the only time I read an HR/Recruiting email.

Hope that explains my delimna as of course I never ever will read all of these!

TBird can not do this so that is why I'm trying to learn and use PostFix as it says I can create custom scripts to call and process mails any way I want. Am I right?

Cheers!

TBNK
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix: work well with yahoo, hotmail, gmail, but not work with some domain computerz_man Linux - Server 1 04-05-2013 01:58 AM
Problem in making postfix to work out of the localhost pendrive Linux - Server 3 04-06-2012 09:16 PM
Mass Gmail Download / IMAP server jbiggs12 Linux - Server 1 10-28-2011 02:28 PM
Courier IMAP Functionality: Delete w/o Marking (similar to Gmail IMAP)? LiquidKernel Linux - Software 1 04-24-2010 12:10 PM
Making GMail Work With the Linux Email Client Evolution paragkalra LinuxAnswers Discussion 1 02-18-2007 08:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration