EXIM SMTP !AUTH (??)
Posted: Thu May 08, 2003 5:24 am
I am setting up exim as my mail transport agent.
It works way too well! There is no authentication prompt anywhere.
If I try to configure for authentication:
I set up a PERL script that looks like this:which gives me some kind of encoding.
If I do:
I get:
Then I insert this into the file /etc/exim/passwd:I can now uncomment one of the parts suggested for server side auth. Either "login:" or "plain:"
If I now try to send email using this server as SMTP with the user name "username". Mozilla (1.4a) prompts for a password. Whatever i type in the box, rejects me.
So, I can comment out those "login:" or "plain:" parts of /etc/exim/exim.conf, and have a perfectly working server, without any authentication prompt.
If I try server side authentication "login:" or "plain:", I can't succeed at all, whatever password or no password I submit.
What am I doing wrong?
It works way too well! There is no authentication prompt anywhere.
If I try to configure for authentication:
Code: Select all
######################################################################
# AUTHENTICATION CONFIGURATION #
######################################################################
# Look in the documentation (in package exim-doc or exim-doc-html for
# information on how to set up authenticated connections.
# The examples below are for server side authentication; they allow two
# styles of plain-text authentication against an /etc/exim/passwd file
# which should have user IDs in the first column and crypted passwords
# in the second.
# plain:
# driver = plaintext
# public_name = PLAIN
# server_condition = "${if crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/etc/exim/passwd}{$value}{*:*}}}}}{1}{0}}"
# server_set_id = $1
#
# login:
# driver = plaintext
# public_name = LOGIN
# server_prompts = "Username:: : Password::"
# server_condition = "${if crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/etc/exim/passwd}{$value}{*:*}}}}}{1}{0}}"
# server_set_id = $1
# These examples below are the equivalent for client side authentication.
# They assume that you only use client side authentication to connect to
# one host (such as a smarthost at your ISP), or else use the same user
# name and password everywhere
# plain:
# driver = plaintext
# public_name = PLAIN
# client_send = "^username^password"
#
# login:
# driver = plaintext
# public_name = LOGIN
# client_send = ": username : password"
#
# cram_md5:
# driver = cram_md5
# public_name = CRAM-MD5
# client_name = username
# client_secret = password
# End of Exim configuration fileCode: Select all
#!/usr/bin/perl
use MIME::Base64;
printf ("%s", encode_base64(eval ""$ARGVї0]""));If I do:
Code: Select all
shell>./encodemailpassword apeCode: Select all
YXBlCode: Select all
username YXBIIf I now try to send email using this server as SMTP with the user name "username". Mozilla (1.4a) prompts for a password. Whatever i type in the box, rejects me.
So, I can comment out those "login:" or "plain:" parts of /etc/exim/exim.conf, and have a perfectly working server, without any authentication prompt.
If I try server side authentication "login:" or "plain:", I can't succeed at all, whatever password or no password I submit.
What am I doing wrong?