Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-31-2008, 08:54 AM   #1
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, 05:53 PM   #2
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 152

Rep: Reputation: 19
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"
mail from:mailadr2avoid

you should get an error message

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


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

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration