disclaimer:
this info won’t be of much help if you have any experience at all.
lately I’ve had some bullshit come up with postfix and figured I would talk about the few most commonly useful commands to remember.
/usr/sbin/postmap
use: /usr/sbin/postmap somefile
what that does: when you edit files like relocated, transport, and whitelist, you need to run this to generate the .db file that matches those. make your additions, then postmap the file and your email will flow correctly
mailq or /usr/sbin/postqueue -p
use: shows queued messages. this is the crap that hasn’t had a chance to be shipped off. run this a few times and notice nothing seems to be moving and you might have some issues. check your maillog for more info.
/usr/sbin/postqueue -f
once you’ve fixed what you previously broke, this tries to flush/deliver everything in the queue. if you’re a badass and have no spare fucks to give, do…
/usr/sbin/postsuper -d ALL deferred
ok, that just flushes the deferred messages that simply won’t gtfo. remove “deferred” to really be a badass. that’ll kill everything still sitting in there.
your path may differ from this. this is just a pretty typical place to find these commands.
if you’re running this on ubuntu or anything with a gui, go fuck yourself with a barbed overpriced stick. sorry, i dislike ubuntu. ubuntu server w/o gui isn’t such a shitshow, but i still just don’t dig it at all. give me centos or redhat any day.


