On 1 Aug, Boisson Pascal wrote:
| Hello,
| I use sendmail as MTA and procmail as MDA.
| I would like all messages that come to xxx(_at_)domain1 to be sent to
| 1- xxx(_at_)domain1 as it does actually,
| and also to
| 2- xxx(_at_)domain2(_dot_)
|
| I can make it work user by user doing this:
|
| : 0 c
| * ^TO (_dot_)*userx(_at_)domain1
| ! userx(_at_)domain2
|
| : 0 :
| * ^TO (_dot_)*userx(_at_)domain1
| ! userx(_at_)domain1
|
| but I have 1200 users.
| I think that it might be possible to do this
| with only one (or 2) recipe but I don't find the solution.
| Thank you for your help.
A procmail solution would likely suffer from the shortcomings of
routing mail based on headers rather than envelope recipient. *If*
sendmail's virtusertable will accept 2 targets, you *might* do it there
with an entry like:
@domain1 %1(_at_)domain1, %1(_at_)domain2
or whatever the correct syntax would be for multiple targets. I stress
*If* and *might* because 1) I'm not a sendmail expert, 2) I don't know
if virtusertable can work with 2 targets, and 3) I don't have time to
look further right now. But it's something you can look into. You should
check www.sendmail.org and cf/README in the sendmail sources. If you
don't have them, you can get them for (most)? any version from ftp or
www sendmail.org.
--
/"\
Don Hammond \ / ASCII Ribbon Campaign
Raleigh, NC US X Against HTML Mail,
/ \ and News Too
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail