| Home | Mailinglist | Download | License |
| Documentation | db/suite | db/common | db/base | db/relay | db/user | db/greylist |
db/base - base plugin for the database plugin suite
On the beginning of a SMTP connection this module connects to the configured database. It disconnects when the SMTP connection is closed.
db/base requires the plugin db/common to be installed.
It's tested with qpsmtpd 0.32 and MySQL as database.
All other database plugins must follow the basic plugin db/base - e.g.:
db/base db/relay db/user db/greylist
| Parameter | Example | Optional/Default |
| driver | driver=mysql
| |
| database | database=maildb
| |
| user | user=mailuser
| |
| passwd | passwd=x5fasoe4 | optional |
| notify_email | notify_email=heinz@werner.de | optional |
| notify_from | notify_from=webmaster@myserver.de | default: postmaster@(qp->config->me) |
| notify_from_name | notify_from_name=MYSERVER Mailer | default: QPSMTPD Mail System |
Call: $self->init ( $qp )
$qpCalled from qpsmtpd on startup.
Calls isa_plugin('db/common') and db/common::init ( $qp ).
Call: $self->db_init_config ( $config_fields, $config_fields_empty, $config_fields_default )
$config_fields, $config_fields_empty, $config_fields_defaultCalled from db/common::init.
Sets the local config hashes. See CONFIGURATION.
go top
Call: $self->db_valid_config ()
Called from db/common::init.
Tries to connect to the database calling db/common::db_connect, disconnects on success.
If notify_email is given, validates notify_email and notify_from by calling db/common::db_valid_email.
Calls db/common::db_die on errors.
On errors in db_valid_config qpsmtpd won't start.
Calls db/common::db_notify ( notify_* ).
Calls db/common::db_open.
Returns:
| db/common::db_declined | on success. |
| db/common::db_denysoft_error | on error. |
Calls db/common::db_close.
Returns:
Thanks to Ask Bjoern Hansen for qpsmtpd.
(c) Ernesto 2007, ernesto@dienstleistung-kultur.de
http://dienstleistung-kultur.de/qpsmtpd/
As per the qpsmtpd license.