Coder Social home page Coder Social logo

A SQLite backend would be awsome about bley HOT 11 CLOSED

evgeni avatar evgeni commented on June 22, 2024
A SQLite backend would be awsome

from bley.

Comments (11)

evgeni avatar evgeni commented on June 22, 2024

actually i wanted to support real databases only, but I started working on a sqlite backend just for you :)

from bley.

ebrahim avatar ebrahim commented on June 22, 2024

It is always good to have a low profile, low administration choice for lower traffic servers.
BTW SQLite is almost a real standards compliant RDBMS, just not a client/server one. ;-)

from bley.

evgeni avatar evgeni commented on June 22, 2024

I know, I still wonder how good SQLite would perform with table sizes > 1.000.000 rows :)

Anyways, I've just pushed some very basic sqlite support to the sqlite-support banch, mind testing it?

from bley.

ebrahim avatar ebrahim commented on June 22, 2024

I tested it, but it seems it is not working. I tested with MySQL and everything worked. But with SQLite3 it seems it is not inserting anything into database. Because when I open the file with sqlite3 CLI tool, there is no row in bley_status. On the other hand it always greylists my addresses and never releases them, which matches with the other observation. When I manually inserted a row in bley_status, Postfix no more responded after RCPT TO. This is the log, which says little about it (I've set periods to a few minutes, and tested it with MySQL, which worked):

Aug 15 22:45:10 gholam postfix/smtpd[27014]: connect from localhost[127.0.0.1]
Aug 15 22:45:23 gholam postfix/smtpd[27014]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 450 4.7.1 : Recipient address rejected: greylisted, try again later; from= to= proto=ESMTP helo=
Aug 15 22:46:05 gholam postfix/smtpd[27014]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 450 4.7.1 : Recipient address rejected: greylisted, try again later (cached result); from= to= proto=ESMTP helo=
Aug 15 22:47:13 gholam postfix/smtpd[27014]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 450 4.7.1 : Recipient address rejected: greylisted, try again later; from= to= proto=ESMTP helo=
Aug 15 22:48:45 gholam postfix/smtpd[27014]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 450 4.7.1 : Recipient address rejected: greylisted, try again later; from= to= proto=ESMTP helo=
Aug 15 22:51:30 gholam postfix/smtpd[27014]: warning: problem talking to server 127.0.0.1:1337: Connection timed out

from bley.

evgeni avatar evgeni commented on June 22, 2024

Yeah... My fault :)
SQLite does not support NOW(), please retry current sqlite-support HEAD:

commit 3d3e060
Author: Evgeni Golov [email protected]
Date: Mon Aug 16 10:29:50 2010 +0200

use CURRENT_TIMESTAMP instead of NOW()

from bley.

ebrahim avatar ebrahim commented on June 22, 2024

Still not working. BTW I couldn't find any CURRENT_TIMESTAMP in your code.

from bley.

evgeni avatar evgeni commented on June 22, 2024

Ew, I should actually push from my local repo :)
Onine now: http://github.com/evgeni/bley/commit/3d3e0601c7f6ab0672276d4dbc8a38759f01a0f9

from bley.

ebrahim avatar ebrahim commented on June 22, 2024

It now inserts into SQLite3 DB the first time. But for entries that already exist in database it makes Postfix freeze after RCPT TO for a long time and then return this error:

mail from: ebrahim
250 2.1.0 Ok
rcpt to: ebrahim
[long delay here]
451 4.3.5 Server configuration problem

from bley.

evgeni avatar evgeni commented on June 22, 2024

Okay, another fix commited.
Please retry :)

(sorry for you being my sqlite guinea pig ;))

from bley.

ebrahim avatar ebrahim commented on June 22, 2024

Seems to work... finally! :)
Good job.

from bley.

evgeni avatar evgeni commented on June 22, 2024

Great, thanks for testing!

I'll close here then, please open a new issue when you find any bugs :)

from bley.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.