LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 04-26-2005, 01:31 PM   #1
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,183

Rep: Reputation: 98
trouble filtering mail with maildrop


Hi,

I'm having a few problems getting maildrop to filter mails correctly. I have fetchmail poll different email servers and download email from them and pass them onto maildrop for local delivery. I want then to put emails for a specific email address into a separate file, but whatever I try I always end up having all my mails sent to this file.

My .fetchmailrc file is as follows:
Code:
set postmaster philip
set bouncemail
set no spambounce

poll 'pop3.example1.org' with proto POP3 user 'user' there with password 'pass' is 'philip' here options fetchall antispam 501
mda "/usr/local/bin/maildrop -d philip"

poll 'pop.mail.example2.org' with proto POP3 user 'user' there with password 'pass' is philip here options fetchall antispam 501
mda "/usr/local/bin/maildrop -d philip"

poll 'imap.example3.org' with proto IMAP user 'user' there with password 'pass' is philip here options fetchall antispam 501
mda "/usr/local/bin/maildrop -d philip"
I have cron run the command `fetchmail -f /home/philip/.fetchmailrc`every so often to retrieve my email.

My .mailfilter file looks like this
Code:
logfile "maildrop-filter-log"

if ( /^To: me@myuni.ac.uk/:h )
{
  to "mbox/UniMail"
}

to  "mbox/Inbox"
when I get a mail from say me@regularaccount.com it goes to mbox/UniMail instead of mbox/Inbox. What am I doing wrong, I've seen sample .mailfilter files that look like this and it they claim it works

regards

Phil
 
Old 04-26-2005, 03:18 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,183

Original Poster
Rep: Reputation: 98
nevermind, sorted it - the windows end of line characters were causing the problems
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
sending mail to maildir -- maildrop kubicon Linux - Networking 4 02-06-2004 07:22 AM
Filtering mail messages on ISP's mail server broxtor Linux - Software 0 07-28-2003 02:47 PM
E-mail filtering miguelgarcia Linux - General 1 04-10-2002 06:43 AM
e-mail filtering piyer Linux - General 1 01-16-2002 07:11 PM


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