View Single Post
  #3  
Old 15th May 2009, 14:13
t-mug t-mug is offline
Member
 
Join Date: Jun 2007
Posts: 70
Thanks: 11
Thanked 6 Times in 5 Posts
Default One possibility to separate FTP and E-mail for 2.x

Look into the attachment, if you're in the mood. Otherwise: it's only half the way. In fact, I think, one can change this with similar effort to have FTP users without e-mail as well.

So instead of a checkbox - like in the attached solution - one could use an option field on the user tab, represented in the db as an char(1) field:
  1. => E-mail only
  2. => FTP & E-mail
  3. => FTP only
Then: only if the option value is > 1 you would define the /dev/false user directory in the password file. If the value is > 2 you would NOT write into virtualusertable of postfix.
Backward compabilty: for all already existing users the option '2' could be set. Make that sense?
Attached Files
File Type: gz email_user_only-2.2.32-patches.tar.gz (3.2 KB, 240 views)
Reply With Quote