LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-15-2009, 07:35 PM   #1
viento
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Rep: Reputation: 1
Question Safe list for disarmed emails for MailScanner (with Postfix)


Hi all, my first post here. Recently i just installed Postfix with MailScanner (which control SpamAssassin and ClamAV) for the content filtering. Everything looks good now, however, i think MailScanner is so good that it {Disarmed}-ing most of our HTML emails.

So the question is, how to add safe list, (can be domain based or email address based?) to the MailScanner setup (or Postfix)?
 
Old 04-16-2009, 12:13 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
in MailScanner.conf
Is Definitely Not Spam = /etc/MailScanner/rules/spam.whitelist.rules

in /etc/MailScanner/rules/spam.whitelist.rules
put the mailaddres you want to whitelist.
 
Old 04-16-2009, 03:25 PM   #3
ABL
Member
 
Registered: Mar 2005
Location: NYC
Distribution: CentOS 5
Posts: 54

Rep: Reputation: 16
Quote:
Originally Posted by viento View Post
Hi all, my first post here. Recently i just installed Postfix with MailScanner (which control SpamAssassin and ClamAV) for the content filtering. Everything looks good now, however, i think MailScanner is so good that it {Disarmed}-ing most of our HTML emails.

So the question is, how to add safe list, (can be domain based or email address based?) to the MailScanner setup (or Postfix)?
I'm not sure you want to add these sites to the whitelist, as someone could spoof the addresses. Additionally, there is another field you would need to check, especially, if you are having issues with mailing lists in MailScanner.conf:
That field is: Ignore Spam Whitelist If Recipients Exceed = 100


You may want to check out the Allow IFrame Tags, Allow Form Tags, Allow Script Tags, Allow WebBugs, and Allow Object Codebase Tags directives in MailScanner.conf. You may want to use files here, rather than the standard "yes", "no", and "disarm". This way you could allow these tags for certain domains/email addresses, but they would still be scanned for spam.

I *believe* you can point all of these to the same filename, so you only have one file to modify.

Regards,
Alden
 
Old 04-16-2009, 11:46 PM   #4
viento
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 1
Talking

Quote:
Originally Posted by repo View Post
in MailScanner.conf
Is Definitely Not Spam = /etc/MailScanner/rules/spam.whitelist.rules

in /etc/MailScanner/rules/spam.whitelist.rules
put the mailaddres you want to whitelist.
Thanks repo - I thought that whitelist is for spam only. Maybe need to make it clear somehow in that filename or in the documentation.
 
Old 04-17-2009, 12:05 AM   #5
viento
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ABL View Post
You may want to use files here, rather than the standard "yes", "no", and "disarm". This way you could allow these tags for certain domains/email addresses, but they would still be scanned for spam.
What do you mean by use files? Are you saying that we can set, let say block 'Allow Form Tags' for particular domains, but allow for any source than the ones in /etc/MailScanner/rules/spam.whitelist.rules?
 
Old 04-17-2009, 10:25 AM   #6
ABL
Member
 
Registered: Mar 2005
Location: NYC
Distribution: CentOS 5
Posts: 54

Rep: Reputation: 16
Quote:
Originally Posted by viento View Post
What do you mean by use files? Are you saying that we can set, let say block 'Allow Form Tags' for particular domains, but allow for any source than the ones in /etc/MailScanner/rules/spam.whitelist.rules?
Actually, I think it would work better the other way; that is, block all domains except the ones you want to allow. But either way will work.

For example, you might set up your file--let's call it, formtags.rules--like this:
From: mydomain.com yes
From: virusorspamdomain.com no
From: default disarm

Last edited by ABL; 04-17-2009 at 10:27 AM.
 
Old 04-17-2009, 03:01 PM   #7
ABL
Member
 
Registered: Mar 2005
Location: NYC
Distribution: CentOS 5
Posts: 54

Rep: Reputation: 16
Quote:
Originally Posted by ABL View Post
Actually, I think it would work better the other way; that is, block all domains except the ones you want to allow. But either way will work.

For example, you might set up your file--let's call it, formtags.rules--like this:
From: mydomain.com yes
From: virusorspamdomain.com no
From: default disarm
If you use this, make sure that you use tabs bwtewen arguments, not spaces. E.g.,
From:<tab>mydomain.com<tab>yes
 
  


Reply

Tags
mailscanner



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
Postfix: reject emails for list of recipient domains zaheer99 Linux - Server 3 11-11-2016 10:23 AM
MailScanner/postfix chroot waelaltaqi Linux - Software 0 02-27-2007 09:15 AM
Mailscanner - Postfix leandrob Linux - Software 0 06-09-2006 08:15 AM
Postfix with MailScanner wmartino Linux - Security 3 03-14-2004 11:30 AM
mailscanner + postfix rafalek Linux - Software 0 02-10-2004 11:52 AM

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

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