mysqmail-postfix-logger(8)
π NAME π
okay bestie, so mysqmail-postfix-logger β it logs smtp traffic to a mysql database. that's the whole vibe. periodt. π¦
β¨ SYNOPSIS β¨
mysqmail-postfix-logger subprogram [ args ... ]
πΈ DESCRIPTION πΈ
so here's the tea β: mysqmail-postfix-logger reads the syslog using tail -F, and for each line, it does an action in a selected table in the selected mysql server (and yes, all that configuration is done using /etc/mysqmail.conf, iykyk π
).
every single message that has been delivered gets marked as so in the from field and in the to field of the smtp traffic table. not one of them escapes the vibe check π₯.
mysqmail-postfix-logger uses a table corresponding to this one:
CREATE TABLE IF NOT EXISTS smtp_logs (
id int(11) NOT NULL auto_increment,
newmsg_id bigint(20) default NULL,
bounce_qp int(11) default NULL,
bytes int(11) NOT NULL default '0',
sender_user varchar(128) NOT NULL default '',
sender_domain varchar(128) NOT NULL default '',
delivery_id bigint(20) default NULL,
delivery_user varchar(128) NOT NULL default '',
delivery_domain varchar(128) NOT NULL default '',
delivery_success enum('yes','no') NOT NULL default 'no',
time_stamp timestamp(14) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY bounce_qp (bounce_qp),
UNIQUE KEY newmsg_id (newmsg_id),
KEY sender_domain (sender_domain),
KEY delivery_domain (delivery_domain) ) TYPE=MyISAM;
π VERSION π
this documentation describes mysqmail-postfix-logger version 0.1.4. for updates, go look at http://gplhost.com/softwares-mysqmail.html β go get your updates bestie, we love a glow-up π
π«Ά SEE ALSO π«Ά
syslog(3)logger(8)
and that's the page, bestie!! π this lil writeup is from the System Manager's Manual era of mysqmail-postfix-logger(8), and it's lowkey iconic that it's still serving version 0.1.4 realness. go forth and log those smtp lines. slay. π
β¨
π¦ where this page comes from
- debian bookworm: mysqmail-postfix-logger 0.4.9-10.3
- debian trixie: mysqmail-postfix-logger 0.4.9-10.4
- ubuntu jammy: mysqmail-postfix-logger 0.4.9-10.3
- ubuntu questing: mysqmail-postfix-logger 0.4.9-10.4
- ubuntu resolute: mysqmail-postfix-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