Send-only Mail Server with Exim on Ubuntu 11.04

Set the Hostname

Before you begin installing and configuring the components described in this guide, please makesure you've followed our instructions forsetting your hostname.Issue the following commands to make sure it is set properly:

hostname
hostname -f

Configure Exim for Local Mail Service

Issue the following commands to update your package repositories, upgrade your system, and install Exim:

apt-get update
apt-get upgrade
apt-get install exim4-daemon-light mailutils

Issue the following command to start Exim configuration:

dpkg-reconfigure exim4-config

You'll be presented with a welcome screen, followed by a screen asking what type mail delivery you'd like to support. Choose the option for"internet site" and select "Ok" to continue.

Exim4 mail delivery type configuration on Ubuntu 11.04 LTS (Lucid).

Enter your system's FQDN (fully qualified domain name) in the "mail name" configuration screen.

Exim4 system mail name configuration on Ubuntu 11.04 LTS (Lucid).

Enter "127.0.0.1" when asked which IP address to listen on for SMTP connections.

Exim4 listening IP address configuration on Ubuntu 11.04 LTS (Lucid).

Make sure you list your FQDN, hostname, and localhost entries when you're asked which destinations mail should be accepted for.

Exim4 mail destination configuration on Ubuntu 11.04 LTS (Lucid).

Leave the relay domains and relay machines fields blank.

Exim4 relay domains configuration on Ubuntu 11.04 LTS (Lucid). Exim4 relay machines configuration on Ubuntu 11.04 LTS (Lucid).

Select "No" when asked whether to keep DNS queries to a minimum.

Exim4 DNS queries configuration on Ubuntu 11.04 LTS (Lucid).

You may select either "mbox" or "Maildir" when asked about the delivery method used for incoming mail. While many utilities use mbox format,Maildir format can make handling individual locally delivered mail messages easier, and is widely supporting by a range of applications.

Exim4 mail format configuration on Ubuntu 11.04 LTS (Lucid).

Accept the default "non-split" option for your mail configuration file.

Exim4 mail configuration file specification on Ubuntu 11.04 LTS (Lucid).

Enter at least one external email address (choose one that you check frequently) in addition to "root" when asked to specify postmastermail recipients.

Exim4 postmaster recipient configuration on Ubuntu 11.04 LTS (Lucid).

Test Your Mail Configuration

Issue the following command to send a test email, substituting an external email address forsomeone@example.com.

echo "This is a test." | mail -s Testing someone@example.com

Congratulations! You've configured Exim to send email from your Linux VPS.


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值