On Mon, 27 Oct 2008, Joel Reicher wrote:

} > For those who don't care about procmail, the way I got Postfix working was 
} > to setuid dmail [err...is there another way?] and edit master.cf:
} 
} Do you mean setuid root for tmail? dmail should not be setuid.

Ack...yes, I meant tmail; tmail needs to be setuid for it to work in 
postifx. 

} > tmail      unix -       n       n       -       -       pipe
} >      flags=DR eol=\r\n user=nobody argv=/usr/sbin/tmail ${user}
} 
} You'll want the "u" flag also. I would also suggest getting rid of the
} "D" and "R" flags and using "-f ${sender}" with the tmail argv instead.

Ok. If I decide to go the tmail route, I will change that; but why 
{sender} and not {user}?

} > NOTE: mailbox_transport *overwrites* mailbox_command. So if you set both, 
} > only mailbox_transport will be honored. My mailbox_command was [and still 
} > is]:
} > 
} > mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
} 
} It is correct to use mailbox_transport and not mailbox_command for tmail
} because AFAIK mailbox_command doesn't let you set the EOL correctly,
} amongst other things.

Yes, and in the postfix main.cf file, the comments for mailbox_transport 
also state that it has precedence over mailbox_command. 

} > The problem with the above setup is that procmail is cut out.
} 
} You've asked postfix to pipe to tmail for local delivery; either an
} alias or a .forward file will take precedence over mailbox_transport, so
} if you want to configure use of procmail per-user then use one of these
} mechanisms. If tmail is not correct for the "default" local delivery
} mechanism, don't use the configuration you have.

Well, all users will be using procmail, which is why I am currently doing 
the dmail thing. It's been a long time [SunOS v4?] since I've used a 
.forward to invoke procmail, but from what you say above, it sounds like 
putting a .forward and piping to procmail would get around using tmail. If 
that is the case, why not just have dmail setup? Eg: Have postfix deliver 
to procmail, which uses dmail to save e.mails into mix format for the IMAP 
server? Since I am calling procmail anyway, isn't there less overheard by 
removing tmail from the picture?

[convert many unix mailboxes to mix format]
} A script that calls mixcvt would be best. How you prevent folder
} modification during conversion is site-dependent. You might want to
} stop postfix and disable a small number of accounts, convert them, then
} repeat for other accounts.

That's the plan; just turn postfix off for a bit, disable IMAP and user 
login, and use a script that calls mixcvt. I have yet to write such a 
script though. :) 

Thanks very much for the tmail arg tips and clarifying how one can call 
procmail if one uses tmail; I had completely forgotten about .forward and 
modifying the /etc/aliases file!

/vjl/

-- 
Vince J. LaMonica       Knowledge is knowing a street is one way.
[EMAIL PROTECTED]  <*>  Wisdom is still looking in both directions.

           Donate today, please: http://www.cancer.org/
_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to