Ubuntu Mail Server (1/1)

Introduction

Ubuntu can easily be used as a mail server. As part of the OS installation you can setup the Postfix mail server. The goal of this tutorial is to show how Postfix can be setup on Ubuntu but not to explain Postfix itself. That is covered in our Postfix tutorial.

Prerequisites

This tutorial assumes you are familiar with basic Ubuntu installation and administration. Only the details relevant to mail server administration will be covered here.

More details about general Postfix configuration and administration can be found in our Postfix tutorial.

Installation

xl@Sojourner:~$ telnet 192.168.169.141 25
Trying 192.168.169.141...
Connected to 192.168.169.141.
Escape character is '^]'.
220 postfix1 ESMTP Postfix (Ubuntu)
HELO example.org
250 postfix1
MAIL FROM:user@example.org
250 2.1.0 Ok
RCPT TO:anotheruser@example.org
454 4.7.1 <anotheruser@example.org>: Relay access denied

telnet> quit
Connection closed.

xl@Sojourner:~$ telnet 192.168.169.141 25
Trying 192.168.169.141...
Connected to 192.168.169.141.
Escape character is '^]'.
220 postfix1 ESMTP Postfix (Ubuntu)
HELO example.org
250 postfix1
MAIL FROM:user@example.org
250 2.1.0 Ok
RCPT TO:user@postfix1
550 5.1.1 <user@postfix1>: Recipient address rejected: User unknown in local recipient table

telnet> quit
Connection closed.

blog comments powered by Disqus

Copyright(c) 2006-2017 Xavier Leclercq | Privacy policy

Home
Contact Us
Search