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
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
--- 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
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
-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
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
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) {
7 matches
Mail list logo