My company uses our ISP to "ghost" our domain, lsmp.com. All mail addressed
to username(_at_)lsmp(_dot_)com goes to
lsmp(_at_)starbase(_dot_)neosoft(_dot_)com(_dot_) I use the following
procmailrc file to forward messages to each user's mailbox at Neosoft.
#handle users(_at_)lsmp(_dot_)com
:0
* (^TO)(_dot_)*(_at_)lsmp(_dot_)com
{
:0 c
* (^TO).*(adam|marketing)@lsmp.com
! adam(_at_)neosoft(_dot_)com
:0 c
* (^TO).*(baker|engineering)@lsmp.com
! baker(_at_)neosoft(_dot_)com
:0 c
* (^TO).*(charlene|president)@lsmp.com
! charlene(_at_)neosoft(_dot_)com
#the message is dealt with - trash it.
:0
/dev/null
}
#trash everything else
:0
/dev/null
How could rewrite the recipe to use a file with pairs of valid user names,
or aliases, and email addresses? e.g.
adam adam(_at_)neosoft(_dot_)com
marketing adam(_at_)neosoft(_dot_)com
baker baker(_at_)neosoft(_dot_)com
engineering baker(_at_)neosoft(_dot_)com
charlene charlene(_at_)neosoft(_dot_)com
president charlene(_at_)neosoft(_dot_)com
--
Steve Knouse(_at_)neosoft(_dot_)com
<http://www.neosoft.com/~knouse>
Director, Data Processing +1-713-796-0505; Fax +1-713-796-8631
Lone Star Medical Products, Inc. <http://www.lsmp.com/>
8733 Knight Road, Houston, TX 77054 USA