当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : sendmail 编译sendmail.mc以产生需要的sendmail.cf文件 错误
帖子发表于 : 2006-08-10 16:51 

注册: 2006-08-08 20:37
帖子: 9
送出感谢: 0 次
接收感谢: 0 次
发行版: Ubuntu 6.06

包的名称(有bug的): sendmail-8.13.7

摘要: 在编译sendmail.mc以产生需要的sendmail.cf文件:# m4 /etc/sendmail.mc > /etc/mail/sendmail.cf出现的问题。


sendmail.cf是Sendmail的配置文件,它全权决定了Sendmail的属性。这个文件定义邮件服务器为哪个域工作。其中的内容为特定宏,大多数人对它都抱有恐惧心理,因为文件中的宏代码实在是太多。sendmail.cf通常是由一个以mc结尾的文件编译产生。如Redhat自带一个redhat.mc,用户可以自己修改其中的一些设置,使之适合自己。笔者的sendmail.mc 文件内容如下:



divert(-1)

dnl This is the macro config file used to generate the /etc/sendmail.cf

dnl file. If you modify thei file you will have to regenerate the

dnl /etc/sendmail.cf by running this macro config through the m4

dnl preprocessor:

dnl m4 /etc/sendmail.mc > /etc/sendmail.cf

dnl You will need to have the Sendmail-cf package installed for this to work.

include(`/usr/lib/Sendmail-cf/m4/cf.m4')

define(`confDEF_USER_ID',``8:12'')

OSTYPE(`Linux')

undefine(`UUCP_RELAY')

undefine(`BITNET_RELAY')

define(`confAUTO_REBUILD')

define(`confTO_CONNECT', `1m')

define(`confTRY_NULL_MX_LIST',true)

define(`confDONT_PROBE_INTERFACES',true)

define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')

FEATURE(`smrsh',`/usr/sbin/smrsh')

FEATURE(`mailertable',`hash -o /etc/mail/mailertable')

FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')

FEATURE(redirect)

FEATURE(always_add_domain)

FEATURE(use_cw_file)

FEATURE(local_procmail)

MAILER(smtp)

MAILER(procmail)

FEATURE(`access_db')

FEATURE(`blacklist_recipients')

dnl We strongly recommend to comment this one out if you want to protect

dnl yourself from spam. However, the laptop and users on computers that do

dnl not hav 24x7 DNS do need this.

FEATURE(`accept_unresolvable_domains')

dnl FEATURE(`relay_based_on_MX')

bug描述:以下是编译和安装的全过程

root@kim-desktop:~/haha/sendmail/sendmail-8.13.7# ./Build
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/libsm
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/l ibsm
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/libsm'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/libsm'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/libsmutil
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/l ibsmutil
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/libsmutil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/libsmutil'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/libsmdb
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/l ibsmdb
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/libsmdb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/libsmdb'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/sendmail
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/s endmail
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/sendmail'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/sendmail'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/editmap
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/e ditmap
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/editmap'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/editmap'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/mail.local
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/m ail.local
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/mail.local'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/mail.local'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/mailstats
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/m ailstats
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/mailstats'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/mailstats'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/makemap
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/m akemap
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/makemap'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/makemap'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/praliases
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/p raliases
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/praliases'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/praliases'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/rmail
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/r mail
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/rmail'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/rmail'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/smrsh
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/s mrsh
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/smrsh'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/smrsh'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/vacation
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/v acation
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/vacation'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/vacation'
root@kim-desktop:~/haha/sendmail/sendmail-8.13.7# ./Build install
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/libsm
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/l ibsm
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/libsm'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/libsm'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/libsmutil
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/l ibsmutil
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/libsmutil'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/libsmutil'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/libsmdb
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/l ibsmdb
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/libsmdb'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/libsmdb'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/sendmail
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/s endmail
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/sendmail'
if [ ! -d /etc/mail ]; then mkdir -p /etc/mail; else :; fi
install -c -o bin -g bin -m 444 helpfile /etc/mail/helpfile
if [ ! -d /etc/mail ]; then mkdir -p /etc/mail; else :; fi
install -c -o root -g bin -m 0600 statistics /etc/mail/statistics
install -c -o root -g smmsp -m 2555 sendmail /usr/sbin
install: 无效的组 “smmsp”
make[1]: *** [install-sendmail] 错误 1
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/sendmail'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/editmap
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/e ditmap
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/editmap'
install -c -o bin -g bin -m 555 editmap /usr/sbin
install -c -o bin -g bin -m 444 editmap.0 /usr/man/man8/editmap.8
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/editmap'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/mail.local
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/m ail.local
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/mail.local'
NOTE: This version of mail.local is not suited for some operating
systems such as HP-UX and Solaris. Please consult the
README file in the mail.local directory. You can force
the install using 'Build force-install'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/mail.local'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/mailstats
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/m ailstats
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/mailstats'
install -c -o bin -g bin -m 555 mailstats /usr/sbin
install -c -o bin -g bin -m 444 mailstats.0 /usr/man/man8/mailstats.8
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/mailstats'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/makemap
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/m akemap
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/makemap'
install -c -o bin -g bin -m 555 makemap /usr/sbin
install -c -o bin -g bin -m 444 makemap.0 /usr/man/man8/makemap.8
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/makemap'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/praliases
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/p raliases
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/praliases'
install -c -o bin -g bin -m 555 praliases /usr/sbin
install -c -o bin -g bin -m 444 praliases.0 /usr/man/man8/praliases.8
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/praliases'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/rmail
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/r mail
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/rmail'
NOTE: This version of rmail is not suited for some operating
systems. You can force the install using
'Build force-install'.
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/rmail'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/smrsh
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/s mrsh
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/smrsh'
install -c -o bin -g bin -m 555 smrsh /usr/sbin
install -c -o bin -g bin -m 444 smrsh.0 /usr/man/man8/smrsh.8
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/smrsh'
Making all in:
/home/kim/haha/sendmail/sendmail-8.13.7/vacation
Configuration: pfx=, os=Linux, rel=2.6.15-26-386, rbase=2, rroot=2.6, arch=i686, sfx=, variant=optimized
Making in /home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2.6.15-26-386.i686/v acation
make[1]: Entering directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2 .6.15-26-386.i686/vacation'
install -c -o bin -g bin -m 555 vacation /usr/bin
install -c -o bin -g bin -m 444 vacation.0 /usr/man/man1/vacation.1
make[1]: Leaving directory `/home/kim/haha/sendmail/sendmail-8.13.7/obj.Linux.2. 6.15-26-386.i686/vacation'
root@kim-desktop:~/haha/sendmail/sendmail-8.13.7# m4 /etc/sendmail.mc > /etc/mai l/sendmail.cf
/etc/sendmail.mc:8: m4: Cannot open /usr/lib/Sendmail-cf/m4/cf.m4: No such file or directory
root@kim-desktop:~/haha/sendmail/sendmail-8.13.7#


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译