tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Changing spool directories for sendmail V8.8
@ 1998-09-03 19:59 Samson Golden
  0 siblings, 0 replies; only message in thread
From: Samson Golden @ 1998-09-03 19:59 UTC (permalink / raw)
  To: tru64-unix-managers


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" <brown9@niehs.nih.gov>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-09-03 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-03 19:59 SUMMARY: Changing spool directories for sendmail V8.8 Samson Golden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox