From marco.menegon@dialogos3.it Wed Aug 9 12:36:17 2000 Date: Wed, 09 Aug 2000 13:19:53 +0200 From: Marco Menegon To: Jeremy C. Reed Cc: Webproject Hostmaster , Lista de correo gnu-pod3d Subject: Re: Multiple Domains+Bad login+Postfix configuration I've done another thing, maybe more dirty than the previous one, I don't know, but for me it's OK: it's secure and enough flexible for the various virtual domains. *** BEGIN *** First step: For every virtual domain (es. foo.com) create n users in /etc/passwd: foo_1 foo_2 ... foo_n These users can be DISABLED; only the entry in /etc/passwd is necessary. Second Step: in /etc/postfix/virtual define the apposite corrispondences, ad es: @foo.com foo.com virtual domain definition mary@foo.com foo_1 peter@foo.com foo_2 ... ... john@foo.com foo_n In this way postfix will save each user mail in the appropriate mailbox (/var/spool/mail/foo_x). The drawback is that the user name is lost (well, seems lost ;)). Third step: in /var/spool/virtual/foo.com/ create appropriate links: mary -> /var/spool/mail/foo_1 peter -> /var/spool/mail/foo_2 ... ... john -> /var/spool/mail/foo_n In this way the POP server could access the mailboxes by way of links. *** END *** In this way we have: - some accounts disabled in /etc/passwd and the POP passwords in another file (security ok) - POP users can access the pop server with real, more intuitive, names (es. mary:foo.com) - with some little effort (measured in Perl programming) it's possible to give every single virtual domain "master" user the possibility to change mailbox names, etc. ( I suppose to give n mailbox by default, and so n users in /etc/passwd; "master" users should buy another n accounts) I'll appreciate comments to my approach... Thanks in advance, -Marco-