如果你使用的是 iRedAdmin 添加邮件帐号,可以在它的目录下的 libs/default_settings.py 里找到以下几个参数:
# It's RECOMMEND for better performance. Samples:
# - hashed: domain.ltd/u/s/e/username-2009.09.04.12.05.33/
# - non-hashed: domain.ltd/username-2009.09.04.12.05.33/
MAILDIR_HASHED = True
# Prepend domain name in path. Samples:
# - with domain name: domain.ltd/username/
# - without: username/
MAILDIR_PREPEND_DOMAIN = True
# Append timestamp in path. Samples:
# - with timestamp: domain.ltd/username-2010.12.20.13.13.33/
# - without timestamp: domain.ltd/username/
MAILDIR_APPEND_TIMESTAMP = True
将它们复制到 iRedAdmin 的主配置文件 'settings.py' 里,然后根据自己的需要修改对应的参数,重启 Apache 服务即可。