The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to forward mail in /var/mail/username to external mail unitipon SUN Solaris 2 05-26-2008 09:20 PM
AIX printer filter blacksm AIX 4 08-29-2007 01:58 AM
Filter using awk arun_st UNIX for Dummies Questions & Answers 3 03-21-2007 04:20 AM
Filter passwd Topsurfer Shell Programming and Scripting 11 01-04-2005 11:42 PM
mail filter Kelam_Magnus Shell Programming and Scripting 13 01-25-2002 10:30 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-13-2004
collins's Avatar
Registered User
 

Join Date: Aug 2004
Posts: 43
Question Mail Filter

hai friends.

How can i filter the incoming mails to an individual folder.. I am using sendmail.

Thanks in advance
Collins
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-14-2004
Registered User
 

Join Date: Sep 2003
Location: Canada
Posts: 56
filter?
Reply With Quote
  #3 (permalink)  
Old 11-15-2004
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
http://userpages.umbc.edu/~ian/procmail.html

The above link is useful ; It is descibing how to use 'procmail'
which does filtering which u are looking for ;

I do n't have a chance to work on that as i don't have procmail in my system;
Reply With Quote
  #4 (permalink)  
Old 11-15-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
You can also use /etc/aliases (or /etc/mail/aliases) to specify aliases (as you'd expect!) that will redirect mail to "other" users mailboxes with sendmail. After any edits to the alias file, run newaliases. If you want to temporarily redirect a users e-mails, put a .forward file in their home directory containing the redirect email address.

This is all dependent on what your definition is of "filtering".

Cheers
ZB
Reply With Quote
  #5 (permalink)  
Old 11-16-2004
collins's Avatar
Registered User
 

Join Date: Aug 2004
Posts: 43
Sorry Guys....

Thanks for your responses.

Sorry I could not understand u'r answers... Let me explain you my complete need. I have a remove server. Let me consider that i have two mail accounts in it say,

a@myserver.com
b@myserver.com

I have created mail directories like yahoo for a@myserver.com and hotmail for b@myserver.com...

My need is that when-ever a@myserver.com gets mail from yahoo, it has to be directly delivered to yahoo folder in a@myserver.com. If b@myserver.com gets mail from hotmail it has to be directly delivered to hotmail folder in b@myserver.com and all the other mail of the respective users can be delivered to Inbox folder....

How should i do that and where can i configure these settings...

Thanks in advance
Collins
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0