Chinaunix首页 | 论坛 | 博客
  • 博客访问: 588841
  • 博文数量: 142
  • 博客积分: 10016
  • 博客等级: 上将
  • 技术积分: 1835
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-10 14:30
个人简介

工作中~

文章分类

全部博文(142)

文章存档

2009年(25)

2008年(117)

我的朋友

分类: LINUX

2008-10-13 17:01:47

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
除了注释与空白之外的每一行,各描述一种服务的工作参数。参数行的每一栏,代表一个配置选项。“ ”符号代表该栏为默认值。某些默认值是由main.cf配置文件里的参数决定的。


服务名称(service name)  第一栏
   服务器组件的名称。命名规则,随该服务的传送类型(第二栏)而定。

传送方式(transport type) 第二栏
  传送服务所用的通信方法。包括inet、unix与fifo。
 
  inet方法表示服务可通过”网络套接字“(network socket)来访问。这类服务的对象可以是同系统上的
  其他进程,或是网络上其他主机的客户端进程。网络套接字服务的名称(第一栏),是用”ip地址“与”通信
  端口“的组合来表示。如192.168.1.76:25、localhost:smtp。如果服务方在本地主机,则”IP地址“与
  冒号可以省略。
 
  unix代表”Unix domain socket“,而fifo代表”命名管道“(named pipe)。两者均为同机器不同进
  程之间的通信机制,同样使用特殊文件为通信中介。
 服务名称  传送方式 说明
smtp
inet
smtpd daemon的服务名称。此为/etc/service定义的SMTP通信端口代表的名称。
127.0.0.1:10025
inet
位于loopback接口的10025通信端口的服务器组件。
465
inet
位于本的主机的465通信端口的服务器组件。
maildrop unix 一个必须通过Postfix pipe daemon才能访问的服务器组件。
pickup
fifo
一个必须通过FIFO机制才能访问的Postfix组件。


私有的(private)
   仅供Postfix系统自己使用,不开放给Postfix之外的其他软件使用。如本栏标示为Y,表示私有访问(默
   认值),n代表开放公告访问。inet类型的组件必须表示为n,否则外界就无法访问该服务。

非特权的(unpriv)
   是否使用非特权帐户。默认值为y,表示服务组件运行时,只需使用mail_owner参数指定的非特权账户
   (默认值为postfix),即以完成任务所需的最低限度权限来提供服务。对于需要root特权的服务组件,
   此栏必须设定为n。

改变根目录(chroot)
   是否要改变组件的工作根目录,借此提升额外的安全性。工作根目录的位置由main.cf的
   queue_directory参数决定。此栏的默认值为y

唤醒间隔(wakeup)
   某些组件须每隔一段时间被唤醒次,定期执行它们的任务。在时间值后尾随地(?),表示需要该组件时
   才予以唤醒。0表示不必唤醒。此栏的默认值为0。pickup daemon其默认休眠时间为60秒,master
   daemon 每隔1分钟就唤醒pickup一次,要求它检查maildrop队列是否收到新邮件。

进程数上限(maxproc)
   可以同时运行的进程个数的上限。 如没指定,以main.cf的default_process_limit参数为准(默认
   100)。如果设定为0,则无限制。

命令(command)
   最后一栏是运行服务的实际命令。mater daemon假设所有程序文件都放在daemon_directory参数指定
   的目录下(其默认目录为/usr/lib/postfi/)。Postfix的所有程序皆提供“-v"选项,可用来提高日志
   信息的详细程度。此外,可使用-D选项,让Postfix程序产生调试信息给调试程序。

====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -   n   n   -   2   pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop}$
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

dovecot   unix  -       n       n       -      -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d $(recipient)


 






































阅读(1556) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~