LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How would I block sending to specific email addresses using Sendmail? (https://www.linuxquestions.org/questions/linux-newbie-8/how-would-i-block-sending-to-specific-email-addresses-using-sendmail-666643/)

PhntmArcher 08-31-2008 07:54 AM

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.)

Fantasio 08-31-2008 04:53 PM

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


All times are GMT -5. The time now is 04:45 PM.