| |
Пользовательский логинРеклама: гостиница Ворота Москва Оформляем визы: оформление визы в финляндию. |
Exim - authenticated SMTP using PAMAuthenticated SMTP using PAM
IntroductionFor those of you who wanted to know what the solution was here is a detailed note for your info. This will allow you to do authenticated smtp over ssl with the standard exim just using pam. Pam is an acronym for Pluggable Authentication Modules. You can use pam with a standard linux distribution for example which means that you can have smtp authentication with pam without downloading more software. Required Software:
Compiling eximTo have smtp authentication available in exim, you need to make sure that it is compiled into the exim binary before you configure it. The following settings need to be set in the Makefile before you compile exim. AUTH_PLAINTEXT=yes Configuring eximMake sure you have the following in the exim config file tls_advertise_hosts = * (note: I am using the certificate that courier installs for itself, you will probably wish to point to your own certificate) auth_advertise_hosts = ${if eq {$tls_cipher}{}{}{*}}(This means only connections over ssl will be offered authentication, you do not need this but we do not want users sending their password over unencrypted connections so we use it) begin authenticators Also I have exim run as group exim this group needs read access on /etc/shadow Contents of /etc/pam.d/eximauth required /lib/security/$ISA/pam_env.so This file must be readable by the exim group (the group your exim daemon runs as) otherwise you will get the error 535 Incorrect authentication data (set_id='userid') ConclusionWith the above we are able to do authenticated smtp using standard out of the box exim and the standard pam modules that come with linux. So no need for sassl authd or pam_exim or anything else, it all just works. Hope this is cluefull to those of you trying to do the same. Ron
|