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 03-19-2006, 09:05 AM   #1
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
multiple recipients Procmail - fetchmail Problem


Hi all,

Got called in to help with a business that is having mail problems. Took a while to figure out what was actually happening. Basically the system uses fetchmail - postfix - procmail to deliver mail locally from a 'catch all' email address at an ISP. The problem is that when an email is sent with multiple recipients and fetchmailed to the box in question, procmail only seems to filter the first message, the rest do not get delivered to the users maildir? Every address seems to work fine when one mail is sent into the system at a time. I have spent hours trying to figure this out and have nothing to go on right at the moment.

Any suggestions?

More info-:

The ~/procmail.log file is showing that the 2nd and subsequent emails of a multi-recipient email are not being filtered. So I know they are not just failing the matching on the regex.

The rule I am using in /home/mainmailuser/.procmailrc (from memory) is:

:0
* ^(X-Original-To|Delivered-To|for|TO|to).*someone@thedomain.com
! someone@localhost

This rule is basically duplicated 6 times to cover all users accounts.


I had a test system set up on Gentoo using exactly this system and did not get this problem (the system in question is running Mandrake 9.2). So I think the rc rule is OK.

Could it have something to do with filelocking??

Any help would be greatly appreciated.
 
Old 03-19-2006, 10:42 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
AIUI, you want ':0c' instead of ':0' (RTM)
 
Old 03-27-2006, 02:17 AM   #3
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Original Poster
Rep: Reputation: 30
Thanks, that did the trick! It works well now.
 
  


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
virtusertable vs. aliases and multiple recipients Skip-DMP Linux - Software 7 10-04-2009 06:14 AM
Procmail recipe-multiple recipients at same domain LocoMojo Linux - Software 0 01-19-2006 11:13 PM
fetchmail: Recipients names must be specified Mikeventer Linux - Software 5 10-14-2004 12:57 AM
exim 4 - multiple recipients for one alias Yoss Linux - Software 2 02-10-2004 01:45 AM
fetchmail + procmail (?) markus1982 Linux - Networking 1 11-12-2002 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:14 AM.

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
Open Source Consulting | Domain Registration