LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-31-2008, 07:54 AM   #1
PhntmArcher
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Question How would I block sending to specific email addresses using Sendmail?


Hello, first post here. How would I block sending to specific email addresses using Sendmail? One of my customers would like to be able to stop users from sending to specific email addresses. We have blocked reception of these addresses via Spam Control, but now they would like to stop the users from sending. Any help would be appreciated. (Using Suse Enterprise v10.)
 
Old 08-31-2008, 04:53 PM   #2
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 148

Rep: Reputation: 18
Hello,
I build a virtual machine to answer you because I don't use anymore sendmail I prefer postfix.

The best and easiest way, is to enter the routine below into "/etc/mail/access"
mailadr2avoid ERROR:"No mail please !"

Once you have modified that file, run "make".

if don't have make installed, you can directly execute "makemap hash /etc/mail/access.db < /etc/mail/access"

after that "service sendmail restart"

To test it, inside a console type "telnet host 25"
helo test.com
mail from:mailadr2avoid

you should get an error message

Last edited by Fantasio; 08-31-2008 at 05:02 PM.
 
  


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
Sendmail not sending to internet email addresses wstclair Linux - Newbie 1 03-21-2008 09:39 AM
How to block users from sending e-mail to specific domain satish_k Linux - Newbie 1 03-12-2008 10:53 PM
Sendmail: how to relay mails from specific addresses zWaR Linux - Server 1 07-17-2007 05:48 AM
Email sending problem when sent to some addresses tenzan Linux - Networking 2 09-19-2006 10:14 PM
block specific ip addresses paperdiesel Linux - Security 3 07-21-2004 11:47 AM


All times are GMT -5. The time now is 05:11 PM.

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