ezmlm-get: fatal: I do not reply to bounce messages
Tobias Carlsson <[email protected]> Wed, 06 Feb 2008 14:44:25 +0100
| Newsgroups | gmane.mail.ezmlm |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to set up a ezmlm list (named sos) on a qmail server that is second MX for my domain.com. I want this second qmail server to be dedicated just for the list. The first qmail server have a virtual domain (say domain.com). Today it handles all our mail. I've now added .qmail files like this for that domain: .qmail-sos -> .qmail-forward-to-second-mx .qmail-sos-default -> .qmail-forward-to-second-mx Where .qmail-forward-to-second-mx contains this: | /var/qmail/bin/qmail-remote-invoke.pl mx2.domain.com "$SENDER" "$HOST-$EXT@$HOST" The I found the qmail-remote-invoke perl script a long time ago, the content of it is at the bottom of this mail. It just sends the mail to my second qmail server that handles the list. I've set up a virtual domain just like the one on qmail server 1. The problem now is that ezmlm thinks all mail going to sos list is bounces and I can't figure out why. This is a the qmail log files of a session: mx1: --- @4000000047a9a37617ff45bc info msg 562566: bytes 1922 from <[email protected]> qp 11858 uid 1006 @4000000047a9a3762415b96c starting delivery 6803: msg 562566 to local [email protected] @4000000047a9a3762415d0dc status: local 1/10 remote 1/20 @4000000047a9a3762e039444 delivery 6803: success: rK56.56.56.217_accepted_message./Remote_host_said:_250_ok_1202298954_qp_26152//did_0+0+1/ mx2: --- @4000000047a9a05438f48f0c starting delivery 977: msg 2458503 to local [email protected] @4000000047a9a05438f492f4 status: local 1/10 remote 9/120 @4000000047a9a054393eb76c delivery 977: failure: ezmlm-get:_fatal:_I_do_not_reply_to_bounce_messages_(#5.7.2)/ If I try and add a normal account on the second qmail server and add the forward .qmail files for that account everything works and the mail gets delivered as it should. Does anyone have a clue on what to do here? Thanks! ------ start perl ------- #!/usr/bin/perl $argslen = scalar @ARGV; if ($argslen != 3){ print "qmail-remote-invoke.pl must be called as: qmail-remote-invoke.pl host sender recip"; exit 111; } @email = <STDIN>; $file = "/tmp/".generate_random_string(11); open(tmpfile, ">>$file"); foreach $line (@email){ print tmpfile $line; } close(tmpfile); $sender =~ s/["]//g; $status = `/var/qmail/bin/qmail-remote $ARGV[0] "$sender" "$ARGV[2]" < $file`; $del = `rm -f $file`; $status =~ s/[^\p{IsPrint}\s]//g; $first = substr($status, 0, 1); my @chars=('q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m','Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','X','C','V','B','N','M','0','1','2','3','4','5','6','7','8','9','_'); my $random_string; foreach (1..$length_of_randomstring) { #rand @chars will generate a random number between 0 and scalar @chars $random_string.=$chars[rand @chars]; } return $random_string; } $second = substr($status, 1, 1); $rest = $status; print "$rest\n"; if ($first eq "r" or $first eq "K"){ exit 0; } elsif ($first eq "h" or $first eq "D") { exit 100; } else { exit 111; } sub generate_random_string { my $length_of_randomstring=shift;#the length of the random string to generate my @chars=('q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m','Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','X','C','V','B','N','M','0','1','2','3','4','5','6','7','8','9','_'); my $random_string; foreach (1..$length_of_randomstring) { #rand @chars will generate a random number between 0 and scalar @chars $random_string.=$chars[rand @chars]; } return $random_string; } ------ end perl -----