LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , , , , , , ,

Reply
 
Thread Tools
Old 06-18-2009, 09:43 AM   #1
scheidel21
Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 713
Thanked: 20
Postfix - Want to block certain foreign domains


[Log in to get rid of this advertisement]
Hi all,

I am running a spam filter on debian lenny 5.1 with postfix, amavis-new, spamassassin, and clamav. It works pretty well but I would like to finish tweaking it to minimize the mail getting quarantined. It really isn't quarantining anything that isn't spam, except for an occasional list mailer. However, the quarantine is huge, and takes a while to go through. I noticed that much of the spam is coming from foreign country tld's like .cz is there anyway to have postfix run a check on the header and if the email, or smtp origination is from a server from a foreign tld have it just rejected. I can whitelist anything if need be in the future but as of now we don't do any business overseas and don't need to worry about blocking legit email.

I think this should be possible, however, I am unsure of the syntax for the file, where to put it and if wildcards are possible in domain blocking like

Code:
*.cz REJECT
Thank you all,

Alex
scheidel21 is offline  
Tag This Post , , , , , , ,
Reply With Quote
Old 06-19-2009, 01:47 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
Access tables are probably as good as anything

http://www.postfix.org/access.5.html

.cz REJECT
billymayday is offline     Reply With Quote
Old 06-19-2009, 09:31 AM   #3
scheidel21
Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 713
Thanked: 20

Original Poster
Thanks I'll try that and see if it works
scheidel21 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Block Domains (Postfix) Carlwill Linux - Server 7 08-21-2009 05:52 PM
How to Block domains in sendmail?? lhx820000 Linux - Newbie 2 06-17-2009 06:22 AM
Postfix sending from different domains ssfrstlstnm Linux - Server 5 04-18-2007 09:10 AM
postfix alias domains csaunders Red Hat 1 04-17-2007 12:44 PM
Postfix - how do hosted domains download their mail from my postfix franschoek Linux - Software 1 04-01-2006 10:41 PM


All times are GMT -5. The time now is 08:31 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration