Comments (11)
actually i wanted to support real databases only, but I started working on a sqlite backend just for you :)
from bley.
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.
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.
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.
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.
Still not working. BTW I couldn't find any CURRENT_TIMESTAMP in your code.
from bley.
Ew, I should actually push from my local repo :)
Onine now: http://github.com/evgeni/bley/commit/3d3e0601c7f6ab0672276d4dbc8a38759f01a0f9
from bley.
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.
Okay, another fix commited.
Please retry :)
(sorry for you being my sqlite guinea pig ;))
from bley.
Seems to work... finally! :)
Good job.
from bley.
Great, thanks for testing!
I'll close here then, please open a new issue when you find any bugs :)
from bley.
Related Issues (20)
- check documentation HOT 1
- simplify config file parsing HOT 1
- subnet support
- use `trial -j`
- SQLite has CURRENT_TIMESTAMP in UTC
- Make a new release HOT 2
- does not create /run/bley under systemd HOT 1
- does not find whitelist files
- make a list of distros shipping bley
- Table 'bley_status' already exists HOT 2
- Feature Request: bley should add X-Header to mail if it was greylisted HOT 2
- document the status values in the sql tables. HOT 1
- [Enhancement] Directory Structure
- TypeError during setup.py install HOT 1
- A sender too long (or wrong ?) is causing a database error till restart of bley HOT 1
- [wishlist] Documentation update for local exim users
- Documentation missing on doing tests
- mysql bley_log is created bot not populated HOT 2
- Comply with RFC 5782 section 2.1
- check logging after new startup sequence HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bley.