"J. Daniel Smith" <dan(_at_)bristol(_dot_)com> says:
You're probably much better off leaving this to "sendmail" (or
whatever MTA you are using). This is sendmail's job, and it will
automatically handle both address formats. I'd spend the time working
on fixing sendmail.cf rather than tyring to make procmail deal with this.
Unfortunately this is not always possible, especially on machines for
which I have absolutely no control over the sendmail.cf file.
But you have the -C option to sendmail. You could either do it
with some snazzy option that I have forgotten or you could define a
dummy delivery agent that would do all the right things.... something
Mcanon P=/bin/echo ...... A=echo $u(_at_)$h
Sendmail is built for this but _this_ seems like swatting flies with
I've wanted a program like this too, but before I write one I'd like to
see if anyone else has written one already.
A friend of mine try to write something that did all the right
things in all the right cases, do the lookups, do the .... do the
.... and ended up giving up.... Sendmail does seem a little excessive
but it solves the problem.