Welcome! Log In Create A New Profile

Advanced

Re: Request for some smtp example with and without auth

Atif Ghaffar
April 03, 2009 06:02PM
Anton,

Thanks for your replies,
They are most useful (and you will be credited in the wiki entry)

Let me try these now and come back to you.

best regards


On Fri, Apr 3, 2009 at 11:51 PM, Anton Yuzhaninov wrote:

> Atif Ghaffar wrote:
>
>> Dear all,
>>
>> For pop and imap its pretty clear and I have documented on the wiki.
>>
>>
>> Can someone please state a short example on how nginx smtp proxy works
>> with a smtp server.
>> The documentation on this is very sparse, If you can forward me to the
>> right direction, I will write myself the documentation on the wiki.
>>
>>
>> Withougt authenticatin (MX)
>>
>> * Is it possible to mutiplex to different real smtp servers (If not, its
>> fine, LVS can do that job)
>>
>
> Nginx send request by http to defined in config server and this server can
> return ip of differend upstreams. So load balancing can be done by this
> "auth" server.
>
>
>> * Is is possible to do something with the header before forwarding the
>> request to the real smtp sever. (How can real smtp server do RBL checks if
>> the IP address is local)
>>
>
> Nginx can say to real smtp server about client's ip via XCLIENT command:
> http://www.postfix.org/XCLIENT_README.html
> xclient also can be used with patched exim:
> http://cebka.pp.ru/blog/patch-exim-xclient
>
> Also RBL check can be performed by nginx+http server.
> Example of such server is:
> http://cebka.pp.ru/hg/nginx-smtp-policy
> (works with pathed libevent: http://cebka.pp.ru/blog/libevent_txt.patch)
>
>
>> * What can nginx do before sending the connection the the smtp server (Can
>> it change/add some headers, can in pass the mail through a filter)?
>>
>
> No, nginx can't change message.
>
>
>>
>> With Authentication
>> Same questions as above. A short example (even in pseudo code) will be
>> very helpful.
>>
>
> Auth server works as for pop3/smtp. Additional header in response can be
> added for bad replays - Auth-Status - it used as smtp error code.
>
> May be the main reason to use nginx as smtp auth proxy - to share auth
> server with pop3/imap.
>
>
>> What to look out on the real smtp server?
>> Does the actual IP goes to the real smtp server?
>>
>>
> MTA can know client's IP also from XCLIENT command.
>
> --
> Anton Yuzhaninov
>
>


--
best regards
Atif Ghaffar
Subject Author Posted

Request for some smtp example with and without auth

Atif Ghaffar April 03, 2009 04:16PM

Re: Request for some smtp example with and without auth

Anton Yuzhaninov April 03, 2009 05:51PM

Re: Request for some smtp example with and without auth

Atif Ghaffar April 03, 2009 06:02PM

Re: Request for some smtp example with and without auth

blacktux April 21, 2009 10:24AM

Re: Request for some smtp example with and without auth

Atif Ghaffar April 04, 2009 03:59PM

Re: Request for some smtp example with and without auth

Anton Yuzhaninov April 04, 2009 05:30PM

Re: Request for some smtp example with and without auth

Maxim Dounin April 04, 2009 07:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready