/etc/mail/submit.mc和/etc/mail/submit.cf配置文件也是sendmail服务器的重要文件,它与sendmail.cf和sendmail.mc文件相同.submit.cf是由文件submit.mc编译产生的,以下是submit.mc文件的解释.
divert(-1)
#
# Copyright (c) 2001-2003 Sendmail, Inc. and its suppliers.
# All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
#
# This is the prototype file for a set-group-ID sm-msp sendmail that
# acts as a initial mail submission program.
#
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
define(`confCF_VERSION', `Submit')dnl
上句使用define定义了配置版本
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
上面一句表示,经过proto.m4程序的检查,将_OSTYPE_的值置空
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
上面一句表示,提供了对DECNET的支持
define(`confTIME_ZONE', `USE_TZ')dnl
定义系统时区
define(`confDONT_INIT_GROUPS', `True')dnl
表示禁止使用INIT_GROUPS程序
define(`confPID_FILE', `/var/run/sm-client.pid')dnl
dnl define(`confDIRECT_SUBMISSION_MODIFIERS',`C')
FEATURE(`use_ct_file')dnl
加载了信任的用户名单
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
为原配置文件中的最后一句,定义了msp的IP地址
FEATURE(`msp', `[127.0.0.1]')dnl
阅读(1558) | 评论(0) | 转发(0) |