个人工具
登录
查看“UbuntuHelp:Mutt”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Mutt”的源代码
来自Ubuntu中文
←
UbuntuHelp:Mutt
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/mutt}} {{Languages|UbuntuHelp:mutt}} == Introduction == '''Mutt''' is a small but very powerful text-based mail client for Unix operating systems. It is great for testing mail server setups and sending email messages via the command line. == Installation == Mutt has '''mail-transport-agent''' as a dependency which means if you don't have a Mail Transport Agent installed on your system and you install Mutt an MTA will also be installed, [[UbuntuHelp:Postfix|Postfix]] being the default. If you want to install a different MTA than Postfix, [[UbuntuHelp:Exim4|Exim4]] for example, you will need to install the package before installing Mutt. If you don't need a full fledged and feature full MTA, but want to send messages using Mutt a good substitute is the '''ssmtp''' package in the Universe repository. '''SSMTP''' can be configured to send mail to a proper MTA or mail hub. '''Mutt''' can be installed from the Main repository see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]] for details. == Sending Messages Via CLI == Once you have Mutt and a MTA installed sending messages via command line or bash script is simple. For example: <pre><nowiki> echo "Test" | mutt -s Hello user@example.com </nowiki></pre> The above command will send a message to ''user@example.com'' with the subject of "Hello" '''(the -s)''' and the word "Test" in the message body. == SSMTP configuration == This section will provide instructions on using the '''ssmtp''' package to deliver mail to another MTA. The SSMTP configuration file is <code><nowiki>/etc/ssmtp/ssmtp.conf</nowiki></code> edit the following options: <pre><nowiki> mailhub=mta.example.com hostname=your_local_machine </nowiki></pre> That should do it, just make sure that you are allowed to relay messages through the host configured in the '''mailhub''' option. === SSMTP with SMTP AUTH === Here are some options you can configure if the '''mailhub''' you are using requires authentication in order to relay messages: <pre><nowiki> AuthUser=username AuthPass=password UseTLS=YES UseSTARTTLS=YES </nowiki></pre> You may not need the ''UseTLS'' and ''UseSTARTTLS'' options. Use these options to configure TLS encryption with the MTA (usually a good idea). '''Note:''' this guide has been tested on Ubuntu 6.06 (Dapper), Ubuntu 7.06 (Feisty), and Ubuntu 7.10 (Gutsy). ---- [[category:CategoryEmail]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Mutt
。