LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-31-2010, 06:42 PM   #1
fxars
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Sendmail: email redirection


I have a test application that sends out email. It's configured to send it through the sendmail installed on the local machine (distro: RedHat 4.8; sendmail version 8.13.1). The email addresses are external to the machine.

I would like to stop most of those emails. I can't use the /etc/aliases file, because that methodology only works for operating system addresses/userid's on the local machine.

I'd like to block certain addresses from getting emailed out, so that users don't get spam from a test server that's been "cloned" from a production server. On the other hand, I don't want to turn off email altogether.

I'm pretty sure that if I installed SpamAssassin I'd probably be able to rewrite certain addresses. But SpamAssassin is bloatware for what I want to do.

If native sendmail is not able to filter out from sending certain emails based on the "To: " header (in the envelope) is there an app that uses sendmail's milter API that will?

I've been away from heavy use of sendmail for awhile, so it had been awhile that I'd been on comp.mail.sendmail, but I notice that traffic is a fraction of what it used to be. Have sendmail users migrated to another forum? Any recommendations?

=== Al
 
Old 02-01-2010, 12:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can use access.db to reject these mails. Edit /etc/mail/access and add:
Code:
To:user@domain.com REJECT
To:another-user@example.com
Then rebuild the access database:
Code:
makemap hash /etc/mail/access < /etc/mail/access
Regards
 
  


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
Sendmail, spam redirection to different account Shinigami101 Linux - Server 1 11-13-2008 04:36 PM
EMail clients and sendmail PatrickNew Linux - Software 2 11-14-2007 10:48 PM
How sendmail for email to MS Exchange ather_36 Linux - General 1 01-17-2006 02:05 AM
Sendmail/DNS/no email! JeffreyKunkle Linux - Networking 4 08-30-2004 11:23 AM
Creating A Second Email Address For Email Account On Sendmail treedstang Linux - Software 1 04-27-2004 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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