ubuntu配置邮件服务
2016-08-09 17:50
344 查看
Centos下直接在/etc/mail.rc下配置就可以发送文件了
set from=abc@163.com smtp=smtp.163.com smtp-auth-user=abc@163.com smtp-auth-password=passwd smtp-auth=login
再ubuntu下可以安装ssmtp来实现邮件的发送
首先安装ssmtp
aptitude install ssmtp mailutils
然后再/etc/ssmtp目录下配置
ssmtp.conf的配置文件
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=自己邮箱地址
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=邮箱smtp服务器地址
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=主机名
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
AuthUser=邮箱地址
AuthPass=邮箱密码
Revaliases文件的配置
# sSMTP aliases
#
# Format: local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
root:自己的邮箱:邮箱smtp服务器地址:端口 (如果这里写root,那么只有root用户有权限使用,其他用户使用会报错cannot send message: Process exited with a non-zero status )
#如自己的邮箱是腾讯的企业邮箱:
#root:自己邮箱:imap.exmail.qq.com:465
配置完成后之后用 mail
abc@163.com 发送邮件了
在这里我遇到过一个问题,mail时报错 cannot send message: Process exited with a non-zero status
检查之后发现是我把邮箱密码写错了,修改之后不再报错
如果报这个错有以下可能
1.配置文件写的不正确
2.安装了sendmail之类的邮件服务没有关闭,会导致冲突
3.没有使用root权限来运行mail
set from=abc@163.com smtp=smtp.163.com smtp-auth-user=abc@163.com smtp-auth-password=passwd smtp-auth=login
再ubuntu下可以安装ssmtp来实现邮件的发送
首先安装ssmtp
aptitude install ssmtp mailutils
然后再/etc/ssmtp目录下配置
ssmtp.conf的配置文件
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=自己邮箱地址
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=邮箱smtp服务器地址
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=主机名
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
AuthUser=邮箱地址
AuthPass=邮箱密码
Revaliases文件的配置
# sSMTP aliases
#
# Format: local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
root:自己的邮箱:邮箱smtp服务器地址:端口 (如果这里写root,那么只有root用户有权限使用,其他用户使用会报错cannot send message: Process exited with a non-zero status )
#如自己的邮箱是腾讯的企业邮箱:
#root:自己邮箱:imap.exmail.qq.com:465
配置完成后之后用 mail
abc@163.com 发送邮件了
在这里我遇到过一个问题,mail时报错 cannot send message: Process exited with a non-zero status
检查之后发现是我把邮箱密码写错了,修改之后不再报错
如果报这个错有以下可能
1.配置文件写的不正确
2.安装了sendmail之类的邮件服务没有关闭,会导致冲突
3.没有使用root权限来运行mail
相关文章推荐
- Ubuntu Server 14.04 配置邮件服务发送邮件
- 在 Ubuntu 12.04 上安装和配置邮件服务
- 【转】Ubuntu 12.04上安装和配置Postfix邮件服务详细教程
- Ubuntu中若干服务的配置与安装
- ubuntu 8.04 NFS服务的配置(转)
- Ubuntu系统常用服务配置
- 为Ubuntu 8.0.4 配置SSH服务
- [转载]ubuntu中配置tftp服务
- ubuntu ssh 服务安装 及 防火墙配置
- Ubuntu下 TFTP服务的配置
- Ubuntu 下配置Rsync服务的方法
- RHEL5中配置Sendmail邮件服务 收藏一
- 简单配置Mdeamon邮件服务程序。
- RHEL5中配置Sendmail邮件服务 收藏二
- ubuntu smaba服务配置
- ubuntu常用网络服务配置
- ubuntu中的服务配置工具
- Ubuntu配置SSH服务
- linux环境下安装及配置sendmail服务(邮件服务)
- 为Ubuntu配置ssh服务,方便远程登陆 && ubuntu设置定时关机 && secureCRT显示彩色