Otay... lemme get this straight...

I *think* I set up our dial-in box right to allow my special user
"frazzlespork" the IP address of 12.15.88.19.

Provided I actually did it right, how's this for the qmail end of things???

This is what I have in /etc/tcp.smtp:

12.15.88.19:allow,RELAYCLIENT="@frazzlespork"
12.15.88.:allow,RELAYCLIENT=""
12.15.89.:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""

This is what I have in /var/qmail/control/virtualdomains:

[snip of other virtual domains we host...]
frazzlespork:alias-frazzlespork

This is what I have in /var/qmail/alias/.qmail-frazzlespork-default

|./var/qmail/alias/envtest.pl

And finally, this is what I have in /var/qmail/alias/envtest.pl:

#!/usr/local/bin/perl

# This is a quick test program to see if the selective mail routing will work.

# Open a file to store all of the environment variables,

open (Q,">>/var/qmail/alias/mailtesting.txt");

# go thru each environment variable and write them to my logfile...

foreach $quack (@ENV) {
 print Q "\$ENV - $quack = $ENV{$quack}\n";
}

# open a mail to re-mail everything that comes in to my real mail account...

open (MAIL,"|/var/qmail/bin/qmail-inject zmerch\@30below.com");

@zline = <STDIN>;

foreach $liner (@zline) {

 print MAIL "$liner";

# and also send a copy of the mail to the logfile that I have.

 print Q "OriginalMail:$liner";
}

# Shut 'er down, boys!!! ;-)

close (Q);
close (MAIL);

====================================================

(I haven't gone home to dial in with the test user account, and prolly
won't tonite, either... these 15 hour days make me snoozy... ;-)

so this is currently wholly untested. Am I kinda on the right track, or as
my father-in-law used to say, "am I full of condensed milk?"

Thanks again, and good-night to all on my half of Earth!
Roger "Merch" Merchberger
--
Roger "Merch" Merchberger   ---   sysadmin, Iceberg Computers
Recycling is good, right???  Ok, so I'll recycle an old .sig.

If at first you don't succeed, nuclear warhead
disarmament should *not* be your first career choice.

Reply via email to