Linux网络管理员手册(20) PLIP空打印机电缆

QMT实盘交易入门:5分钟搞定ETF全球配置策略(附完整代码) 本文详细介绍了如何使用QMT平台实现ETF全球配置策略,从环境准备到策略编写、实盘部署全流程仅需5分钟。通过xtquant库对接交易所接口,提供完整的动量轮动策略代码,帮助投资者快速掌握自动交易技术,优化全球资产配置。 阅读详情
Linux网络管理员手册(20)
2000-07-31 15:41

发布者:netbull 阅读次数:1031
翻译:赵炯
gohigh@shtdu.edu.cn


附录A
PLIP空打印机电缆
为了制作一根用于PLIP连接的空打印机电缆,你需要两个25针的连接器(称为DB-25)和一些具有11根导线的电缆。这根电缆最长不得超过15米。
如果你细看连接器,你应该能够看到在每个引脚根部的小数字,左上角的引脚是1(如果你将宽的一边朝上的话)右下角的引脚是25。对空打印机电缆,你必须按下面的引脚将两个连接器连起来:

D0 2---15 ERROR
D1 3---13 SLCT
D2 4---12 PAPOUT
D3 5---10 ACK
D4 6---11 BUSY
GROUND 25---25 GROUND
ERROR 15--- 2 D0
SLCT 13--- 3 D1
PAPOUT 12--- 4 D2
ACK 10--- 5 D3
BUSY 11--- 6 D4

所有其它的引脚保持为未连接状态。如果这根电缆是带屏蔽的,那么屏蔽层应该只与一端的DB-25的金属外壳相连接。











附录B
smail样本配置文件
本节示出了局域网上一个UUCP末端站点的样本配置文件。它们是基于smail-3.1.28发行版源程序中包括的样本文件的。尽管我对这些文件是如何工作的作了简单的解释,建议你还是去阅读非常精美的smail(8)手册,其中详细讨论了这些文件。一但你已理解了smail配置后面的基本原理,它们是值得一读的。这是很容易的!
示出的第一个文件是routers,它描述了smail的一族路由器。当smail必须将一个消息投递到一给定地址时,它就将该地址依次送到所有路由器去,直到其中一个与之匹配。这里所谓的匹配是指这个路由器在它的数据库中,即它的paths文件、/etc/hosts、或路由器接口的任何路由选择机制中找到了目的主机。
在smail配置文件中的条目总是以一个唯一的名字开始,这个名字确定了相应的路由器、传输方式或导向器。它们后跟定义它们行为的属性列表。这个列表清单由一族全局属性组成,比如象所用的驱动程序(driver),以及只有相应驱动程序能够理解的专用的属性。属性是用逗号分开的,而全局和专用属性族是用分号来分开的。
为了使这些区别更明显,假设你要维护两个独立的路径别名文件;一个含有你的域的路由选择信息,另一个含有含有全局路由选择信息,很可能是从UUCP映射生成的。使用smail,你现在可以在router文件中指定两个路由器,它们都使用路径别名(pathalias)驱动程序。这个驱动程序在一个路径别名数据库中查找主机名。它期望能够在一个私有属性中给予它文件的名称:

#
# pathalias database for intra-domain routing
domain_paths:
driver=pathalias, # look up host in a paths file
transport=uux; # if matched, deliver over UUCP

file=paths/domain, # file is /usr/lib/smail/paths/domain
proto=lsearch, # file is unsorted (linear search)

optional, # ignore if the file does not exist
required=vbrew.com, # look up only *.vbrew.com hosts

#
# pathalias database for routing to hosts outside our domain
world_paths:
driver=pathalias, # look up host in a paths file
transport=uux; # if matched, deliver over UUCP

file=paths/world, # file is /usr/lib/smail/paths/world
proto=bsearch, # file is sorted with sort(1)
optional, # ignore if the file does not exist
-required, # no required domains
domain=uucp, # strip ending “.uucp” before searching

上面在两个routers条目中给出的第二个全局属性定义了当路由器与地址匹配时所用的传输方式。在我们的情况中,消息将使用uux传输来投递。传输方式在transports文件中定义,这将在下面解释。
如果你指定了一个方法文件而不是transports属性,你就可以微调使用哪个传输方式来投递一个消息。方法文件提供了从目标主机到传输方式的映射。这里我们不对此进行讨论。
下面的routers文件定义了一个局域网的要查询解析器库的路由器。然而,在一个Internet主机上,你可能会使用一个处理MX记录的路由器。因此,你应该打开被注释掉的另外一个使用smail内建BIND驱动程序的inet_bind路由器。
在一个混合使用UUCP和TCP/IP的环境中,你可能会遇到这样的问题,在/etc/hosts文件中有你偶尔用SLIP或PPP连接的主机。通常,你仍然想要通过UUCP来为它们发送任何邮件。为了避免inet_hosts驱动程序与这些主机的匹配,你必须将它们放入paths/force文件中。这是另一个路径别名形式的数据库,并在smail查询解析器之前被查询。

# A sample /usr/lib/smail/routers file
#
# force – force UUCP delivery to certain hosts, even when
# they are in our /etc/hosts
force:
driver=pathalias, # look up host in a paths file
transport=uux; # if matched, deliver over UUCP

file=paths/force, # file is /usr/lib/smail/paths/force
optional, # ignore if the file does not exist
proto=lsearch, # file is unsorted (linear search)
-required, # no required domains
domain=uucp, # strip ending “.uucp” before searching

# inet_addrs – match domain literals containing literal
#IP addresses, such as in janet@[191.72.2.1]
inet_addrs:
driver=gethostbyaddr, # driver to match IP domain literals
transport=smtp; # deliver using SMTP over TCP/IP

fail_if_error, # fail if address is malformed
check_for_local, # deliver directly if host is ourself

# inet_hosts – match hostnames with gethostbyname(3N)
# Comment this out if you wish to use the BIND version instead.
Inet_hosts:
Driver=gethostbyname, # match hosts with the library function
Transport=smtp; # use default SMTP

-required, # no required domains
-domain, # no defined domain suffixes
-only_local_domain, # don’t restrict to defined domains

# inet_hosts – alternate version using BIND to access the DNS
#inet_hosts:
#driver=bind, # use built-in BIND driver
#transport=smtp; # use TCP/IP SMTP for delivery
#
#defnames, # use standard domain searching
#defer_no_connect, # try again if the nameserver is down
#-local_mx_okay, # fail (don’t pass through) an MX
# # to the local host

#
# pathalias database for intra-domain routing
domain_paths:
driver=pathalias, # look up host in a paths file
transport=uux; # if matched, deliver over UUCP

file=paths/domain, # file is /usr/lib/smail/paths/domain
proto=lsearch, # file is unsorted (linear search)
optional, # ignore if the file does not exist
required=vbrew.com, # look up only *.vbrew.com hosts

#
# pathalias database for routing to hosts outside our domain
world_paths:
driver=pathalias, # look up host in a paths file
transport=uux; # if matched, deliver over UUCP

file=paths/world, # file is /usr/lib/smail/paths/world
proto=bsearch, # file is sorted with sort(1)
optional, # ignore if the file does not exist
-required, # no required domains
domain=uucp, # strip ending “.uucp” before searching


# smart_host – a partically specified smarthost director
# If the smart_path attribute is not defined in
# /usr/lib/smail/config, this router is ignored.
# The transport attribute is overridden by the global
# smart_transport variable
smart_host:
driver=smarthost, # special-case driver
transport=uux; # by default deliver over UUCP

-path, # use smart_path config file variable


对于本地地址的邮件的处理是在directors文件中配置的。该文件的组成与routers文件相似,其中有一系列的定义每个导向器的条目。导向器并不投递消息,它们仅仅执行一些可能的重定向(例如通过别名)、邮件转发等等。
当将邮件投递到一个本地地址去时,比如是janet,smail依次将用户名送至各个导向器。如果有一个匹配,那么它或者指定一个该消息投递要用的传输方式(例如,到用户的邮件箱文件),或者生成一个新的地址(例如,在评估了一个别名以后)。
由于所包括的安全问题,导向器通常会做很多的检查,看看它们所使用的文件是否是有损安全的。以有些可疑的方法获取的地址(例如,从一个可写的aliases文件中)被标上是不安全的。某些传输驱动程序将会拒绝这样的地址,比如将消息投递到一个文件的传输。
除了这以外,smail也将用户与每个地址相关联。任何读写操作是作为用户来执行的。比如对于投递到janet的邮件箱,地址当然是与janet相关联的。其它的地址,比如那些从aliases文件中获得的地址,是与其他用户相关联的,比如nobody用户。
有关这些特性的详细内容,请参考smail(8)手册页。

# A sample /usr/lib/smail/directors file

# aliasinclude - expand ":include:filename" addresses produced
# by alias files
aliasinclude:
driver=aliasinclude, # use this special-case driver
nobody; # access file as nobody user if unsecure

copysecure, # get permissions from alias director
copyowners, # get owners from alias director

# forwardinclude - expand ":include:filename" addrs produced
# by forward files
forwardinclude:
driver=forwardinclude, # use this special-case driver
nobody; # access file as nobody user if unsecure

checkpath, # check path accessibility
copysecure, # get perms from forwarding director
copyowners, # get owners from forwarding director

# aliases - search for alias expansions stored in a database
aliases:
driver=aliasfile, # general-purpose aliasing director
-nobody, # all addresses are associated
# with nobody by default anyway
sender_okay, # don"t remove sender from expansions
owner=owner-$user; # problems go to an owner address

file=/usr/lib/aliases, # default: sendmail compatible
modemask=002, # should not be globally writable
optional, # ignore if file does not exist
proto=lsearch, # unsorted ASCII file

# dotforward - expand .forward files in user home directories
dotforward:
driver=forwardfile, # general-purpose forwarding director
owner=real-$user, # problems go to the user"s mailbox
nobody, # use nobody user, if unsecure
sender_okay; # sender never removed from expansion

file=~/.forward, # .forward file in home directories
checkowner, # the user can own this file
owners=root, # or root can own the file
modemask=002, # it should not be globally writable
caution=0-10:uucp:daemon, # don"t run things as root or daemons
# be extra careful of remotely accessible home directories
unsecure="~ftp:~uucp:~nuucp:/tmp:/usr/tmp",

# forwardto - expand a "Forward to " line at the top of
# the user"s mailbox file
forwardto:
driver=forwardfile,
owner=Postmaster, # errors go to Postmaster
nobody, # use nobody user, if unsecure
sender_okay; # don"t remove sender from expansion

file=/var/spool/mail/${lc:user}, # location of user"s mailbox
forwardto, # enable "Forward to " check
checkowner, # the user can own this file
owners=root, # or root can own the file
modemask=0002, # under System V, group mail can write
caution=0-10:uucp:daemon, # don"t run things as root or daemons

# user - match users on the local host with delivery to their mailboxes
user: driver=user; # driver to match usernames

transport=local, # local transport goes to mailboxes

# real_user - match usernames when prefixed with the string "real-"
real_user:
driver=user; # driver to match usernames

transport=local, # local transport goes to mailboxes
prefix="real-", # for example, match real-root

# lists - expand mailing lists stored below /usr/lib/smail/lists
lists: driver=forwardfile,
caution, # flag all addresses with caution
nobody, # and then associate the nobody user
sender_okay, # do NOT remove the sender
owner=owner-$user; # the list owner

# map the name of the mailing list to lower case
file=lists/${lc:user},

在成功地进行了路由选择或重定向一个消息以后,smail将消息传给与地址匹配的路由器或导向器指定的传输方式。这些传输方式是在transporst文件中定义的。再一次,一个传输方式是由一族全局和私有选项定义的。
每个条目定义的最为重要的选项是处理传输的驱动程序,例如,pipe驱动程序,它调用在cmd属性中指定的命令。除了这以外,传输方式还可以用许多的全局属性,它在消息头以及很可能在消息体上执行各种变换。例如return_path属性使得传输在消息头中插入一个return_path字段。unix_from_hack属性使得它在以From开始的每行的的前面加上一个>符号。

# A sample /usr/lib/smail/transports file

# local - deliver mail to local users
local: driver=appendfile, # append message to a file
return_path, # include a Return-Path: field
from, # supply a From_ envelope line
unix_from_hack, # insert > before From in body
local; # use local forms for delivery

file=/var/spool/mail/${lc:user}, # location of mailbox files
group=mail, # group to own file for System V
mode=0660, # group mail can access
suffix="/n", # append an extra newline

# pipe - deliver mail to shell commands
pipe: driver=pipe, # pipe message to another program
return_path, # include a Return-Path: field
from, # supply a From_ envelope line
unix_from_hack, # insert > before From in body
local; # use local forms for delivery

cmd="/bin/sh -c $user", # send address to the Bourne Shell
parent_env, # environment info from parent addr
pipe_as_user, # use user-id associated with address
ignore_status, # ignore a non-zero exit status
ignore_write_errors, # ignore write errors, i.e., broken pipe
umask=0022, # umask for child process
-log_output, # do not log stdout/stderr

# file - deliver mail to files
file: driver=appendfile,
return_path, # include a Return-Path: field
from, # supply a From_ envelope line
unix_from_hack, # insert > before From in body
local; # use local forms for delivery

file=$user, # file is taken from address
append_as_user, # use user-id associated with address
expand_user, # expand ~ and $ within address
suffix="/n", # append an extra newline
mode=0600, # set permissions to 600

# uux - deliver to the rmail program on a remote UUCP site
uux: driver=pipe,
uucp, # use UUCP-style addressing forms
from, # supply a From_ envelope line
max_addrs=5, # at most 5 addresses per invocation
max_chars=200; # at most 200 chars of addresses

cmd="/usr/bin/uux - -r -a$sender -g$grade $host!rmail $(($user)$)",
pipe_as_sender, # have uucp logs contain caller
log_output, # save error output for bounce messages
# defer_child_errors, # retry if uux returns an error

# demand - deliver to a remote rmail program, polling immediately
demand: driver=pipe,
uucp, # use UUCP-style addressing forms
from, # supply a From_ envelope line
max_addrs=5, # at most 5 addresses per invocation
max_chars=200; # at most 200 chars of addresses

cmd="/usr/bin/uux - -a$sender -g$grade $host!rmail $(($user)$)",
pipe_as_sender, # have uucp logs contain caller
log_output, # save error output for bounce messages
# defer_child_errors, # retry if uux returns an error

# hbsmtp - half-baked BSMTP. The output files must
# be processed regularly and sent out via UUCP.
hbsmtp: driver=appendfile,
inet, # use RFC 822-addressing
hbsmtp, # batched SMTP w/o HELO and QUIT
-max_addrs, -max_chars; # no limit on number of addresses

file="/var/spool/smail/hbsmtp/$host",
user=root, # file is owned by root
mode=0600, # only read-/writable by root.

# smtp - deliver using SMTP over TCP/IP
smtp: driver=tcpsmtp,
inet,
-max_addrs, -max_chars; # no limit on number of addresses

short_timeout=5m, # timeout for short operations
long_timeout=2h, # timeout for longer SMTP operations
service=smtp, # connect to this service port
# For internet use: uncomment the below 4 lines
# use_bind, # resolve MX and multiple A records
# defnames, # use standard domain searching
# defer_no_connect, # try again if the nameserver is down
# -local_mx_okay, # fail an MX to the local host




来源: Linux自由鸽
简易电梯控制系统设计(两层楼)( (电子科技大学 数字系统实验二 结课验收项目 ) 题目要求: 阅读详情

相关推荐

美亚杯取证比赛必备:Veracrypt挂载+检材解压保姆级教程(附常见错误排查)

本文提供美亚杯数字取证竞赛的Veracrypt挂载与检材解压保姆级教程。详细解析从分卷压缩包解压(密码格式为MeiyaCup+年份)到使用Veracrypt正确挂载加密容器的全流程,并附有常见错误排查与高级应急方案,帮助选手高效突破技术门槛,顺利进入取证分析阶段。

alice7model的博客 1031

解决linux下创建用户时出现 Creating mailbox file: 文件已存在

在linux下用useradd添加用户时,出现错误:Creating mailbox file: 文件已存在? 怎么解决: 原来linux下添加用户后,会在系统里自动加一个邮箱(系统邮箱),路径是:/var/spool/mail/用户名. 可以直接用命令#rm -rf /var/spool/mail/用户名 这样就可以再次添加同一名字的用户. us...

阿正的博客 1680

Windows-Anaconda3+TensorFlow安装教程

测试环境:win10-64位和win7-64位 (系统必须是64位,因为TensorFlow目前只支持64位) 一、安装Anaconda3 1.下载Anaconda3 Anaconda官网链接:link 这里我们选择Windows版本,python3.6-version-64位,如下图所示。 2.下载完成之后,点击安装Anaconda3 注意:安装过程中要选择添加环境变量,如图 待安装完成...

DoctorCuiLab的博客 3086

vsftpd的配置详解

vsftpd的配置详解

miner_k的博客 2974

使用TEA5767和stm32制作一台数字FM收音机

本节我们来使用stm32控制一款集成收音机芯片TEA5767,来制作一台FM收音机。 TEA5767是一款低功耗立体声收音IC,接收频率76MHz~108MHz(适应日本/美国/欧洲各FM频段选择)并可以使用软件进行静音和消除噪音。 主要电性能指标:工作电压:2.5V~5.0V,工作电流10mA,立体声分离度30dB,信噪比60dB,输出信号电平75mV。支持I2C总线通信、3-wire总线。 1)硬件设计 TEA5767芯片外围需要搭配较多的电阻、电容、电感、晶振等器件,而且高频电路的PCB设

小白白学电子 1万+

PX4从放弃到精通(二十七):固定翼姿态控制

固件版本 PX4 1.13.2欢迎交流学习,可加左侧名片。

超维空间科技的博客 6885

CentOS 7.X 源码编译安装MariaDB-10.2.X

CentOS 7 编译安装MariaDB-10.2.XCentOS 7下mariadb-10.1.22 源码编译安装过程笔记,希望对大家有帮助。 下载文件https://mariadb.com/ 或 https://downloads.mariadb.org/mariadb/10.2.11/
源码包的下载下载链接: https://mirrors.tuna.tsinghua.edu.cn/m

海渊_haiyuan的博客 2785

uniapp - 超详细实现播放 svg / svga 格式动画组件插件,用于直播间赠送礼物特效动画或项目动画特效较多的应用(新手小白保姆级教程,提供插件+详细运行示例+使用文档+注意事项+格式说明)

uniappsvga,uniapp播放svga动画,uniapp中使用svga动画详细教程,uniapp播放svga的插件,uniapp有没有调用svga格式动画的组件插件,uinappH5App小程序全端兼容的svga播放器免费好用插件,uniapp好用的svga格式动画插件,在uniapp中使用SVGAPlayer播放svga动画,uniapp中使用svga动画,编译到apph5,uniapp运行svg动画,uniapp怎么使用svga文件格式,uniapp播放svg格式的动画教程,un

🏆 前端领域优质创作者 1万+

Nginx RPM打包

以Nginx为例,练习RPM打包

一条大河 2876

嵌入式开发之瑞芯微RK356x--基本环境搭建

嵌入式环境搭建

NexyHO的博客 617

SAP FICO 金税系统-金税->SAP接口功能开发说明书(接口字段)

SAP FICO 金税系统-金税->SAP接口功能开发说明书(接口字段)

我好像病了的博客 1257

Creating mailbox file:文件已存在解决办法

添加用户时,Creating mailbox file:文件已存在解决办法 我在linux通过useradd oracle添加一个用户时提示: Creating mailbox file:文件已存在 解决办法: [~]#find / -name “*oracle*” 查看这个文件的位置,显示如下: /u1/oracle 删除这个文件,重新添加即可

tanzugan的专栏 1万+

Verilog HDL 100道面试题及参考答案

在 Verilog HDL 中,参数(parameter)和宏定义(define)都可用于定义常量,但它们存在诸多不同之处。参数(parameter)是模块内部的常量定义,具有局部性。它在模块内部起作用,不同模块可以有同名的参数,且值可以不同。参数通常用于定义模块的一些配置信息,例如数据位宽、延迟时间等。参数的定义和使用是在模块的作用域内进行的,通过参数传递可以方便地对模块进行配置。endmodule在上述代码中,WIDTH是一个参数,用于定义加法器的位宽。通过改变WIDTH。

大模型大数据攻城狮的专栏 1731

创建用户的时候提示:Creating mailbox file:文件已存在

创建用户的时候提示:Creating mailbox file:文件已存在,可以先到/var/spool/mail/路径下,把对应文件删除,就可以继续创建以前创建过的用户了。

Laven的专栏 1139

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

解决出现Creating mailbox file: File exists问题,并分析出错原因

此篇博客介绍了解决方法和出错原因 解决办法 当想使用useradd user2创建用户user2时,如果出现了Creating mailbox file: File exists问题。就直接删除/var/spool/mail/和 /home下的之前存在的user2文件。删除后在重...

学习 记录 总结 分享 7086

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

Creating mailbox file: File exists

# /usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle Creating mailbox file: File exists useradd: warning: the home directory already exists. Not copying any file from skel directory into it.

rgb_rgb的博客 6714

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

linux创建新用户出错Creating mailbox file: File exists

在Linux环境下安装oracle时需要创建oracle用户,提示上面这个错误 解决办法1: 重新创建oracle用户: #userdel oracle 切换到/var/spool/mail #rm -rf oracle   解决办法2:网上随便一搜一大把   将root根目录下的文件cp到oracle根目录下,解决文件不匹配 cp /e

zou128865的专栏 3万+

linux下mail使用故障mail: command not found

因为监控的需求,所以写了个简单的脚本将服务器上的信息发送到我的邮箱,脚本编写完后运行,首先出现:   -bash: mail: command not found   后来想起系统当初是最小化安装的,很多工具包都没有安装,接着发现sendmail也没有安装,于是就一并yum安装完事:   yum -y install mailx sendmail   等待安装完后,再次运行

Professorphp的博客 7117

POSTFIX邮局系统搭建全过程

<br />POSTFIX邮局系统搭建全过程<br />(postfix+courier-imap+maildrop+cyrus-sasl+ extman+ SpamAssassin+ clamav+ amavisd-new搭建mail服务器)<br />作者:刘运锋<br />第一篇:邮件系统搭建<br /> <br />一、系统环境:<br />1、  采用Centos 5.5系统也或者是rhel 5.5;<br />2、  内存最好为512M以上;<br />3、  本次采用的系统主机名为mail.x

流云随风 4586

linux中mail未找到命令,Linux mailx 命令 command not found mailx 命令详解 mailx 命令未找到 mailx 命令安装 - CommandNotFound...

显示行号|选择喜欢的代码风格默认GitHubDuneLakeSidePlateauVibrantBlueEightiesTranquilmailx 命令用于发送和接收邮件。mailx 命令安装:-bash: mailx: command not found#Alpineapk add mailx#Arch Linuxpacman -S mailx#CentOSyum install mailx#F...

weixin_32228727的博客 2071

bash: mail: command not found的解决方法

近日,安装了一个最小化的centos6.2 64bit,系统中显示有root用户的mail,想用mail命令查看相关信件, 但发现一个问题: -bash: mail: command not found 呵呵,显然mailx没有安装,于是: yum -y install mailx 然后whois命令也没有 yum -y install jwhois ...

weixin_34417183的博客 519

常见SMTP发送失败原因列表

·The server rejected the message: 554 DT:SPM smtp2 Cannot send message 451 MI:SFQ 0,smtp9,DcCowLD735x2fG1MgWLhAA--.11609S2 1282243 邮件服务器拒绝发送邮件,判断为发送垃圾邮件。建议您检查邮件内容,是否包含一些比较敏感的内容。 ·Cannot send mes

A11085013的专栏 5万+

解决linux下创建用户时出现Creating mailbox file: File exists

在linux下用useradd添加用户时,出现错误: Creating mailbox file: File exists? 为什么会出现这样的问题? 原来linux下添加用户后,会在系统里自动加一个邮箱(系统邮箱) 路径是:/var/spool/mail/用户名. 可以直接用命令#rm -rf /var/spool/mail/用户名 ,这样就可以再次添加同一名字的用户 cd /var/spool/mail rm -rf 用户名 ...

Gblfy_Blog 1740

Linux学习-->如何通过Shell脚本实现发送邮件通知功能?

1、安装和配置sendmail不需要注册公网域名和MX记录(不需要架设公网邮件服务器),通过Linux系统自带的mail命令即可对公网邮箱发送邮件。不过mail命令是依赖sendmail的,所以我们需要先检查安装和配置sendmail。一般系统都自带sendmail,但是只能给内网的邮箱发邮件。如果想给公网的邮箱发邮件(比如qq邮箱)就需要配置sendmail.这里记录sendmail的安装启动配置...

字节卷动 8万+

Creating mailbox file: 文件已存在

在linux下samba添加用户时,出现错误:Creating mailbox file: 文件已存在?   怎么解决:       原来linux下添加用户后,会在系统里自动加一个邮箱(系统邮箱),路径是:/var/spool/mail/用户名.      可以直接用命令#rm -rf /var/spool/mail/用户名    这样就可以再次添加同一名字的用户.

大爱无疆的博客 1815

LINUX命令总结

1、 永久更改ip ifconfig eth0 新ip 然后编辑/etc/sysconfig/network-scripts/ifcfg-eth0,修改ip 2、从Linux上远程显示Windows桌面 安装rdesktop包 3、 手动添加默认网关 以root用户, 执行: route add default gw 网关的IP 想更改网关 vi /etc/sysconfig/netwo

chuyuqing的专栏 7万+
上一篇: Linux网络管理员手册(1)
下一篇: Linux网络管理员手册(19) 第十九章 Newsreader的配置
hem
hem
博客等级 码龄26年 19粉丝 287原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值