-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Fawcett wrote:
> For some users I wanted to block pop3 but allow imap from the webmail
> on localhost.
>
> I entered this into usermaps, but it also blocks login to imap from
> 127.0.0.1.
>
> Is anyone using usermap for the purpose or notice something wrong in
> this entry?
>
> INSERT INTO `dbmail_usermap` (`login`, `sock_allow`, `sock_deny`,
> `userid`) VALUES
> ('[EMAIL PROTECTED]','inet:127.0.0.1:143','inet:0.0.0.0:110','[EMAIL
> PROTECTED]');
>
well I can get it working if I make this change, passing in the
sockok as well. (diff file line numbers may not match exactly
since I also have another patch installed on db.c)
- --- dbmail-2.2.9/db.c 2008-02-09 13:08:28.000000000 +0100
+++ dbmail-2.2.9-patch/db.c 2008-03-05 16:20:37.000000000 +0100
@@ -4713,7 +4793,7 @@
sockok = db_get_result(row, 1);
sockno = db_get_result(row, 2);
userid = db_get_result(row, 3);
- - result = dm_sock_compare(clientsock, "", sockno);
+ result = dm_sock_compare(clientsock, sockok, sockno);
/* any match on sockno will be fatal */
if (result) {
TRACE(TRACE_DEBUG,"access denied");
John
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFHzruad4I3jTtt9EIRAoiJAJ0a6PoViLDKaXM9BFw2ofsXeQGMQACfbEs5
OVbn1sLTwBbXN/9Ok/xrwfc=
=DBgN
-----END PGP SIGNATURE-----
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail