mysqmail-dovecot-logger(8)
π mysqmail-dovecot-logger π
okay bestie, so this one's a system manager's manual page β very official, very demure β for a little program called mysqmail-dovecot-logger π¦. Let's get into it.
β¨ NAME β¨
mysqmail-dovecot-logger β literally just logs dovecot-imapd and dovecot-pop3d traffic straight into a mysql database. no cap. π
πΈ SYNOPSIS πΈ
mysqmail-dovecot-logger subprogram [ args ... ]
that's it, that's the whole vibe. you give it a subprogram, you give it args, it does the thing β¨
π DESCRIPTION π
so the way this works is: mysqmail-dovecot-logger reads the syslog using tail -F (yes, the capital F one, it keeps following, she's persistent π), and for every dovecot line of POP3 and IMAP that corresponds to a disconnection, it writes out the total used bandwidth corresponding to the username. obsessed. π
config gets read from /etc/mysqmail.conf β that's where all the settings live, don't lose her.
and the way it stores stuff? it uses a table corresponding to this one π keep it exact bestie, this is a code block, we do NOT freestyle it:
CREATE TABLE IF NOT EXISTS pop_access (
id varchar(32) NOT NULL default '',
uid int(11) NOT NULL default '65534',
gid int(11) NOT NULL default '65534',
home varchar(255) NOT NULL default '',
shell varchar(255) NOT NULL default '',
mbox_host varchar(120) NOT NULL default '',
crypt varchar(50) NOT NULL default '',
passwd varchar(50) NOT NULL default '',
active int(11) NOT NULL default '1',
start_date date NOT NULL default '0000-00-00',
expire_date date NOT NULL default '0000-00-00',
quota_size int(11) NOT NULL default '0',
type varchar(20) NOT NULL default 'default',
memo text,du bigint(20) NOT NULL default '0',
another_perso varchar(5) NOT NULL default 'no',
redirect1 varchar(255) default NULL,
redirect2 varchar(255) default NULL,
localdeliver varchar(10) NOT NULL default 'yes',
pop3_login_count int(9) NOT NULL default '0',
pop3_transfered_bytes int(14) NOT NULL default '0',
imap_login_count int(9) NOT NULL default '0',
imap_transfered_bytes int(14) NOT NULL default '0',
last_login int(14) NOT NULL default '0',
PRIMARY KEY (id,mbox_host) ) TYPE=MyISAM
it's giving full schema main character energy π note the TYPE=MyISAM at the end, that's vintage, that's heritage, we respect her. π«Ά
π VERSION π
this documentation describes mysqmail-dovecot-logger version 0.4.4 or superior. if you want updates, go peek at http://gplhost.com/softwares-mysqmail.html π
π¦ SEE ALSO π¦
qmail-send(3)syslog(3)logger(8)
go read those too, they're part of the family π
and that's the whole page bestie β¨ this was mysqmail-dovecot-logger(8) from the System Manager's Manual, and if you see a date floating around near the bottom of the original β yeah, that's the manual's date, slay β you're all caught up. now go log some bandwidth, you absolute icon π
πΈ
π¦ where this page comes from
- debian bookworm: mysqmail-dovecot-logger 0.4.9-10.3
- debian trixie: mysqmail-dovecot-logger 0.4.9-10.4
- ubuntu jammy: mysqmail-dovecot-logger 0.4.9-10.3
- ubuntu questing: mysqmail-dovecot-logger 0.4.9-10.4
- ubuntu resolute: mysqmail-dovecot-logger 0.4.9-10.4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms