On 2006-08-26 16:49:06 +0200, Kjetil Kjernsmo wrote:
> I guess it is my damned duty to read the postmaster and abuse addresses 
> even if they come from hosts that would be blocked. Is there an easy 
> way to accept just these two local parts early, to let them pass 
> unhindered through all the barbed wire and mines?

You could write a plugin like this:

sub hook_rcpt {
  my ($self, $transaction, $rcpt) = @_;
  return OK if $rcpt->user =~ /^(?:postmaster|abuse|mailer-daemon|root)$/i );
  return DECLINED;
}

(cribbed from dnsbl)

and put that before your filtering rcpt plugins.

Personally I prefer the other way: All plugins I write have to be
enabled per recipient address. So I simply don't enable them for
postmaster.

        hp

-- 
   _  | Peter J. Holzer    | Schlagfertigkeit ist das, was einem
|_|_) | Sysadmin WSR       | auf dem Nachhauseweg einfällt.
| |   | [EMAIL PROTECTED]         |    -- Lars 'Cebewee' Noschinski in dasr.
__/   | http://www.hjp.at/ |

Attachment: signature.asc
Description: Digital signature

Reply via email to