[Mimedefang] suggestion - filter_begin

2005-06-09 Thread dead hero
hey, i've made a little addition to the filter_begin code in the mimedefang-filter script --- background: lets say i provide a free webmail service and i use mimedefang + spamassassin to scan outgoing emails. problem: people who are sending mails to hotmal.com instade of hotmail.com or to

Re: [Mimedefang] suggestion - filter_begin

2005-06-09 Thread Guido
On Thursday 09 June 2005 11:49, dead hero wrote: code: sub filter_begin() { foreach $recip (@Recipients) { if ($recip =~ /\.+\@(.+)\/) { $domain = $1; @mx = mx($domain); unless (@mx) { delete_recipient($recip); } } } } - i was wondering if there are

Re: [Mimedefang] suggestion - filter_begin

2005-06-09 Thread dead hero
--- Guido [EMAIL PROTECTED] wrote: 1) MX records are not required, when non-existant the A record will be used. are you sure about that? i think you must have a MX record, what do you mean 'the A record', which A record? there could be lots of them. for exemple, i'm sending an email to

Re: [Mimedefang] suggestion - filter_begin

2005-06-09 Thread David F. Skoll
dead hero wrote: 1) MX records are not required, when non-existant the A record will be used. are you sure about that? He's right. Check the RFCs. Also, your code will block mail if there's a temporary DNS error. You should distinguish between SERVFAIL and NXDOMAIN status codes from the DNS

RE: [Mimedefang] suggestion - filter_begin

2005-06-09 Thread Damrose, Mark
-Original Message- From: Kevin A. McGrail Minor nit. If I have a zone like this: imacompany.com86400INA1.2.3.4 imacompany.com86400INMX51.2.3.5 mx1.imacompany.com86400INA1.2.3.5 Then 1.2.3.5 is the only MX destination and

Re: [Mimedefang] suggestion - filter_begin

2005-06-09 Thread Kevin A. McGrail
Sorry, Mark's small change is correct. I meant to type in the MX record name but forgot and type the IP address. imacompany.com.86400INA1.2.3.4 imacompany.com.86400INMX5mx1.imacompany.com. mx1.imacompany.com.86400INA1.2.3.5

RE: [Mimedefang] suggestion - filter_begin

2005-06-09 Thread Sleeuwenhoek J.
hey, i've made a little addition to the filter_begin code in the mimedefang-filter script ---snip--- code: sub filter_begin() { foreach $recip (@Recipients) { if ($recip =~ /\.+\@(.+)\/) { $domain = $1; @mx = mx($domain); unless (@mx) {