At 09:36 2002-03-04 -0300, Fred wrote:
I've already written for you... but my problem still there...
I've already not seen this, not recently at least.
:0 c
* To:(_dot_)ftp(_at_)mydomain(_dot_)com
! me(_at_)mydomain(_dot_)com
----
It doesn't work! i don't receive this mail, ftp either...
one dot is ONE wildcard character. The above To: would match:
To: ftp(_at_)mydomain(_dot_)com
or:
To:iftp(_at_)mydomain(_dot_)com
or:
To: ftp(_at_)mydomainicom
(note the dot in .com isn't treated as a DOT)
You don't include the To: line as it appears in the messages you're seeing,
but I'm willing to wager that there isn't just ONE character (and there
must be ONE character) before ftp(_at_)(_dot_)(_dot_)(_dot_)
If you want to match on the To: header, try:
* ^To:.*\<ftp(_at_)mydomain\(_dot_)com
This says,
^ at the very start of the line
To: The To: header
.* zero or more of whatever character
\< a non-letter/numeric/some_others character identified as a
word separator (an easy way to enaure that the email address
STARTS with ftp, not simply cotains it)
ftp(_at_)mydomain literal
\. literal dot, rather than a wildcarded one
com literal
Or, you could just use the ^TO_ macro (see the procmail manpages)
* ^TO_ftp(_at_)mydomain\(_dot_)com
When i put an asterisc...
:0 c
* To:(_dot_)*ftp(_at_)mydomain(_dot_)com
! me(_at_)mydomain(_dot_)com
---
So I receive 24 mails for each one i send to ftp(_at_)mydomain(_dot_)com
Q: where is the me(_at_)mydomain(_dot_)com mail account handled? Any chance it is on
the same hosted account? if the ftp@ and the me@ accounts are at different
hosting locations, it'd help if you use different hostnames for them to
make this at least a bit more clear - because if they're handled at the
same account, what you're doing is setting up a mail loop. I'd bur rather
surprised if it stops at 24 emails...
You're also COPYING the message - is this what you want to do, and are
their rules below this one which would forward it as well?
You should enable VERBOSE logging and send a message and see what gets logged.
---
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