[exim] Auth for smtp

Pàgina inicial
Delete this message
Reply to this message
Autor: Paulo Andre
Data:  
A: exim
Assumpte: [exim] Auth for smtp
I am trying to set up authentication for smtp, I have the following in
my configurtion:

MYSQL_Q_AUTHPWD2=SELECT crypt FROM MYSQL_UTABLE WHERE id='$2' and
Active='Y'
MYSQL_Q_AUTHPWD1=SELECT crypt FROM MYSQL_UTABLE WHERE id='$1' and
Active='Y'

plain:
  driver = plaintext
  public_name = PLAIN
  server_condition = "${if and { \
                        {!eq{$2}{}} \
                        {!eq{$3}{}} \
                        {crypteq{$3}{${lookup
mysql{MYSQL_Q_AUTHPWD2}{$value}fail}}} \
                        } {yes}{no}}"
  server_set_id = $2


login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = "Username:: : Password::"
  server_condition = "${if and { \
                        {!eq{$1}{}} \
                        {!eq{$2}{}} \
                        {crypteq{$2}{${lookup
mysql{MYSQL_Q_AUTHPWD1}{$value}fail}}} \
                        } {yes}{no}}"
  server_set_id = $1


But still someone can send email without authenticating
Can anyone see something with my conf?

Paulo