在 AIX 平台下编译安装 Sendmail
2008-09-06 08:20:57 来源:WEB开发网启动 Sendmail 服务与测试
由于 AIX 平台原已内置安装 Sendmail 软件并且成为了后台服务,所以在编译安装新版本以后必须要重启这个服务:
重新启动 Sendmail 后台服务
stopsrc -s sendmail
startsrc -s sendmail -a "-bd -q30m"
检查当前系统中 Sendmail 的运行状态
ps -ef |grep sendmail # 检查 Sendmail 相关进程
sendmail -d0 # 查看 Sendmail 当前版本和相关信息
正常情况下您可以看到如下信息:[xyztest:root:/tmp/sendmail/sendmail-8.14.3:] sendmail -d0
Version 8.14.3
Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NDBM NETINET NETUNIX NIS PIPELINING SCANF XDEBUG
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = xyztest
(canonical domain name) $j = xyztest.test.ibm.com
(subdomain name) $m = test.ibm.com
(node name) $k = xyztest
========================================================
表示您已经成功地安装了 Sendmail v8.14.3
简单测试:发送新邮件
创建一个供测试用临时文件,名为 test1,并且使用该命令发送出去:
uuencode test1 test1 |mail -s test1 your_mail_address # “your_mail_address”为您自己的邮箱地址 如果 Sendmail 安装运行正常,稍等片刻,在您的邮箱中就可以收到该邮件了。
另外您还可以使用这个命令发送邮件:mail -v your_mail_address,您可以看到如下非常详细的邮件发送信息:
xuyingj@cn.ibm.com... Connecting to [127.0.0.1] via relay...
220 testforme ESMTP Sendmail Wed, 25 Jun 2008 04:20:06 -0500
>>> EHLO testforme
250-testforme Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<root@testforme> SIZE=151
250 2.1.0 <root@testforme>... Sender ok
>>> RCPT To:<xuyingj@cn.ibm.com>
250 2.1.5 <xuyingj@cn.ibm.com>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
050 <xuyingj@cn.ibm.com>... Connecting to d23av04.au.ibm.com. via esmtp...
050 220 d23av04.au.ibm.com ESMTP Sendmail 8.12.11.20060308/8.12.11;
Wed, 25 Jun 2008 19:15:43 +1000
050 >>> EHLO testforme
050 250-d23av04.au.ibm.com Hello ciganim.xxxtest.ibm.com [xx.xxx.xxx.xx],
pleased to meet you
050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-8BITMIME
050 250-SIZE 20000000
050 250-DSN
050 250-ETRN
050 250-AUTH CRAM-MD5
050 250-STARTTLS
050 250-DELIVERBY
050 250 HELP
050 >>> MAIL From:<root@testforme> SIZE=406
050 250 2.1.0 <root@testforme>... Sender ok
050 >>> RCPT To:<xuyingj@cn.ibm.com>
050 250 2.1.5 <xuyingj@cn.ibm.com>... Recipient ok
050 >>> DATA
050 354 Enter mail, end with "." on a line by itself
050 >>> .
050 250 2.0.0 m5P9Fhid017367 Message accepted for delivery
050 <xuyingj@cn.ibm.com>... Sent (m5P9Fhid017367 Message accepted for delivery)
250 2.0.0 m5P9K6B503810 Message accepted for delivery
xuyingj@cn.ibm.com... Sent (m5P9K6B503810 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
050 Closing connection to d23av04.au.ibm.com.
050 >>> QUIT
050 221 2.0.0 d23av04.au.ibm.com closing connection
221 2.0.0 testforme closing connection
更多精彩
赞助商链接