On Mon, 25 Jun 2007 15:17:37 -0600 LuKreme <kremels(_at_)kreme(_dot_)com> wrote:
OK, postfix is setup to create the virtual user's maildir if it does
not exist, and that worked up until I setup procmail. Now the
message is handed off to procmailrc.common for the virtual users and
there's no mechanism for creating the maildir ($HOME) for the new user.
I doubt I can simply do a 'mkdir $USER', although maybe. Before I
start breaking things though, I thought I would ask, how would you go
about making the new user(_at_)domain(_dot_)tld folder for a new user?
Off the top of my head I know nothing about trapping for the failed chdir
but there has been discussion previously on the list about checking to see
if a directory exists prior to trying to write to it.
For creating the MAILDIR structure try doing a 'which maildirmake' on your
system. If maildirmake exists then check to see if the user's directory
already exists and if not then do a '/usr//bin/maildirmake
/usr/local/virtual/fred(_at_)kreme(_dot_)com'
Gerald
P.S. --- And the three men I admire most, the father son and the holly
ghost, they caught the last train for the coast...
Holy only has one "L"
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail