sending mail with nginx
Maxim Dounin
mdounin at mdounin.ru
Wed Oct 29 01:51:03 MSK 2008
Hello!
On Tue, Oct 28, 2008 at 04:27:12PM -0400, Liam Morley wrote:
> I've been using nginx to proxy to rails apps, and this has been quite
> successful (thanks). But now I need to host a client's site which has a very
> simple mail contact form (previously written in coldfusion running on IIS).
> Now that I have to port this contact form to linux, the natural thought was
> to use CGI. FastCGI is really overkill, I don't need a persistent process
> just waiting for someone to send mail through a webform.
Since nginx has no CGI support, you should either use backend
server that handles CGI, or set up some FastCGI wrapper for this.
> A FAQ entry on "How
> to use nginx as SMTP proxy with a postfix backend?" looked promising, though
> documentation was empty and I imagine that nginx probably couldn't pass
> parameters in a neat format if at all (though I'd love to be proven wrong-
> how does fastmail.fm send mail?).
This is completely different beast. With mail module, nginx can
be used to proxy smtp/pop3/imap - but this is needed only if you
run [huge] mail server, and has nothing to do with http and html
forms.
[...]
Maxim Dounin
More information about the nginx
mailing list