I'm attempting to secure mail/dovecot by adding the 'allow_nets' option in the MySQL password query. When I do so, I can check mail just fine.
However, any mail that is sent to the mailbox fails with:
My dovecot-mysql.conf file contains :
If I remove the 'allow_nets' from the password_query, everything works fine again.
In the MySQL DB, the 'allow_nets' field contains:
Any ideas what I'm doing wrong? I know it's mostly working - as if I change my IP address to something different, my mail client returns "bad password" like the docs says it should.
However, any mail that is sent to the mailbox fails with:
Code:
Apr 1 09:38:59 localhost dovecot: deliver(brian@*****.com): userdb lookup(brian@*****.com) failed: Internal failure
Code:
connect = host=localhost dbname=*** user=*** password=***
default_pass_scheme = CRYPT
password_query = SELECT password, allow_nets FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, 5003 AS uid, 5003 AS gid FROM mailbox WHERE username = '%u'
In the MySQL DB, the 'allow_nets' field contains:
Code:
127.0.0.1,Postfix IP,My IPaddress