How can I make it so my users can not create folders with spaces in them? Or allow them to create such folders but rewrite them on the hardrive with a "_" or some other symbol. I have looked threw the wiki but couldn't find anything about folder name restrictions or folder name rewriting (rewrite the space to a "_"). Im having problems with some of the expire and compress scripts when it hits these types of folders. Is dovecot able to restrict or rewrite the names of imap folders? dovecot -n # 1.1.9: /usr/local/etc/dovecot.conf # OS: Linux 2.6.27.9-159.fc10.i686 i686 Fedora release 10 (Cambridge) ext3 listen: *:143 ssl_listen: *:993 ssl_cert_file: /etc/postfix/SSL/mail.mattrude.com.cert ssl_key_file: /etc/postfix/SSL/mail.mattrude.com.key login_dir: /usr/local/var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login login_user: postfix mail_location: maildir:/var/spool/virtualmailboxes/%d/%u/imap/:INBOX=/var/spool/virtualmailboxes/%d/%u/ mail_plugins: quota imap_quota zlib auth default: mechanisms: plain login cram-md5 cache_size: 128 cache_ttl: 600 master_user_separator: * passdb: driver: sql args: /etc/dovecot-mysql.conf passdb: driver: sql args: /etc/dovecot-sql-master.conf pass: yes master: yes userdb: driver: sql args: /etc/dovecot-mysql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: virtualmail group: virtualmail plugin: sieve: /var/spool/virtualmailboxes/%d/%u/dovecot.sieve sieve_storage: = /var/spool/virtualmailboxes/%d/%u/ quota: maildir quota_rule: *:storage=10M quota_rule2: Trash:storage=20% Thanks -Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20090125/3d3eea84/attachment-0002.bin>
On Jan 25, 2009, at 10:49 PM, Matt Rude wrote:> How can I make it so my users can not create folders with spaces in > them? Or allow them to create such folders but rewrite them on the > hardrive with a "_" or some other symbol. I have looked threw the wiki > but couldn't find anything about folder name restrictions or folder > name > rewriting (rewrite the space to a "_"). > > Im having problems with some of the expire and compress scripts when > it > hits these types of folders. > > Is dovecot able to restrict or rewrite the names of imap folders?No. How about if you fixed your scripts instead?
Matt Rude wrote, On 1/25/09 10:49 PM:> How can I make it so my users can not create folders with spaces in > them? Or allow them to create such folders but rewrite them on the > hardrive with a "_" or some other symbol. I have looked threw the wiki > but couldn't find anything about folder name restrictions or folder name > rewriting (rewrite the space to a "_").That is probably in large part due to it being a very bad idea. As the first break point for that approach: what happens when a user wants to put a real '_' in a name?> Im having problems with some of the expire and compress scripts when it > hits these types of folders.You need to fix those scripts. Breaking because a file or directory name has a space in it is a warning sign about the care taken in a script and it is almost certain that if those scripts don't work with spaces in names, they will also break with other technically achievable names. There's a real chance that the breakage is an exploitable weakness in the scripts, with spaces in names being the most benign attack.