logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: debian update - Problems with owner_idnr being set to zero causes Forie: msg#00170

mail.imap.dbmail

Subject: RE: debian update - Problems with owner_idnr being set to zero causes Foriegn Key problems

It seems that dbmail -smtp is failing to set the owner_idnr correctly. (logs below)

The first query:

[SELECT user_idnr FROM users WHERE userid='brian@xxxxxxxxxx']

should get the correct userid, since I do when logged into mysql as dbmail user.

mysql> SELECT user_idnr FROM users WHERE userid='brian@xxxxxxxxxx';
+-----------+
| user_idnr |
+-----------+
| 1 |
+-----------+
1 row in set (0.00 sec)

Yet the owner_idnr is set to zero in the next query.

[SELECT mailbox_idnr FROM mailboxes WHERE LOWER(name) = LOWER('INBOX') AND owner_idnr='0']

The queries in the "mysql.log" verify the queries above are running as shown in the mail.log.

It fails on a foriegn key constraing because there is no owner_idnr that is zero.
Removing the foreign keys won't help since dbmail would still assign all the messages to mailbox owner "zero".

Any suggestions?


Below is the pertinet mail.log info.

Feb 23 02:46:20 debian dbmail/smtp[9699]: dbmysql.c,db_query: executing query [SELECT user_idnr FROM users WHERE userid='brian@xxxxxxxxxx']
Feb 23 02:46:20 debian dbmail/smtp[9699]: pipe.c, resolve_address: added user [brian@xxxxxxxxxx] id [1] to delivery list
Feb 23 02:46:20 debian dbmail/smtp[9699]: misc.c,create_unique_id: created: d17f8f3488fea9f4c832fa2393756465
Feb 23 02:46:20 debian dbmail/smtp[9699]: dbmysql.c,db_query: executing query [SELECT mailbox_idnr FROM mailboxes WHERE LOWER(name) = LOWER('INBOX') AND owner_idnr='0']
Feb 23 02:46:20 debian dbmail/smtp[9699]: dbmysql.c,db_query: executing query [INSERT INTO mailboxes (name, owner_idnr,seen_flag, answered_flag, deleted_flag, flagged_flag, recent_flag, draft_flag, permission) VALUES ('INBOX', '0', 1, 1, 1, 1, 1, 1, 2)]
Feb 23 02:46:20 debian dbmail/smtp[9699]: dbmysql.c,db_query: query [INSERT INTO mailboxes (name, owner_idnr,seen_flag, answered_flag, deleted_flag, flagged_flag, recent_flag, draft_flag, permission) VALUES ('INBOX', '0', 1, 1, 1, 1, 1, 1, 2)] failed
Feb 23 02:46:20 debian dbmail/smtp[9699]: dbmysql.c,db_query: mysql_real_query failed: Cannot add or update a child row: a foreign key constraint fails


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation