LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-18-2003, 02:04 PM   #1
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Rep: Reputation: 15
qmail: setting up alias to go to /dev/null?


I am trying to find a way to have all e-mail sent to a particular address to automatically be sent back or deleted. Either by sending it to /dev/null or by returning it to sender.

will simply creating a file called .qmail-address_to_block and putting a line in there that says /dev/null work?

i.e.

the .qmail-spam file will contain a line that says

/dev/null

so anything addressed to spam will go to /dev/null? Will that work? If not, how can I do this? Any help is appreciated. Thanks.
 
Old 11-18-2003, 03:07 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmmm...are you getting spammed like crazy? lol. Off the top of my head I do not know how you would automatically send all mail sent to the user spam to /dev/null. You could however create an alias for this user and then setup a cron job to delete all of that users email once a night or something.
 
Old 11-18-2003, 03:18 PM   #3
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Original Poster
Rep: Reputation: 15
Yeah, a client of ours is getting a lot of spam on one perticular e-mail address that they do not use. I like your idea though. I will create one account made solely for the purpose of collecting trash e-mail, then have it cleared out nightly in a cron job. Good thinking. Thanks!
 
Old 11-18-2003, 03:47 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Wow somebody actually like one of my ideas. I better bookmark this thread.
 
Old 11-18-2003, 03:50 PM   #5
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Original Poster
Rep: Reputation: 15
The thing I like about your ideas is that I can use the one user account to catch all the crap e-mail from any of the domains we host. I just have to specify that local account int he .qmail- file. It'll be my own blackhole e-mail account.

Thanks agian.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 12:46 PM
mv c:\WINDOWS /dev/null; mount /dev/hda treehead LinuxQuestions.org Member Intro 5 10-19-2004 08:53 AM
Qmail Alias Question LinuxHaven Linux - Software 2 03-26-2004 03:17 PM
/dev/null jon_k Linux - Hardware 5 07-16-2003 02:40 PM
Qmail - install - TOUCH not working in /alias ... chuch Linux - Newbie 2 02-15-2002 07:51 AM


All times are GMT -5. The time now is 04:47 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 Google+: linuxquestions
Open Source Consulting | Domain Registration