[Mimedefang] Checking for valid message format

2005-09-26 Thread Alberto da Silva
Greetings,

I'm looking for a tool that can validate the structure of an e-mail message.

I would like to reject e-mails that are not conformant.

Any ideas welcome.

Thanks

Alberto

___
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] smtp spoofing

2005-06-02 Thread Alberto da Silva
On 6/2/05, Super-Dome [EMAIL PROTECTED] wrote:
 Dear ALL
 
 how can i disallow use of my domain from outside network using *From address
 of my domain .
 
 help needed !
 
 Regards
 
 SD

This works well for me:

/etc/mail/access
From:worldcall.net.pk  ERROR:5.7.1:550 From domain invalid

Alberto da Silva

___
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Which Virus Scanner?

2005-03-08 Thread Alberto da Silva
On Mon, 07 Mar 2005 11:30:28 -0500, David F. Skoll
[EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
 
  $Features{File::Scan} = 1; # turns it on
  $Features{File::Scan} = 0; # turns it off?
 
  I worry about the = 0 thing.  You might be better off doing
  delete $Features{File::Scan};
 
 The = 0 is safe.
 
 The test is:
 
 if ($Features{'Virus:FileScan'}) {
# blah blah blah
 }
 
 --
 David.

What about
   $VirusScannerRoutinesInitialized
   @VirusScannerMessageRoutines
   @VirusScannerEntityRoutines

When do these get initialised?

Alberto
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Blocking spam senders using IPTables?

2004-11-02 Thread Alberto da Silva
Greetings,

You run the risk of starting a DoS attach against your own box.
The RFC's state that senders should keep trying for ~5 days

Quote 
: Chances are that you would get more DoS by new connections constantly
: coming in, than by 5xx responses causing at least protocol-compliant
: senders to give up.

Search for tcp wrappers in comp.mail.sendmail for details

Alberto
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] SPF in MD

2004-10-08 Thread Alberto da Silva
On Fri, 08 Oct 2004 07:37:05 -0400, Michael Weiner
[EMAIL PROTECTED] wrote:
 Has anyone used mime-defang filters to do any portion of the SPF
 implementation? What i mean is, has anyone constructed a MD filter that
 deals with email based on the results of spf records? I have implemented
 SPF, both publishing dns records and integrating it with sendmail, but i
 was wondering if MD could actually do the mail rejection/whatever, based
 on the results of SPF/SID/DK/etc.
 
 Any ideas would be appreciated. Thanks in advance
 
 Michael Weiner

Try: http://sial.org/howto/mimedefang/spf/

Alberto
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] html email

2004-10-06 Thread Alberto da Silva
On Wed, 06 Oct 2004 16:34:13 +0800, Edmund [EMAIL PROTECTED] wrote:
 Hi,
 
 I do not particularly appreciate html mail, so I figured
 I'd add something to the mimedefang-filter to get rid
 of the html /html tags.  As a start, to test it out,
 I tried the following code:
 
  if ($type eq text/html) {
  my($output, $io);
if ($io = $entity-open(r)){
 $output = $io-getline;
 $output =~ s/(html|\/html)//igs;
 $io = $entity-open(w);
 $io-print($output);
 $io-close;
}
  }
 
 This is in the filter() function.
 
 I haven't touched the mimedefang-filter in a while and haven't
 touched perl in a while as well, so I've probably done some
 ghastly mistake.   (Why?  Because it's not working...)
 
 Is there a book out that can help me?
 
 Thanks
 
 Edmund

See filter_end in /etc/mail/mimedefang-filter - there is example code
to do what you need
remove_redundant_html_parts($entity);

# I HATE HTML MAIL!  If there's a multipart/alternative with both
# text/plain and text/html parts, nuke the text/html.  Thanks for
# wasting our disk space and bandwidth...

# If you want to strip out HTML parts if there is a corresponding
# plain-text part, uncomment the next line.
# remove_redundant_html_parts($entity);

The man page mimedefang-filter is the best reference.

Alberto
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] How to test spamassassin's configuration

2004-10-06 Thread Alberto da Silva
On Tue, 5 Oct 2004 20:26:44 -0400, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I tie to access.db in mimedefang-filter.  Not hard.
 
 Wrolf

Hi Wrolf,

Can you post the tie / access.db code as I'm trying to do a similar task.

Thanks

Alberto
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang