Wiki movement
Moderator: GZDoom Developers
I looked through my mail logs yesterday and discovered that mail sent by the wiki was being caught as spam:
So I decided to spend the time to set up postfix properly. For some reason, out-of-the-box, it was able to send e-mails from cron jobs to me just fine, but mail I sent myself got filed away as spam. I was able to fix that, so I can now mail myself from my server without my primary e-mail treating it as spam, yet mail sent by the wiki is still filed as spam. Meh. Maybe once I have zdoom.org pointing there instead of my old host, I can fix that.../var/log/mail.log wrote:(host xxx refused to talk to me: 550 5.7.1 (xxx): Client host rejected: Are you spamer?
host xxx said: 450 <xxx>: Sender address rejected: Domain not found (in reply to RCPT TO command)
Here's another update: I've decided to switch the database from MySQL to PostgreSQL and ran into a bit of a snag. MySQL does not enforce foreign key constraints; PostgreSQL does. This is a problem because over the wiki's lifetime, I deleted several spambot accounts without deleting all references to those accounts. MySQL let me do that when it shouldn't have, so now I need to edit the database dump by hand to remove all these references so that I can successfully import the database into PostgreSQL. In the end, the wiki is probably going to be closed for modification for a day or two while I fix it, rather than the hour I had expected. (Don't worry, the MySQL version of the database that has been used all along still works, so the wiki is still available; you just can't make any changes to it.)
I've said it before and I'll say it again:
.
Am I paranoiac? Probably yesphpbb.com wrote:We encourage only those running the release candidates wanting to test out the new version, it is still recommended to wait for the full release; after all this is a release candidate.

-
- Posts: 307
- Joined: Wed Aug 23, 2006 7:58 am
-
- Posts: 13
- Joined: Fri May 25, 2007 12:20 am
Randy wrote -
> MySQL does not enforce foreign key constraints;
> PostgreSQL does. This is a problem because over the wiki's
> lifetime, I deleted several spambot accounts without
> deleting all references to those accounts. MySQL let me do
> that when it shouldn't have, so now I need to edit the
> database dump by hand to remove all these references
Do you mean editting the database with a text editor ??
Can't you just (in mysql):
For entire database
delete entry where entry.account not in accounts
Or is this what you meant ? (Sorry for my shitty quasi-sql. I ~used~
to now it).
> MySQL does not enforce foreign key constraints;
> PostgreSQL does. This is a problem because over the wiki's
> lifetime, I deleted several spambot accounts without
> deleting all references to those accounts. MySQL let me do
> that when it shouldn't have, so now I need to edit the
> database dump by hand to remove all these references
Do you mean editting the database with a text editor ??
Can't you just (in mysql):
For entire database
delete entry where entry.account not in accounts
Or is this what you meant ? (Sorry for my shitty quasi-sql. I ~used~
to now it).
Technically, you can't. A database is not text. (Only way you can do that is export the whole database to SQL requests, delete it, edit the SQL requests, and then run them. Kinda cumbersome. On the plus side, with a real text editor, you can make regexp-based search & replace.)stevenaaus wrote:Do you mean editting the database with a text editor ?
Yes, that's exactly what I mean. MediaWiki has a script that connects to a MySQL database, dumps it, and massages it into something that PostgreSQL will take. Some of the columns that store user-ids are null on delete, some are cascade on delete, and some are block on delete. I figured the safest way to proceed would be to run the dump, fix the error it flags up, and repeat until there were no errors.stevenaaus wrote:Do you mean editting the database with a text editor ??