procmail
[Top] [All Lists]

Re: Bouncing of mails

2001-10-25 08:47:08
* 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


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
}


hey, I am not quite an expert on procmail - a learning guy like you.


-Wash

S y s t e m s   A d m i n i s t r a t o r
--
                                              ~\\_                 
 Odhiambo Washington                            \\\\               
 Wananchi Online Ltd.,                          `\\\\\             
 1st Flr Loita Hse, Loita Street                 |\\\\\            
 PO Box 10286,00100-NAIROBI,KE.                   \\\\\|__.--~~\   
 Fax: 254 2 313985-9                           _--~            /   
 Fax: 254 2 313922                           /~ //////  _-~~~~'    
 E-mail: wash(_at_)wananchi(_dot_)com                  ('-//////-//           
 URL    : http://www.wananchi.com            //////(((-)           
 GSM: 254 72 743 223 / 254 733 744 121     /////"                  
                                        _///"                      

+++
"I'd love to go out with you, but I'm taking punk totem pole carving."
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>