[<<][pool][>>][..]
Sat Jan 11 11:14:15 CET 2014

courier auth smtp

Generate certificate
/usr/bin/openssl req -x509 -newkey rsa:1024 -keyout /etc/exim4/exim.key -out /etc/exim4/exim.crt -days 9000 -nodes




Edit /etc/exim4/exim4.conf:


# main section
daemon_smtp_ports = smtp : 465 : 587
tls_on_connect_ports = 465

# begin authenticators
# comment out sasl

plain_courier_authdaemon:
   driver = plaintext
   public_name = PLAIN
   server_condition = \
      ${if eq {${readsocket{/var/run/courier/authdaemon/socket}\
      {AUTH ${strlen:exim\nlogin\n$2\n$3\n}\nexim\nlogin\n$2\n$3\n}}}{FAIL\n}{no}{yes}}
   server_set_id = $2
   .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS
   server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}
   .endif

login_courier_authdaemon:
   driver = plaintext
   public_name = LOGIN
   server_prompts = Username:: : Password::
   server_condition = ${if eq {${readsocket{/var/run/courier/authdaemon/socket} \
      {AUTH ${strlen:exim\nlogin\n$1\n$2\n}\nexim\nlogin\n$1\n$2\n}}}{FAIL\n}{no}{yes}}
   server_set_id = $1
   .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS
   server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}
   .endif



Don't forget to add in /etc/group:
daemon:x:1:Debian-exim



[Reply][About]
[<<][pool][>>][..]