LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2006, 02:37 AM   #1
betchai
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
how to allow a particular email and block the rest


Hi,
I am not familiar with Sendmail in Linux Fedora Core. I would like to allow a particular e-mail in a specific email account and block the rest,how would I do that. What are the commands to be used. It is of much help if you can provide me a step by step procedure since I have a little knowledge on this area. Thank You
 
Old 09-27-2006, 02:46 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I can't really understand what it is you are trying to accomplish.

Do you want to send an email to a specific address, but not any other address? Do you want only 1 email account on the system to be able to receive all email sent to a particular domain? Do you want only 1 email address to receive email on a given system and all other email to be silently dropped or rejected?

Could you elaborate on what you want...

Thanks!

Cool
 
Old 09-27-2006, 03:09 AM   #3
betchai
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I would like to receive only e-mails from a certain sender and then block the rest. how would I do that? However, this would only be applied to a single account in the server.
 
Old 09-27-2006, 03:20 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You could do this with procmail, a rule like:
:0
* ^From: somebody@somewhere.com
.Inbox/

And trash anything else with a procmail trashing everything else:
:0
* ^From: *.*
/dev/null

Take note, I've not tested this, but from my understanding this should work. A few test emails should help to see if it actually does As procmail processes recipes in order, if you have these in this order, it *should* work.

You might get spam if the person is someone like:
root@yourdomain.com
that you allow through, just an FYI. I don't know of an easy way to get around that, other than to use spam checkers and then filter the spam through first, then apply these last procmail recipes. See:
http://www.ii.com/internet/robots/procmail/qs/
For more info on using procmail recipes.

One last thought:
~/.procmailrc (and possibly ~/.procmail/) is where these recipes go, this will only affect the user who has them in their home directory.

Good luck!

Cool
 
Old 09-27-2006, 03:41 AM   #5
betchai
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
ok.thanks a lot.
 
  


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
block extesions on email server juniox Linux - Security 1 03-07-2006 12:36 PM
Block Email Attachments sami.ma Linux - Security 2 01-07-2006 02:28 PM
Block emails which has no 'from email address' using qmail linuxharry Linux - Software 16 03-18-2005 09:11 AM
allow certain sites and block rest all of them mcgrath Programming 1 11-24-2004 10:53 AM
DESPERATE : Iptables , permit know MAC , block rest. ranjan303 Linux - Networking 3 12-14-2003 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:56 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