LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-01-2009, 09:09 PM   #1
thekillerbean
Member
 
Registered: Jan 2002
Distribution: Ubuntu 12.04.2 (Precise)
Posts: 89

Rep: Reputation: 16
Sendmail: block specific sender to specific recipient - How?


I'm trying to configure our mail server to block email from a specific sender reaching a specific recipient. In other words, if one of our employees is getting harassed by a 'stalker', how would one go about blocking, at the MTA (Sendmail) level, a specific sender email address from reaching a particular users inbox? We do not want to capture the email - simply block it before it consumes server resources.

The Sendmail server (MTA) is a front end to our Exchange server so no user accounts exist on the Linux server. We simply use it as a SPAM and Virus scanner then forward clean email to the Exchange server.

Any and all help appreciated!

Tia,
tkb.

Last edited by thekillerbean; 10-04-2009 at 06:28 PM.
 
Old 10-01-2009, 09:33 PM   #2
thekillerbean
Member
 
Registered: Jan 2002
Distribution: Ubuntu 12.04.2 (Precise)
Posts: 89

Original Poster
Rep: Reputation: 16
Solved

I read the Sendmail, 3rd Edition book and resolved the issue.

Mainly, I had to add
FEATURE(`check_compat')
in the /etc/mail/sendmail.mc file

Then I had to create the following entries
Compat:sender@domain.com<@>recipient@ourdomain.com DISCARD
in /etc/mail/access file

Easy as pie; well, after a bit of reading...

Cheers,
tkb.
 
Old 10-14-2009, 05:24 AM   #3
jmahto
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by thekillerbean View Post
I read the Sendmail, 3rd Edition book and resolved the issue.

Mainly, I had to add
FEATURE(`check_compat')
in the /etc/mail/sendmail.mc file

Then I had to create the following entries
Compat:sender@domain.com<@>recipient@ourdomain.com DISCARD
in /etc/mail/access file

Easy as pie; well, after a bit of reading...

Cheers,
tkb.


After doing that its not working can you tell me step by step

J Mahto
 
Old 10-14-2009, 06:21 AM   #4
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 241

Rep: Reputation: 51
Quote:
Originally Posted by jmahto View Post
After doing that its not working can you tell me step by step

J Mahto
Hi,

this is the step by step instructions for you: http://docstore.mik.ua/orelly/other/...-7-sect-5.html

Take a look the "FEATURE(`check_compat')" part.

Laz
 
Old 10-15-2009, 02:00 AM   #5
jmahto
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by okcomputer44 View Post
Hi,

this is the step by step instructions for you: http://docstore.mik.ua/orelly/other/...-7-sect-5.html

Take a look the "FEATURE(`check_compat')" part.

Laz


Thanking you for your post , but we need something diffrent from this
basically we need to block any entire domain and realy some email IDs of such domain like

Emails should not relay to xyz domain except some ids of such domain

abc@xyz.com should relay but

other Ids should not


Thanks and Regards,

J Mahto
 
Old 10-15-2009, 08:19 AM   #6
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 241

Rep: Reputation: 51
Quote:
Originally Posted by jmahto View Post
Thanking you for your post , but we need something diffrent from this
basically we need to block any entire domain and realy some email IDs of such domain like

Emails should not relay to xyz domain except some ids of such domain

abc@xyz.com should relay but

other Ids should not


Thanks and Regards,

J Mahto
That is easy too just put the address into access file and discard it or reject it.

Quote:
From:spammer@some.dom REJECT
To:friend.domain RELAY
Connect:friend.domain OK
Connect:from.domain RELAY
From:good@another.dom OK
From:another.dom REJECT
like that.

Ref.: http://www.sendmail.org/m4/anti_spam.html

Laz
 
Old 07-13-2010, 04:13 AM   #7
jmahto
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
httpd-2.2.3 | error - suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

I am installing the centos 5.4 and start the services of httpd, mysqld, and squid. After that i am configure the mysar (Squid reporting tool). After that when i am restart the service httpd its show --- FAILED. and after that i see the the /var/log/httpd/error_log ---->

[Tue Jul 13 12:11:15 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)


Its shows the above error. i am not able to start the httpd services.

Please suggest me.

Thanks in advance.

J Mahto.
 
  


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
How to force specific domain or user specific emails to proces in sendmail 8.13.5 FC5 peanutsa Linux - Newbie 1 03-22-2009 05:33 AM
How would I block sending to specific email addresses using Sendmail? PhntmArcher Linux - Newbie 1 08-31-2008 04:53 PM
How to block specific IPs? cranium2004 Linux - Networking 3 04-01-2005 09:02 AM
block specific ip addresses paperdiesel Linux - Security 3 07-21-2004 11:47 AM
Help with Sendmail filters for outgoing mail by sender/recipient gljoe Linux - Software 18 08-12-2003 08:56 PM


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