[nzlug] wrong user/group on mail in imap maildir

Daniel Pittman daniel at rimspace.net
Sat Sep 1 18:39:26 NZST 2007


Nick Rout <nick at rout.co.nz> writes:
> Matt wrote:
>> I've tried invoking procmail from a .forward file, and direct with
>> fetchmail using:
>>
>> fetchmail -m "/usr/bin/procmail -f - "
>>
>> which I run as a normal user.
>>
>> Using both methods, the that is processed by procmail (ie matches one
>> of the procmail rules) is dropped into the relevant maildir directory
>> as root/mail for the uid/gid.
>>
>> I'm mystified.  Anyone else got suggestions?  The bit I don't
>> understand is that mail that doesn't match a rule is delivered as
>> user/user.  Which leads me to suspect procmail as the culprit.
>> However, is that just a red herring?
>
> Why do you have fetchmail delivering to procmail. IME the proper chain
> is fetchmail delivers to postfix and postfix delivers to procmail.

That really gives zero benefits if /all/ Postfix does is accept the
message from fetchmail and hand it to procmail -- you added overhead
without any benefit.

Running fetchmail directly into procmail is fine for a single user
setup.  For multi-drop or other complex configuration I would definitely
stick with a real MTA in between.

(and, yes, I run the equivalent of fetchmail direct to MDA in a number
 of places without significant problems. :)

	Daniel
-- 
Daniel Pittman <daniel at cybersource.com.au>           Phone: 03 9621 2377
Level 4, 10 Queen St, Melbourne             Web: http://www.cyber.com.au
Cybersource: Australia's Leading Linux and Open Source Solutions Company



More information about the NZLUG mailing list