2.用申请的hotmail邮箱向[email protected]发送邮件,邮件内容如下:
subscribe linux-kernel
3.等待回信,将收到邮件,如下:
Confirmation for subscribe linux-kernel
发件人:Majordomo
时 间:2012年5月10日(星期四) 凌晨0:27 (UTC-05:00 华盛顿、多伦多、古巴、智利)
收件人: [email protected]>
Someone (possibly you) has requested thatyour email address be added
to or deleted from the mailing list"[email protected]".
If you really want this action to be taken,please send the following
commands (exactly as shown) back to"[email protected]":
auth e3622bdd subscribe linux-kernel [email protected]
If you do not want this action to be taken,simply ignore this message
and the request will be disregarded.
If your mailer will not allow you to sendthe entire command as a single
line, you may split it using backslashes,like so:
auth e3622bdd subscribe linux-kernel \
If you have any questions about the policyof the list owner, please
contact"[email protected]".
Thanks!
4.回信,内容如下:
auth e3622bdd subscribe linux-kernel [email protected]
至此,尽情享受每天接收>200封linux内核开发邮件的喜悦吧!
Linux服务器发送邮件一般都是基于sendmail进行的,sendmail服务器提供对外的邮件发送功能。
1.安装sendmail服务器安装方法:
#sudo apt-get install sendmail2.然后通过ps查看是否有sendmail进程,如果存在,则安装成功:
#ps -ef|grep sendmailroot 1282 1 0 13:39 ? 00:00:00 sendmail: MTA: accepting connections
3.成功安装sendmail后,就可以向邮件账户发送邮件了,编辑如下文件a.sh,通过chmod 更改权限后执行就可以。
#!/bin/bash/usr/sbin/sendmail -t << EOF
From: Mail test
Sender: zhidao
Subject: mail testing
----------------------------------
This is the mail content ...
muhaha
---------------------------------
EOF
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)