Re: how to clean virtual users correctly

2022-10-26 Thread Paul Kudla



ok in general

the mail client (thunderbird etc) will usually create these upon the 
first login


i on the other hand (because this was always a crap shoot with cyrus) 
take the time to make the special folders manually.


example (done in python):

command2 = 
commands.getoutput('/usr/local/bin/doveadm mailbox create -s -u %s Sent' 
%str(username))

print 'Command2 : %s' %command2
command3 = 
commands.getoutput('/usr/local/bin/doveadm mailbox create -s -u %s 
Trash' %str(username))

print 'Command3 : %s' %command3
command4 = 
commands.getoutput('/usr/local/bin/doveadm mailbox create -s -u %s 
Drafts' %str(username))

print 'Command4 : %s' %command4


also note dovecot config's

namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  prefix =
  separator = /
}

will / should do the same thing.




Happy Wednesday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services 
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email p...@scom.ca

On 10/24/2022 11:07 PM, Henry R wrote:


Hello

I removed the user in static userdb file, and deleted 
/var/mail/vhosts/$domain/$user dir.


when I recreated the user, the system dirs (sent, draft etc) disappeared.

Anything wrong here? Thank you.




how to clean virtual users correctly

2022-10-24 Thread Henry R

Hello

I removed the user in static userdb file, and deleted 
/var/mail/vhosts/$domain/$user dir.


when I recreated the user, the system dirs (sent, draft etc) disappeared.

Anything wrong here? Thank you.


--
Henry R
https://openmbox.net/