LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-13-2017, 01:24 AM   #1
remcoluit
LQ Newbie
 
Registered: Mar 2017
Location: Netherlands
Distribution: Slackware
Posts: 15

Rep: Reputation: Disabled
Spam filter in front of Sendmail


I use EFA spam filter server in front of a Slackware server with Sendmail. The spam filter forwards the messages to the Sendmail server. The users are known on the Sendmail server and can send email through this SMTP server (with TLS and authenticated) by using port 25 from everywhere (mobile phones). So far so good.
The issue is with Sendmail that accepts mail from every host to deliver locally. I actually want Sendmail to be available for sending emails from local known users, but not delivering emails to local users other than from the spam filter server.
Although this is not being used by spammers for now (the MX record is the EFA spam filter) it is possible to send mail to local recipients without going through the spam filter if i set the receiving SMTP server manually with something like this: mailx -S smtp=x.x.x.x
 
Old 10-17-2017, 03:24 AM   #2
remcoluit
LQ Newbie
 
Registered: Mar 2017
Location: Netherlands
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: Disabled
Let me answer my own question. What i need to do was given in this topic: https://www.linuxquestions.org/quest...ateway-928331/

Add to the .mc file FEATURE(`delay_checks') and then run m4.
Restart Sendmail
Add to the access file the host from which i want to receive mail, localhost and all the other hosts, so:
192.168.1.100 RELAY
localhost RELAY
1 REJECT
2 REJECT
.
.
254 REJECT

Now with the delay_checks the authenticated users can send their emails from whatever host on the internet, non-authenticated users like spammers and other mailservers are blocked by the access list and my EFA server also non-authenticated is allowed by the access list. Tested it and works as i would expect.
 
  


Reply



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
[SOLVED] Spam filter not filtering spam properly Toasterman Linux - Server 1 07-31-2014 03:26 PM
spam filter that puts spam into spam folder? paul_mat Linux - Software 3 03-31-2009 04:18 AM
Using sendmail relay (SMART_HOST) through a spam filter laurat Linux - Newbie 1 11-03-2007 08:18 PM
spam filter Red Squirrel Linux - Software 3 06-24-2004 06:13 PM
Spam filter to external mail filter deadlock Linux - Software 1 06-16-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration