Dear Friends,
I am facing one problem in using procmail, i am using procmail as a MDA but problem is that whenever anyone mail is sending a mail to id hk.singh@example.com then that mail is going to hk.singh@example.com and to k.singh@example.com , plz help me out.
thanks .
waiting for response.
Abhishek Kr. Singh System Administrator DSC. LTD. Mob.No. +91-9871563248
__________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
abhishek singh wrote:
Dear Friends,
I am facing one problem in using procmail, i am using procmail as a MDA but problem is that whenever anyone mail is sending a mail to id hk.singh@example.com then that mail is going to hk.singh@example.com and to k.singh@example.com , plz help me out.
thanks .
does it go to both addresses or just to k.singh?
ya it goes to both address. and entries in .procmailrc file is like this
:0 c * ^To: .*hk.singh@example.com.* ! hk.singh :0 ac TMPMAILDELIVERED=| echo "$MAILDELIVERED" :0 ac MAILDELIVERED=| echo "$TMPMAILDELIVERED hk.singh"
:0 c * ^CC: .*hk.singh@example.com.* ! hk.singh :0 ac TMPMAILDELIVERED=| echo "$MAILDELIVERED" :0 ac MAILDELIVERED=| echo "$TMPMAILDELIVERED hk.singh"
:0 c * ^To: .*hk.singh@example.com.* ! k.singh :0 ac TMPMAILDELIVERED=| echo "$MAILDELIVERED" :0 ac MAILDELIVERED=| echo "$TMPMAILDELIVERED k.singh"
:0 c * ^CC: .*k.singh@example.com.* ! k.singh :0 ac TMPMAILDELIVERED=| echo "$MAILDELIVERED" :0 ac MAILDELIVERED=| echo "$TMPMAILDELIVERED k.singh"
--- Feizhou feizhou@graffiti.net wrote:
abhishek singh wrote:
Dear Friends,
I am facing one problem in using procmail, i am
using
procmail as a MDA but problem is that whenever
anyone
mail is sending a mail to id hk.singh@example.com
then
that mail is going to hk.singh@example.com and to k.singh@example.com , plz help me out.
thanks .
does it go to both addresses or just to k.singh? _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Abhishek Kr. Singh System Administrator DSC. LTD. Mob.No. +91-9871563248
__________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, Oct 26, 2006 at 10:34:54AM +0100, abhishek singh wrote:
- ^CC: .*k.singh@example.com.*
! k.singh
This is why. This rule will match both addresses. You might want to change it to .*[^h]k.singh@example.com.*, but that will handle only one specific case. Using word boundaries might be the best way to go.
[]s
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)