Postfix notes

From Wiki
Revision as of 21:24, 30 October 2015 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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'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