chuck

This user hasn't shared any biographical information

Homepage: http://www.ozymo.com


Posts by chuck

Calculate Mail Bandwidth Usage in Plesk

Here’s a little command line hack that will calculate the bandwidth for all maillogs on your Plesk server, for SMTP, and POP/IMAP send and receive:

(echo “smtp:  `(cat maillog maillog.processed && zcat maillog.processed.*) | grep bytes | grep qmail: | awk ‘{sum=sum+$11} END { print sum}’`” && (cat maillog maillog.processed && zcat maillog.processed.*) | grep pop3 | grep LOGOUT | awk ‘{print $13,$14}’ | sed ‘s/,//g;s/….=//g’ | awk ‘{sumrcvd=sumrcvd+$1; sumsent=sumsent+$2} END {print “rcvd: “,sumrcvd,”\n” “sent: “,sumsent}’) | awk ‘{total=total+$2; print} END {print “total: “,total/1024/1024 “MB”}’

Run it from /usr/local/psa/var/log. It outputs something along these lines:

smtp: 397852373
rcvd: 228219
sent: 211813204
total: 581.64MB

Enjoy!
/cs

Rotating 2-sided Cube

Visor for Linux (sort of)

Rotating 2-sided Cube

Rotating 2-sided Cube

I’ve been envious of a friend’s Visor app on her Mac for a while now, and finally decided to do something about it.

More >

Button Implants

Yes, Google’s buttons got bigger.

/cs

Bilbo Blogger

Mostly just trying this bilbo thing out.

/cs

UPDATE: looks like it works pretty good.

Postfix with SASL and TLS

So, I decided to add a little security to the mail system with SASL auth and TLS. We’ll discuss TLS configuration first because I set Postfix up to only allow TLS logins, so testing whether or not SASL is working later requires that TLS be set up, in this particular case.

More >