PDA

View Full Version : [all variants] [SOLVED] postfix/mysql error


spiderbatdad
December 22nd, 2008, 12:18 AM
I can not seem to fix this alone:
postfix/smtpd[11256]: fatal: bad string length 0 < 1: etc/postfix/mysql_mailbox.cf_dbname =

dbname has a value. there is no leading whitespace. This would be from my postfix/mysql_mailbox.cf

Drezard
December 22nd, 2008, 12:25 AM
So usually the database name is in there?

Have you tried it using no whitespace? such as:


..db_name=mydatabase


Give that a go.

Daniel

spiderbatdad
December 22nd, 2008, 01:02 AM
user=XXXXX
password=XXXXXXXX
dbname=mymaildb
table=users
select_field=maildir
where_field=id
hosts=127.0.0.1
additional_conditions = and enabled = 1

spiderbatdad
December 22nd, 2008, 12:52 PM
the result appears to be that imapd-ssl dies...then following a successful authentication, imap drops the connection.
This seems like a fault in the smtpd


EDIT: finally...found a missing / in the path to file in the main.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
in the file /etc/postfix/main.cf