hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : How To: Prevent spoof emails from being sent from your server! (exim only)
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

How To: Prevent spoof emails from being sent from your server! (exim only)

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-27-2005, 08:53 PM
PhilG PhilG is offline
Web Hosting Evangelist
 
Join Date: Feb 2003
Posts: 543

How To: Prevent spoof emails from being sent from your server! (exim only)


How-To: (exim only) Prevent paypal, ebay spoofs for your server!

This how-to prevents or at least makes it harder for spoof emails to be sent from your servers. It simply checks if the email is being sent from the localhost and if the reply to address has been set to a know spoof domain.

ok the work starts here:

Open the Runtime configuration file for Exim:

Code:
vi /usr/exim/configure
and add

Code:
system_filter = /usr/exim/exim.filter
close the file and now create the exim.filter file

Code:
vi /usr/exim/exim.filter
and paste the following into it

Code:
# Exim filter

logfile /var/log/exim_mainlog

if $received_protocol is "local" and
        ($header_from contains "@ebay.com" or
        $header_from contains "@paypal.com")
then
        logwrite "$tod_log $message_id => Outgoing mail with reply address $header_from caught. Email sent to black hole."
        seen finish
endif
This code should work on all systems running exim 4.x and allows alot of room for sophistication. More ideas can spawn off this such as checking for $header_body etc.

I would love to hear your feed back!

NOTE: if you wish to duplicate this information please link to dev-central.com.

Reply With Quote


Sponsored Links
  #2  
Old 05-01-2005, 09:01 PM
wheimeng wheimeng is offline
Web Hosting Master
 
Join Date: Feb 2003
Location: Kuala Lumpur, Malaysia
Posts: 4,970
Hm, /usr/exim doesn't even exist?

Reply With Quote
  #3  
Old 05-02-2005, 12:39 AM
PhilG PhilG is offline
Web Hosting Evangelist
 
Join Date: Feb 2003
Posts: 543
Your exim directory is dependant on the installation. Do a "locate exim/bin" to find the exim files.

Reply With Quote
Sponsored Links
  #4  
Old 05-02-2005, 12:52 AM
BizB BizB is offline
Web Hosting Evangelist
 
Join Date: Jul 2003
Posts: 526
i thoght exim has an option to only allow loged in users to send emails
unless you mean that users on the server try to send spoof mails ?

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
A Look at the New WHM Interface in Version 11.34 of the cPanel Hosting Control Panel Web Hosting News 2012-11-12 12:57:03
eleven Report Finds Online Casinos Most Popular Spam Topic in November Web Hosting News 2011-12-12 21:58:22
Security Firm eleven Report Finds 89 Percent Spam Increase Since July Web Hosting News 2011-10-12 19:04:26
StartSSL Suspends Certificate Services Following Security Breach Web Hosting News 2011-06-22 14:48:10
Hacker Group LulzSec Attacks Nintendo, FBI Affiliate Security Firm InfraGard Web Hosting News 2011-06-06 14:33:27


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?