Hi,

so Paul suggested to try nginx as front-end proxy for dbmail, that makes
ssl.

I tooked his nginx config example but this has some very important part
missing, for example a script that returns the Server and Port.

Anyway the since I use nginx as Proxy for dbmail I have 14 times
dbmail-imapd restarted, maybe by hand or by script. In 20 Days thats
really good for dbmail imapd. The memory usage is ok, sometimes it took
more then 1GB but that seams to drop after some time.

So I would urge everyone to use a frontend proxy if you use ssl and if you
don't use ssl and has customers outside your company network uninstall
your mail server.

Now to nginx, I'm using debian, to install nginx you need the following
commands:
(I write this from memory so I hope I don't miss something)

apt-get install nginx-full php5-fpm php5-mysql

modify /etc/php5/fpm/php.ini
set cgi.fix_pathinfo to 0

copy the attached nginx.conf /etc/nginx and replace all <YOURSERVERNAME>
and <YOURLOCALIP> with the correct values.

copy the attached dbmailauth.php /srv/nginx and set the correct
permissions in dbmailauth.php you need to set your database type and
username/password and database name.

for testing you have to change the ports in nginx.conf and dbmailauth.php

I set my dbmail port to defaultport+20000 thats also in the config

The php script supports APOP and CRAM-MD5, if you don't have plaintext
passwords disable it, if you have plaintext passwords shame on you.

The masterpassword feature is disabled by default and only works if you
have plaintext passwords.

If you have questions replay or come to #dbmail on freenode.

thx Paul for this great software, I think I will test dbmail 3.2 in
production next week.

bye


--
Harald Leithner

ITronic
Wiedner Hauptstraße 120-124/5.1, 1050 Wien, Austria
Tel: +43-1-545 0 604
Fax: +43-1-786 23 88 26
Mobil: +43-699-123 78 4 78
Mail: [email protected] | itronic.at

Attachment: nginx.conf
Description: Binary data

<<attachment: dbmailauth.php>>

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to