LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   sorting my mail after fetchmail has got it. (https://www.linuxquestions.org/questions/linux-general-1/sorting-my-mail-after-fetchmail-has-got-it-40182/)

kudos 01-03-2003 07:52 AM

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

dazk 01-03-2003 12:25 PM

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.

speck 01-03-2003 09:54 PM

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

kudos 01-04-2003 04:06 AM

yes all i am looking to do is sort my mail account to the TO address which will say witch user gets the mail.


All times are GMT -5. The time now is 01:12 PM.