[Mimedefang] Problems with outgoing bounce messages, unkown user, plus to many bad files in sendmail queue
Kees Theunissen
theuniss at rijnh.nl
Tue Jan 16 17:28:38 EST 2007
On Tue, 16 Jan 2007, An.H.Nguyen wrote:
> Below you'll find my filter code and the manual smtp session output and
> one of the bounce message headers (note that I replaced the actual
> server with mimedefang_server and similarly for user at dom.com)
>
> sub filter_recipient
> {
> my($recip, $sender, $ip, $host, $first, $helo, $rcpt_mailer,
> $rcpt_host, $rcpt_addr) = @_;
>
> my $relay = undef;
> $relay = "internal_server" if ($recip =~ m/\@domain\.com$/i);
Most of the time $recip will be something like <user at domain.com>.
Note the < and >. Your regular expression is testing for "@domain.com"
at the _end_ of the string.
Try something like:
$relay = "internal_server" if ($recip =~ m/\@domain\.com>?$/i);
Regards,
Kees.
--
Kees Theunissen
F.O.M.-Institute for Plasma Physics Rijnhuizen, Nieuwegein, Netherlands
E-mail: theuniss at rijnh.nl, Tel: (+31|0)306096724, Fax: (+31|0)306031204
More information about the MIMEDefang
mailing list