# CanNginx Mail Server replace Postfix to listen only?

**URL:** <https://www.ruby-forum.com/t/cannginx-mail-server-replace-postfix-to-listen-only/207077>\
**Category:** NGINX\
**Created:** [May 17, 2011, 8:06pm UTC](https://www.ruby-forum.com/t/cannginx-mail-server-replace-postfix-to-listen-only/207077 "2011-05-17T20:06:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [May 17, 2011, 8:06pm UTC](https://www.ruby-forum.com/t/cannginx-mail-server-replace-postfix-to-listen-only/207077/1 "2011-05-17T20:06:25Z")

</div>

Can the Nginx mail server be used in replacement of Postfix?

I am a bit new to this. However, I have a small, fully functioning,  
unmanaged VPS server, rented from [Linode.com](http://Linode.com), which is setup as a LEMP  
server, running Ubuntu 11.04, Nginx 1.0.2, MariaDB 5.2.6, PHP 5.3.6  
(PHP-FPM), xcache 1.3.1, vBulletin 4.1.2, and Postfix which was setup  
using the following script:

###########################################################

# Postfix

###########################################################

# Installs postfix and configure to listen only on the local

interface.  
Also

# allows for local mail delivery

{  
echo “postfix postfix/main\_mailer\_type select Internet Site” |  
debconf-set-selections  
echo “postfix postfix/mailname string localhost” |  
debconf-set-selections  
echo “postfix postfix/destinations string localhost.localdomain,  
localhost” | debconf-set-selections  
aptitude -y install postfix  
/usr/sbin/postconf -e “inet\_interfaces = loopback-only”  
#/usr/sbin/postconf -e “local\_transport = error:local delivery is  
disabled”

touch /tmp/restart-postfix  
}

############################################################

Can the Nginx mail server be used in the same manner in replacement of  
Postfix?

If so:

(1) Is there good reason not to use the Nginx mail server in such a  
manner?

(2) What do I need to do in order to use the Nginx mail server instead  
of Postfix?

As a matter of information, I recently subscribed to Google Apps for the  
hosted domain. We need Postfix, or the Nginx mail server, only to send  
and receive email from our web applications.

Thank you.

Posted at Nginx Forum:

> **[CanNginx Mail Server replace Postfix to listen only?](https://forum.nginx.org/read.php?2,198821,198821#msg-198821)**
>
> Can the Nginx mail server be used in replacement of Postfix? I am a bit new to this. However, I have a small, fully functioning, unmanaged VPS server, rented from Linode.com, which is setup as a LEMP server, running Ubuntu 11.04, Nginx 1.0.2, MariaDB...

---

<div class="post-metadata">

**Author:** ![lkmcmillen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/41988e/32.png) [@lkmcmillen](https://www.ruby-forum.com/u/lkmcmillen)\
**Post date:** [May 17, 2011, 8:39pm UTC](https://www.ruby-forum.com/t/cannginx-mail-server-replace-postfix-to-listen-only/207077/2 "2011-05-17T20:39:50Z")

</div>

On Tue, May 17, 2011 at 02:05:41PM -0400, lkmcmillen wrote:

> Can the Nginx mail server be used in replacement of Postfix?

No.

–  
Igor S.
