2000-07-06, at 00:03:09, Paul Jarc wrote:

> Hand, Brian C. writes:
>> How does one setup qmail and ezmlm to allow subscribes and unsubscribes to
>> be done ONLY by command line.

> If you remove listdir/public, ezmlm-manage will stop responding to all
> administrative requests, including -subscribe, -unsubscribe, and -get.
> If you want -get to keep working, you can intercept delivery of the
> subscription messages.  The foo-subscribe and foo-unsubscribe
> addresses are handled by the list's .qmail-default file - you can
> create .qmail-[un]subscribe[-default] files to handle any messages
> sent to those addresses.  bouncesaying ought to be useful.  If instead
> you want to drop these messages silently, remember that the .qmail
> files shouldn't be empty (that indicates that the system's default
> delivery method should be used - ./Mailbox, or whatever), and the
> first line can't be blank - `#' is the smallest no-op.

>> I apologize if this is documented somewhere but I only found out how
>> to prevent posts to the mailing lists itself.

> Hm - how do you do that?
Or you can make file called i.e. subscribe.pl and put this code
inside:

#!/usr/bin/perl

$to = "test-subscribe\@test.com";
$subject = "";
$from = "test-user\@test2.com";

$sendmail = "sendmail -f $from -t -oi";
open(MAIL, "| $sendmail");
   $subject = $config[5];

   print MAIL "Reply-to: $from\n";
   print MAIL "Errors-to: $from\n";
   print MAIL "Sender: $from\n";
   print MAIL "To: $to\n";
   print MAIL "Subject: $subject\n";
   print MAIL "\n";

close MAIL;

You can rebuild this source to ask for $to and $from.
If you do this from machine which is listserver it should subscribe
without any problems.

-- 
pozdrawiam,
Sylwester S. Biernacki <[EMAIL PROTECTED]>


Reply via email to