[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 有关postfix的问题



Hi Huisi Wang,

如果你使用 courier + postfix + mysql 的话,建议使用 postfixadmin

http://high5.net/postfixadmin/

在它的文档中提到了相关的 quata patch。

你也可以用 postconf 来检查是否有这些配置项的支持。

BTW: Mandrake 里面的 srpm 默认编译是不打 patch (但包含了 patch 文件),如
果需要的话要自己重新编译。因为 quata 是一个很重要的功能,我想 debian 这
边也应会包括的。

On Wed, 6 Apr 2005 12:12:52 +0800, Huisi Wang <huisiwang@gmail.com> wrote:

> Hi,
> 
> 另外,在man 5 postconf里有默认50M设置是否可以认为是打过patch的?
> 因为看到有这样的设置:
> #add quota support
> message_size_limit = 4000000 //单个邮件的大小限制,这里是4000000字节
> virtual_mailbox_limit = 4000000 //默认的邮箱的大小。
> virtual_mailbox_limit_maps = mysql:/etc/postfix/quota.cf //每个用户的邮箱大小
> virtual_mailbox_limit_override = yes //是否允许覆盖默认的邮箱大小。 
> 另外建立一个/etc/postfix/quota.cf
> user = postfix
> password = <password for user:postfix>
> dbname = postfix
> table = user
> select_field = quota
> where_field = username
> hosts = localhost
> 但这个前提是打过quota的patch。
> 因为在manpage里没有看到有virtual_mailbox_limit_maps这条目。
> 
> 谢谢!
> 
> On Apr 6, 2005 11:40 AM, Huisi Wang <huisiwang@gmail.com> wrote:
> > Hi,
> > 
> > 在man 5 postconf里找到了,默认50M,但是我想控制每个用户的空间大小,怎么做?
> > 现在用户都是虚拟用户,信息存储用mysql。
> > google到用maildrop来做,而我用的是courier-maildrop,是不是同样可以做到?
> > 写一个/etc/courier/maildroprc,在里边有类似如下内容:
> > 
> > hostname localhost
> > port 3306
> > socket /var/lib/mysql/mysql.sock
> > database mail
> > dbuser mail
> > dbpw secret
> > dbtable USER
> > default_uidnumber 450
> > default_gidnumner 450
> > uid_field MAIL
> > uidnumber_field UID
> > gidnumber_field GID
> > maildir_field MAILDIR
> > homedirectory_field HOMEDIR
> > quota_field QUOTA
> > mailstatus_field STATUS
> > where_clause ""
> > 
> > 这里主要是那个quota字段,如果这样建立就可以了吗?
> > 
> > 谢谢!
> > 
> > On Apr 2, 2005 5:57 PM, SuperMMX <supermmx@163.com> wrote:
> > > Hi, Huisi Wang
> > >
> > > On Sat, 2 Apr 2005 12:14:32 +0800
> > > Huisi Wang <huisiwang@gmail.com> wrote:
> > >
> > > > Hi,
> > > >
> > > > 在debian sarge中的postfix是否支持quota?
> > > > 如果想要在debian的postfix中加入quota功能是不是得在postfix的源码中加入
> > > > 有关quota的patch,重新编译才可以?
> > >
> > > 应该是支持的,  virtual_mailbox_limit = 51200000 是缺省的参数,
> > > 不过真正用的时候, 跟你使用的后端有关系, 比如你使用 cyrus 作为存储的后端,
> > > 那么这时候就需要早 cyrus 里面来设置, 其他的估计和类似.
> > >
> > > >
> > > > 谢谢!
> > > > --
> > > > Best regards,
> > > > Huisi
> > > >
> > > >
> > >
> > > --
> > > http://SuperMMX.org  自由世界 Free Software World
> > >
> > > Your boyfriend takes chocolate from strangers.
> > >
> > > --
> > > To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
> > > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> > >
> > >
> > 
> > --
> > Best regards,
> > Huisi
> > 
> 
> 
> -- 
> Best regards,
> Huisi



-- 
  lark



Reply to: