it's possible i'm using the wrong tool or that some
other method using sendmail might be more appropriate.
I might argue so.
i want to be able to have the same address at different domains behave
differently, for example, info(_at_)ag(_dot_)com autoresponds with one email
message while info(_at_)igroup(_dot_)com is forwarded to a series of users,
at a remote system.
I would recommend something analogous to the use of
address+information that is described in the procmail documentation. I
would give the domain as an argument to procmail with -a. This would
have to happen in your sendmail.cf
Alternatively, I would do some cf hacks like that deliver to aliases
which can then be dealt with.
perhaps more strangely, if i send mail to both users simultaneously
To: rramstad(_at_)igroup(_dot_)com, boccibob(_at_)igroup(_dot_)com
only the alphabetically first igroup.com address gets the email
message. this is consistent no matter how many igroup.com addresses
are in the same message, only one copy is delivered.
I do not understand the alphabetical part, but the rest makes sense.
clearly the first scenario indicates that ^TO only looks at the
header. i need some way of looking at the actual address presented to
You cannot. That information is not offered in the headers. You
need to do the above cf hack to get at that. I think. Either that or
it is not available.
moreover, i need a way of having procmail executed one time for each
address references in a particular domain. this is essential.
It will. The problem is that you need to deliver to the right
person. That is, of course, if you turn on METOO. sendmail 8.7 is
really nasty about METOO.
again, i may be barking up the wrong tree. i've thought about some
sendmail.cf hacks, but this gets gnarly really fast and will be hard
to maintain down the road.
That is what m4 is for. And the changes are completely trivial
modifications of what is in the feature/local_procmail.mc. If you want
some help with the cf hacking, I would be happy to offer.