* Odhiambo Washington <wash(_at_)wananchi(_dot_)com> [20011025 18:44]: writing
on the subject 'Re: Bouncing of mails'
| * A.Johnson Jeba Asir <johnson(_at_)ooty(_dot_)tenet(_dot_)res(_dot_)in>
[20011025 14:15]: writing on the subject 'Bouncing of mails'
| | Hello group,
| |
| | I have some set of users in my procmailrc.
| |
| | my procmailrc file looks like this
| |
| | :0 h b
| | * ^To.*johnson
| | | formail -A "X-Loop : Forwarded" | \
| | $SENDMAIL -oi johnson(_at_)yahoo(_dot_)com
|
| Change that to
|
| :0
| * ^To:.*johnson
| ! johnson(_at_)yahoo(_dot_)com
|
|
| | :0 h b
| | * ^To.*admin
| | | formail -A "X-Loop : Forwarded" | \
| | $SENDMAIL -oi admin(_at_)yahoo(_dot_)com
|
|
| Really? You want the mail to go to admin(_at_)yahoo(_dot_)com????
| I guess you don't need the second recipe, or maybe you want
|
| :0
| * ^To:.*johnson
| ! johnson(_at_)yahoo(_dot_)com
Sorry I meant
:0
* ^To:.*admin
! johnson(_at_)yahoo(_dot_)com
I typed faster that I thought ;-)
| Which if true then you only need one recipe (that forwards both johnson's
| and admin's mail to johnson(_at_)yahoo(_dot_)com) like below
|
| :0
| * ^To:.*(johnson|admin)
| ! johnson(_at_)yahoo(_dot_)com
|
| | if i send a mail to johnson(_at_)localhost then the mail should be forwarded
| | to johnson(_at_)yahoo(_dot_)com(_dot_) Same should happen for user admin
also. if i send a
| | mail to junk(_at_)localhost(non existing user) then the mail should bounce.
how
| | do i configure this.
|
| I do the bouncing using the SMTP Server (aka MTA). see the manuals for your
MTA.
|
| If you suspect that junk(_at_)localhost will end up at your mailbox then
something
| like this can do the bouncing:
|
| :0:
| * ^TOjunk
| {
| EXITCODE=67 HOST
| }
|
-Wash
--
/"\
Odhiambo Washington \ / ASCII Ribbon Campaign
Wananchi Online Ltd., X Against HTML Mail,
PO Box 10286, / \ HTML News Too, and
00100 NAIROBI, KE. MS WORD docs.
The most overlooked advantage to owning a computer is that if they foul up,
there's no law against whacking them around a little.
-Porterfield
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail