# Mail Proxy

**URL:** <https://www.ruby-forum.com/t/mail-proxy/205883>\
**Category:** NGINX\
**Created:** [April 18, 2011, 2:20am UTC](https://www.ruby-forum.com/t/mail-proxy/205883 "2011-04-18T02:20:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 18, 2011, 2:20am UTC](https://www.ruby-forum.com/t/mail-proxy/205883/1 "2011-04-18T02:20:40Z")

</div>

Ive been fiddeling with nginx’s mail proxy features. I would like to  
know if  
its possible for nginx to proxy mail from non-authenticated senders  
(incoming mail - MX records)?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 18, 2011, 3:17am UTC](https://www.ruby-forum.com/t/mail-proxy/205883/2 "2011-04-18T03:17:25Z")

</div>

Hello!

On Mon, Apr 18, 2011 at 10:20:11AM +1000, SplitIce wrote:

> Ive been fiddeling with nginx’s mail proxy features. I would like to know if  
> its possible for nginx to proxy mail from non-authenticated senders  
> (incoming mail - MX records)?

Yes, in 0.7.22+. You’ll need

```
smtp_auth none;

```

and appropriate authorizer script which will check  
Auth-SMTP-Helo/Auth-SMTP-From/Auth-SMTP-To headers instead of  
normally checked Auth-User/Auth-Pass.

Maxim D.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 18, 2011, 3:37am UTC](https://www.ruby-forum.com/t/mail-proxy/205883/3 "2011-04-18T03:37:11Z")

</div>

Is there any example script for this (preferably in php)? If there isnt,  
is  
there any documentation (Ive read the mail core but it doesnt document  
these  
headers) and ill make a simple PHP script example if I can.

Im guessing Auth-SMTP-To is the backend SMTP server  
as for the other two im not sure their role.
