Re: How to get both sender and recipient address for mail-hook

[email protected] (Ernesto)
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
Am 11.01.2011 12:34 schrieb Tapio Salonsaari:
> I'm building an web-based gui for qpsmtpd and currently I'm
> writing/modifying plugin for white/blacklists per domain.
> 
> My web gui stores black / white lists into psql-database and the idea is
> to do an SQL-search like:
> SELECT * FROM blacklist WHERE sender="$senderdomain" AND
> recipient="$recipientdomain";
> 
> [...] 
>
> I'm not too familiar with qpsmtpd and it's quite possible that I'm going
> to wrong direction in the first place, so if there's something already
> available which would suit my needs better I'm glad to hear about it.
> 
> Any help will be appreciated.
>

Hi Tapio,

maybe you could consider having a look at db/suite, which is a
collection of database-driven plugins showing how to connect qpsmtpd to
a (My)SQL database.

See http://dienstleistung-kultur.de/qpsmtpd/db.shtml

Sincerely,

Ernesto


-- 
Ernst-J. "Ernesto" Johnsdorf
mailto:[email protected]
http://search.cpan.org/~ernesto/
http://dienstleistung-kultur.de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.