LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-27-2002, 01:08 PM   #1
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Rep: Reputation: 15
procmail


Hi,

I run fetchmail-sendmail-procmail... my goal was that I could foward user1@mydomain.com and user2@mydomain.com to email@isp.com

the foward works great, sendmail does its job, so does fetchmail, but procmail is not able to separate the mails from user1 and user2.

I run fetchmail as root, and the command I use is :
poll "pop.isp.com" proto pop3 user "isp-user-name" with pass "isp-passord" is "root" here forcecr smtpaddress localhost


and in my procmail I tried 2 things...

1 :
:0
* ^Touser1@mydomain.com
! user1@localhost


2:
:0
* ^[From|To|Cc].user1*@*mydomain.com
! user1@localhost

I tried 1, and then I tried 2, but none of them work... Is there something that I am forgetting???

PS: in #1, I also tried * ^To_user1@mydomain\.com but it did'nt work
 
Old 11-27-2002, 01:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well there's an awful lot of basic syntax errors there that should be fairly obvious from the procmailex man page. why did you get "\.com" come from??

i'd suggest making it a lot simpler, presumably you don't need to check the domain name, so only check the user name. you won't need to forard to the domain, the localhost should be assumed.

and where is this going? /root/.procmailrc i would presume. there might be some useful errors in your dmesg log.
 
Old 11-27-2002, 01:43 PM   #3
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Original Poster
Rep: Reputation: 15
I read 2 different Faq and mini-how-to about procmail and I used the exact same syntax..

yes the file was /root/.procmail ... I forgot to mention

I will try without the domain, so it would be :
:0
* ^Touser1
! user1


Is that right??? anyway, I will try this config, just to test
 
Old 11-27-2002, 01:58 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
it seems ok, not sure if TO is any dfifferent to To though.

Quote:
yes the file was /root/.procmail ... I forgot to mention
.procmailrc???
 
Old 11-27-2002, 02:03 PM   #5
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Original Poster
Rep: Reputation: 15
sorry, my mistake, it was .procmailrc

maybe it's because I'm not concentrated enough...

ok, thanks a lot
 
Old 11-27-2002, 02:12 PM   #6
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Original Poster
Rep: Reputation: 15
Yes, it works...

my error was the TO and not To ... thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with procmail tekion Linux - Software 1 04-19-2005 10:58 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 08:01 PM
procmail divali Linux - Software 2 03-04-2005 09:09 AM
procmail help markehb Linux - Software 0 05-20-2004 10:23 AM
Procmail PcHammer Linux - Software 1 04-23-2003 08:33 AM


All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration