-----BEGIN PGP SIGNED MESSAGE-----
Dear list,
don't worry, I'm not going to bug you with any additional questions
to the topic ;) I just wanted to sum up with what now works fine, and
share a few last thoughts towards it.
The task was to enable SMTP AUTH on Exim v3.36 using a MySQL database.
The authenticators used are appended below[1].
Oh, yes, there's something not to forget: You must include a "NULL"
username with a bogus password in your SQL database, else anyone can
relay through your server by simply sending empty username and
password (for example by using AUTH LOGIN and then just pressing enter
when the server prompts you).
I hope this helps anyone facing the same troubles I had at the
beginning :)
Best regards,
Johannes mailto:jmp@its-toasted.org
[1]
login:
driver=plaintext
public_name=LOGIN
server_condition = ${if eq{$2} {${lookup mysql{SELECT password FROM
accounts WHERE username='${local_part:$1}'}}}{1}{0}}
server_prompts="Username:: : Password::"
server_set_id=$1
login:
driver=plaintext
public_name= PLAIN
server_condition = ${if eq{$2} {${lookup mysql{SELECT password FROM
accounts WHERE username='${local_part:$1}'}}}{1}{0}}
server_prompts= "Login::"
server_set_id=$1
cram:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup mysql{select password from accounts \
where username = '${quote_mysql:$1}'}}
server_set_id = $1
-----BEGIN PGP SIGNATURE-----
Version: PGP Cyber-Knights Templar build 6.5.8ckt07
Comment: Freiheit stirbt in kleinen Stuecken...
Comment: KeyID: 0x73D62D41
Comment: Fingerprint: 69C0 50A1 C96A FF3F 3F09 6E91 F9B8 B727
iQEVAwUBPRg1Cwt4MvNz1i1BAQGMZQgAt/f7u4xfPnL6pjSh4NTLc+0psev3OdLz
77ijnbSfzvG5LJ5Zy7ovZUnXAvXGc1uOTbsCtmkK5p5l346cCVNmo8yARgL0oHNX
A4pfRMynBG+G+4T+PNB0znwwv5VmF95UqwZux3uL77k3ipCfo1O1q2at90R5ix2w
flWSkuy/QwhZ8TnbgxBRGTUVxo9cAM54pZLTWMRSKmUT2+Vg+Kq5Fh35Fe1uY3iP
9Fdnv9hndPR6SiCjjwHolWevYhekUnOXiasiL7vYOFOvFfekk8f1zH3z/KEGTviS
wdwpdenCDF9IiCtmWXYuNhTMI+dPZYnjHB9Q3G7zQWH4bNSRMQSa5w==
=RarC
-----END PGP SIGNATURE-----
Dear list,
don't worry, I'm not going to bug you with any additional questions
to the topic ;) I just wanted to sum up with what now works fine, and
share a few last thoughts towards it.
The task was to enable SMTP AUTH on Exim v3.36 using a MySQL database.
The authenticators used are appended below[1].
Oh, yes, there's something not to forget: You must include a "NULL"
username with a bogus password in your SQL database, else anyone can
relay through your server by simply sending empty username and
password (for example by using AUTH LOGIN and then just pressing enter
when the server prompts you).
I hope this helps anyone facing the same troubles I had at the
beginning :)
Best regards,
Johannes mailto:jmp@its-toasted.org
[1]
login:
driver=plaintext
public_name=LOGIN
server_condition = ${if eq{$2} {${lookup mysql{SELECT password FROM
accounts WHERE username='${local_part:$1}'}}}{1}{0}}
server_prompts="Username:: : Password::"
server_set_id=$1
login:
driver=plaintext
public_name= PLAIN
server_condition = ${if eq{$2} {${lookup mysql{SELECT password FROM
accounts WHERE username='${local_part:$1}'}}}{1}{0}}
server_prompts= "Login::"
server_set_id=$1
cram:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup mysql{select password from accounts \
where username = '${quote_mysql:$1}'}}
server_set_id = $1
-----BEGIN PGP SIGNATURE-----
Version: PGP Cyber-Knights Templar build 6.5.8ckt07
Comment: Freiheit stirbt in kleinen Stuecken...
Comment: KeyID: 0x73D62D41
Comment: Fingerprint: 69C0 50A1 C96A FF3F 3F09 6E91 F9B8 B727
iQEVAwUBPRg1Cwt4MvNz1i1BAQGMZQgAt/f7u4xfPnL6pjSh4NTLc+0psev3OdLz
77ijnbSfzvG5LJ5Zy7ovZUnXAvXGc1uOTbsCtmkK5p5l346cCVNmo8yARgL0oHNX
A4pfRMynBG+G+4T+PNB0znwwv5VmF95UqwZux3uL77k3ipCfo1O1q2at90R5ix2w
flWSkuy/QwhZ8TnbgxBRGTUVxo9cAM54pZLTWMRSKmUT2+Vg+Kq5Fh35Fe1uY3iP
9Fdnv9hndPR6SiCjjwHolWevYhekUnOXiasiL7vYOFOvFfekk8f1zH3z/KEGTviS
wdwpdenCDF9IiCtmWXYuNhTMI+dPZYnjHB9Q3G7zQWH4bNSRMQSa5w==
=RarC
-----END PGP SIGNATURE-----