LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-03-2003, 07:52 AM   #1
kudos
Member
 
Registered: Oct 2002
Location: UK
Distribution: Fedora 4
Posts: 90

Rep: Reputation: 15
sorting my mail after fetchmail has got it.


Hi

my setup is as folows

fetchmail picking up mail from a pop3 folder and downloading it into the user setup to do this.
sendmail handaling all the mail folders etc
i can send mail to the outside world and they can reply to it

the pop3 account is a catch-all

basicly what i am looking for is to be able to pick up my mail from the pop3 account as i am now and then be able to sort it all into the users mail folders on my local system acount to who the mail is for!

whats the best way to go about this and how should i do it?

also who do i idealy need to run the fetchmail script as? i am running it as my self on my syetm should this be run by root or someone if i am to sort it to all the users?

many thanks

kudos
 
Old 01-03-2003, 12:25 PM   #2
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
Quote:
basicly what i am looking for is to be able to pick up my mail from the pop3 account as i am now and then be able to sort it all into the users mail folders on my local system acount to who the mail is for!
Check this:

http://sdb.suse.de/en/sdb/html/fetchmail.html

Relevant is the multidrop mode part. Basically what you have to do is set up emailadresses or aliases for the users that receive mails via that pop account.

Quote:
also who do i idealy need to run the fetchmail script as? i am running it as my self on my syetm should this be run by root or someone if i am to sort it to all the users?
As far as I know, it can be run by anyone since all it does is get the mails from the remote system (any user can do that) and hand them over to your mta (anyuser should be able to do that again). On my System, I have a fetchmail user and the fetchmail script is started at boot time with that user. Only that user and root of course can read the fetchmail.conf for security Reasons.

I don't have a multidrop mailbox though, so I don't know if the suse documentation works.

Hope that helped a little.
 
Old 01-03-2003, 09:54 PM   #3
speck
Member
 
Registered: Nov 2001
Location: California
Distribution: Slackware 14.1
Posts: 272

Rep: Reputation: 54
Something like "procmail" is what you're looking for, but alot of people hate the syntax. If you just want to do simple sorting (by subject, from, etc), then the procmail recipe will be pretty easy to set up.

It's really popular to have a Fetchmail+Procmail+Mutt configuration to download+sort+read email. If you search Google with "fetchmail procmail mutt" you'll see a bunch of examples for procmail.

Speck
 
Old 01-04-2003, 04:06 AM   #4
kudos
Member
 
Registered: Oct 2002
Location: UK
Distribution: Fedora 4
Posts: 90

Original Poster
Rep: Reputation: 15
yes all i am looking to do is sort my mail account to the TO address which will say witch user gets the mail.
 
  


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
Fetchmail and mail forwarding mikz Linux - General 1 03-12-2005 10:37 AM
Q-Mail fetchmail Authfail emailssent Linux - Networking 0 01-13-2005 07:36 PM
procmail mail sorting FLOODS Linux - Networking 1 11-26-2004 09:12 PM
Sorting mail into folders? cli_man Linux - Software 4 11-07-2003 10:20 AM
Fetchmail flushing mail unclejessie77 Linux - Software 3 11-04-2003 11:53 AM


All times are GMT -5. The time now is 05:30 PM.

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