LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-16-2005, 08:42 AM   #1
skyfly
LQ Newbie
 
Registered: Apr 2004
Location: Johannesburg, South Africa
Distribution: Redhat Fedora Slackware
Posts: 7

Rep: Reputation: 0
procmailrc filter for alias


I've got a box running Fedora Core 3 with Sendmail. I have an alias in my /etc/aliases file that points to a group of usernames. I need to be able to send email to this group, but only from a specific few user accounts, thus blocking anyone else trying to send email to this email address. I have tried a few procmailrc rules, but no luck. Can anyone help me, please?
 
Old 05-19-2005, 04:48 AM   #2
skyfly
LQ Newbie
 
Registered: Apr 2004
Location: Johannesburg, South Africa
Distribution: Redhat Fedora Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Cool Simple procmailrc alternative to mailing list moderator

OK, I figured it out. It is actually quite simple.

# Only allow mail from certain individuals to thelist@mydomain.com
:0:
* ^From:.*(fred|john|frank|shaun)
* ^To:.*thelist
$DEFAULT
#Delete the rest trying to send email to thelist@mydomain.com
:0:
* ^From:.*
* ^To:.*thelist
/dev/null


"Never tangle with a geek when source code is on the line."
--- Frank Sorenson
 
  


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
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 12:40 AM
.procmailrc jayakrishnan Linux - Networking 0 11-19-2005 02:13 AM
Procmailrc file how many do I Need ?? wylie1001 Linux - Software 2 09-07-2005 07:20 PM
procmailrc davidsrsb Slackware 3 06-15-2005 11:07 AM
Spam filter to external mail filter deadlock Linux - Software 1 06-16-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:16 AM.

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