LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-13-2006, 05:02 AM   #1
ec3042
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
Sendmail cfg question


A bit bored of getting spam sent to the standard "service", "root", "webmaster", etc., etc. accounts on my box.

I only have a handful of users on the box so i can configure manually, but how to i setup sendmail to ONLY allow incoming mail for valid usernames? I guess i'd still want "root" to be a vaild email address internally for system messages etc.

As is obvious from the title, i'm running sendmail

Many thanks in advance!
 
Old 08-14-2006, 03:08 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Sendmail is configured to have this behaviour by default. If you want catch-all it's something you would have turned on manually. The other stuff you're getting is probably because there are aliases configured in your default installation. Check /etc/aliases and comment out any you're not using - e.g. webmaster, postmaster, info, service, etc. Leave root though as it is a kosher account name.
 
Old 08-14-2006, 02:25 PM   #3
ec3042
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 0
OK, I'll try that, thanks. Anyway I can only allow root to receive emails from within my network, and reject mails from outside?
 
Old 08-15-2006, 03:10 AM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
There may be a way, I can't think of it off the top of my head. The only thing that immediately springs to mind would be to run some filtering program that filters out messages to root if received from a particular IP or range of IPs. Again though I don't know if such a program exists, though it's probably possible to write one - it's the same sort of filtering mechanism as a spam filter would use, only much less complex.
 
  


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
isolinux.cfg what´s wrong here? FreddyF Linux - Newbie 1 12-28-2005 01:27 PM
xu4: timidity.cfg jaakkop Linux - Games 1 10-11-2005 06:53 PM
whether my ks.cfg is wrong? iversion Linux - Newbie 1 08-02-2004 01:42 PM
xf86 cfg ?? wrat Debian 7 05-11-2004 07:16 AM
Example mrtg.cfg mijohnst Linux - Networking 1 01-09-2004 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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