Postfix notes

From Wiki
Jump to: navigation, search

Plesk servers use postfix as the MTA.

Aliases are stored in BDB files located in /var/spool/postfix/plesk. You can read the data in these files using the python dbhash module.

me@machine$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
>>> import dbhash
>>> for k, v in dbhash.open('virtual.db').iteritems(): print k, v
...

Hit enter.

  • Mailboxes are located in /var/qmail/mailnames/<domainname>

Delete mail in the queue:

You can delete messages from a specific sender using the following command.

postqueue -p | awk '/www-data/ {print $1}' | postsuper -d -

Rebuild Postfix virtual.db command line:

postmap virtual