/usr/bin/perl -e 'chdir("/var/qmail/alias")or 
die;chmod(03755,".");opendir(D,".");while($_=readdir(D)){next 
unless/^\.qmail/;unlink($_);}closedir(D);while(<>){chomp;next unless/ > 
(.*)\@qmail\.org:(.*)/;open(M,">.qmail-$1")or die;print M"&$2\n";close 
M;};chmod(02755,".");#untested'<<EOF

[EMAIL PROTECTED] writes:
 > -----BEGIN PGP SIGNED MESSAGE-----
 > 
 > Big Brother tells me that Anand Buddhdev said:
 > > On Tue, Jan 18, 2000 at 04:11:18PM -0600, [EMAIL PROTECTED] wrote:
 > >   
 > > >      Now, mail stays local.  Since I no longer have recipientmap, I
 > > > wonder what the solution is.  One solution is to put qmail.org into
 > > > mail.chicago.qmail.org's virtualdomains file.  Then I can create
 > > > aliases for all of the local users.  The problem is that I must also
 > > > create aliases for EVERY qmail.org user, so that anyone not on the
 > > > local machine has their mail sent to the main server.  This would be
 > > > a pain to administer, especially when there are dozens of local offices.
 > > 
 > > recipientmap was a feature of qmail 1.01, and was withdrawn in qmail
 > > 1.02 and above. The functionality of recipientmap is now incorporated
 > > into virtualdomains. Read the qmail-send man page more carefully, and
 > > you'll find your solution. Basically you're on the right track, but
 > > you've missed something.
 > 
 >     Not exactly. If you put something like:
 > 
 > [EMAIL PROTECTED]:example
 > 
 >     into virtualdomains, it will convert the address to [EMAIL PROTECTED] 
 > and treat it as local.  I would then have to create an alias file for each
 > user.  This is considerably more complicated than just putting a line into
 > a recipientmap file.
 >     The trick is that the application I need this for is a company with
 > dozens of offices all over the country.  I want to have a central mail
 > server, and then a mail server in each office.  By using recipientmap,
 > I can create a single file on the main server:
 > 
 > [EMAIL PROTECTED]:[EMAIL PROTECTED]
 > [EMAIL PROTECTED]:[EMAIL PROTECTED]
 > [EMAIL PROTECTED]:[EMAIL PROTECTED]
 > [EMAIL PROTECTED]:[EMAIL PROTECTED]
 > [EMAIL PROTECTED]:[EMAIL PROTECTED]
 > [EMAIL PROTECTED]:[EMAIL PROTECTED]
 > 
 >      Now, all mail from the outside world coming in for qmail.org gets
 > resent to the appropriate office's mail server.  By maintaining this
 > one master list on the main server, updates are easy:  Whenever a user
 > is added, removed, or even changes offices, all that is necessary is
 > that this recipientmap file gets copied to all mail servers.  With an
 > exact copy of this file in chicago, for example, if charles sends email
 > to cheryl, it stays local.  If charles sends email to allan, it gets
 > sent directly to the atlanta server, without having to go through the
 > main server.
 >      This is considerably more complicated if I have to use virtualdomains
 > with aliases.  I can create a file recipientmap as above, and then write
 > a script that converts its data to a virtualdomains file and a bunch of
 > aliases.  However, this script has to account for removed users (that are
 > no longer in the file) by removing old entries and .qmail files.
 > 
 >      Is there a patch anywhere where I can restore the recipientmap file?
 > It should only be less than a dozen lines, I would think, so perhaps I
 > could write one...
 > 
 > - --
 > Jack McKinney
 > The Lorentz Group                     http://www.lorentz.com
 > F4 A0 65 67 58 77 AF 9B  FC B3 C5 6B 55 36 94 A6
 > 
 > -----BEGIN PGP SIGNATURE-----
 > Version: 2.6.2
 > 
 > iQCVAwUBOIXUI0Zx0BGJTwrZAQEV2gQAhllIr5syAVea1L2JV4StRvGOFxPFGNWN
 > 1PhProNjZl5/ubsnIe9rs+E2bhSNF1bLdFQ1Hms/eHQquOssngss8jtVxjkZcyS0
 > 0KX55XJR4VhaFsFAVXWc3V1AYkUolB5RKpVxarOUmC+iGYyGajowcoPpxvnMKK8p
 > AXP/UlN3MsE=
 > =z6HG
 > -----END PGP SIGNATURE-----

EOF

Next problem.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.

Reply via email to