From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078721911624.tru64-unix-managers.marc@archive.invalid> From: Samson Golden Date: Thu, 03 Sep 1998 19:59:53 +0000 To: tru64-unix-managers Subject: SUMMARY: Changing spool directories for sendmail V8.8 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078721911624 I had asked if it were possible to change the spool file directory structure for Sendmail so that the spool files for users in different zones served by one mail machine would wind up in a structure like the following: /var/spool/mail/zone1/user1 . . . /var/spool/mail/zonen/usern "Lance A. Brown" Suggested the following: "I don't know if sendmail can be configured to do what you want, but I can envision a solution where you use procmail, a local mail delivery agent that is extremely configurable, to do what you want. I would configure sendmail.cf use procmail as the local mail delivery program and add a '-a zoneX' switch to the procmail command line. You can then access this data as the variable $1 in a procmailrc file that just delivers to the specified spool file. Something like: # Begin procmailrc # ZONE=$1 # Deliver to zoned spool directory :0 /var/spool/mail/$ZONE/$LOGNAME # End of procmailrc should do the trick." So I'm learning about procmail now, but have also had it suggested to me by a friend that this probably won't work on the mail retreival end since a POP3 server would likely have to be re-written to support this. When I understand exactly how to make this work on both the inbound mail and mail-retrieval ends, I'll post a note. Thanks and regards