At 15:35 2002-07-11 +0300, Oren Gozlan did say:
Hi, i a newbe to the procmail and wanted to ask for some help.
Please consider turning off your richtext email features (fonts, etc) when
emailing mailing lists.
i want to setup a rule that will get every message from my sendmail to
x(_at_)mydomain and send it to x(_at_)newdomain
This is a task most properly performed within the MTA. Udi has already
posted an example of how you could achieve this within procmail, but as the
procmail manpage states, procmail isn't an MTA - if you have multiple
domains handled through one physical account, and sometimes - even if only
rarely - you get cc:'d (or worse yet, Bcc:'d) at addresses among them,
trying to selectively forward messages that appear to be addressed to one
will pose you no end of grief.
An example using the sendmail virtusertable file to do this the proper way:
x(_at_)mydomain(_dot_)tld x(_at_)newdomain(_dot_)tld
(of course, doing it at the MTA level requires that you be the admin, or
that the admin be willing to do this sort of change for you - if you have a
wildcard "mydomain" bit, you might be hosted as some faceless ISP that
doesn't care to provide such services, and you'll have to make do dealing
with MTA features at the local delivery level.
[snip - 17 lines, that's a doozie of a .sig]
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail