有趣生活

当前位置:首页>科技>宏程序mod的用法5.11Sendmailm4宏文件介绍

宏程序mod的用法5.11Sendmailm4宏文件介绍

发布时间:2026-07-21阅读(1)

导读divert(—1)dnlEachdn1isacomment:Delete—charactors—to—Newline,下面我们就来说一说关于宏程序mod的....

divert (—1)dnl Each dn1 is a comment: Delete —charactors —to —New line,下面我们就来说一说关于宏程序mod的用法?我们一起去了解并探讨一下这个问题吧!

宏程序mod的用法(5.11Sendmailm4宏文件介绍)

宏程序mod的用法

1.所有sendmail.mc宏配置文件将定义操作系统类型、文件位置、希望的功能和邮件发送工具及用户列表2.通过以下步骤在sendmail.mc中定义标题

divert (—1)

dnl Each dn1 is a comment: Delete —charactors —to —New line

dnl Pull in definitions from distribution inclnde (‘/usr/share/send mail —cf /m4/cf.m4’)VERSIONID Linux setup for

dnl Pull in operating systen pre —defines

OSTYPE (‘linux’)

dnl tell send mail to ran as UID 8 (mail)

GID 12 (mail)

Define (‘lonfDEF —USER ID’,“8:12”)dnl

dnl disable UUCP relaying also on by defamt undefined (‘BITNET —RECAY’)dnl

dnl Define a 1 minute time for smtp conneltions

define (‘confTRY —NULL —MX —LST’,true)dnl

dnl Do not accept email bound for you directly; valid hosts

dnl showld only go in mailer table

define (‘conf DON’T —RROBE —INTERFACES’,rtue)dnl

dnl Define the locution of the proc mail

define (‘AUAS —FICE’,‘/etc/aliases ’)dnl

dnl place some securiby rostr’c tions

define (‘confPRIVACY —ICAGS’,‘autnwornings,norrfy ,no expn,r ’)

3.通用的m4宏命令

表5.1 通用的m4宏命令

Copyright © 2024 有趣生活 All Rights Reserve吉ICP备19000289号-5 TXT地图HTML地图XML地图