Hey all,
  I have an external account ([EMAIL PROTECTED]) with 3 aliases
(tom, dick, harry)so that email can be sent to
mailto:[EMAIL PROTECTED],etc

What I want to happen is when the pop3 syncs to the internal domain
([EMAIL PROTECTED]) to move the mail to the appropriate staff
member's mailbox (tom, dick, harry).  I believe (?) this can be used from
the header  TO:[EMAIL PROTECTED]

so far i've used the following file names:
[EMAIL PROTECTED]
staff@internal_domain

each containing th line: "/var/MailRoot/filters/staff.pl"    @@RCPT
@@FILE
( wasn't which was appropriate)

staff.pl conatins:

#!/usr/bin/perl
$rcpt = $ARGV[0];
$file = $ARGV[1];
if ($rcpt = "[EMAIL PROTECTED]" )  {
system ("mv $file
/var/MailRoot/domains/external_domain/tom/Maildir/new/$file")
}

You'll have to forgive my scripting 1st day with perl :)

Of course this does not work
any pointers would be greatly appreicated

Scott


"I'm not wierd about it, I don't tie myself up first", Tom Waits, Nighthawks
at the Diner, 1975


Reply via email to