Send-only Mail Server with Exim on Ubuntu 11.04
2011-11-14 17:12
597 查看
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.Issuethe 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.
Enter your system's FQDN (fully qualified domain name) in the "mail name" configuration screen.
Enter "127.0.0.1" when asked which IP address to listen on for SMTP connections.
Make sure you list your FQDN, hostname, and localhost entries when you're asked which destinations mail should be accepted for.
Leave the relay domains and relay machines fields blank.
Select "No" when asked whether to keep DNS queries to a minimum.
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.
Accept the default "non-split" option for your mail configuration file.
Enter at least one external email address (choose one that you check frequently) in addition to "root" when asked to specify postmastermail recipients.
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.
相关文章推荐
- Send-only Mail Server with Exim on Ubuntu 10.04 LTS
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server. (文档 ID 885522.1)
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server
- How to Install Laravel with an Nginx Web Server on Ubuntu 14.04(Composer,laravel,nginx)
- Build an IRC Server with Ircd Hybrid and Anope on Ubuntu 14.04
- Pix with mail server access on DMZ
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server
- Setup Syslog with LogAnalyzer on Ubuntu Server
- Nginx HTTP Server + PHP5 (With fast-cgi And xcache) On Ubuntu Feisty Fawn
- svn server with dav_svn and ssl on ubuntu
- VPS: Nginx, PHP5 & ASP.NET with FastCGI on ubuntu-server 10.04 LTS
- Using VNC on a debian/Ubuntu server with a OS X Mac
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server
- [转] --- Error: “A field or property with the name was not found on the selected data source” get only on server
- How to send Email through external SMTP server on Ubuntu 14.04
- How to Install HTTP Git Server With Nginx on Ubuntu 16.04
- Your personal Mail Server iRedMail on ubuntu14.04 x64
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server
- MOUNT MACBOOK DISK (OSX / HFS+) ON UBUNTU 12.04 LTS WITH READ/WRITE