LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-09-2007, 05:49 AM   #1
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Rep: Reputation: 30
Process email on the pop3 server


Hi,

I want to access email on my pop3 server by username.

I need some program which will check the email on my pop3 server and junk it if the user does not exist.

If there is mail for userA, I want it left on the server. If there is mail for userB, I want it taken off the server and downloaded to my Suse 10.1 box for access locally.

Is there an application (preferably part of the Suse 10.1 distro) which would do this?

If so, is there a comprehensive howto on this?

Additionally, I wouldn't mind running a couple of rudimentary checks for spam on the emails on the server and junking them if they fail the tests.....
 
Old 05-09-2007, 10:47 PM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
I think what you're after maybe a job for fetchmail
http://fetchmail.berlios.de/
 
Old 05-10-2007, 12:51 AM   #3
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Yes,

I'm already using Fetchmail.

I use:
"poll pop.example.com with proto POP3
user general@example.com there with password 'my_password' is dave here"
which places the catch-all mail in the file /var/spool/mail/dave

I need to split it out to separate users as I've indicated.
 
Old 05-10-2007, 01:22 AM   #4
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Looking through the Fetchmail documentation again, I see there is provision for "Multidrops".

However, I'm not sure that this is what would be appropriate here.

There is only one user "general@example.com" with one password, but the mail must be split according to what is in the "TO" field (and the "CC" and other fields).

I know this can be done with Procmail but I would probably need to set up a user (procmail) as in "is user procmail here" and then process the /var/spool/mail/procmail file to split it into the correct recipient's mailboxes.

Does this sound like I'm going in the right direction? Ideally I would like to leave certain recipients' mail on the server, but if this is not possible.....
 
Old 05-10-2007, 10:44 AM   #5
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
Sorry, I've said "users" when what I mean are "recipients".

The mail box is on a server on the 'net and it needs to be downloaded and sorted as per the recipient in the "TO" field.

I know that procmail can do the sorting, I just need to know the mechanics of how fetchmail can place the mail where procmail can sort it....
 
  


Reply



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
email client cant recieve POP3 email johnharry Linux - Networking 8 12-27-2006 04:20 AM
What email program can work with email header on pop3 server TruongAn Linux - Software 0 01-13-2005 11:48 AM
Kmail Can't start process Pop3? Snump Linux - Software 0 11-05-2004 09:15 PM
Pre-processor to filter email on pop3 server prior to download tireseas Linux - General 1 09-20-2003 08:32 AM
Redhat Linux 6.2 – Email Delivered to Server but POP3 and IMAP Mailboxes show empty. RCorbet Linux - Software 0 04-14-2003 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:27 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
Open Source Consulting | Domain Registration