[Mimedefang] E-mail REJECT problem
Steffen Kaiser
skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Wed Jul 23 06:26:17 EDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 23 Jul 2008, Paul Murphy wrote:
> You check for "hallmark.com" with nothing after the ".com" part:
>
>> if ($sender =~ /hallmark\.com$/) {
> return ('REJECT', "Connection Refused: Relay Server ($ip) blacklisted");
Yep,
man mimedefang-filter
suggests this code:
if ($sender =~ /^<?spammer\@badguy\.com>?$/i) {
if ($recipient =~ /^<?postmaster\@mydomain\.com>?$/i) {
return (âCONTINUEâ, "ok");
}
return (âREJECTâ, âSorry; spammer at badguy.com is
blacklisted.â);
}
Note the >?
Bye,
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIhwdL5ThHZhj8SBwRAuH3AJ9RF47SLv3Q+B1ik8Ltl/C8gZwVxgCfdgHl
Ap2586j/CyDa2HXIT3auNQ0=
=EptS
-----END PGP SIGNATURE-----
More information about the MIMEDefang
mailing list