• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

where are the mail alias stored?

  • Thread starter Carlos Treviño
  • Start date
C

Carlos Treviño

Guest
I make an OS reload and loose my plesk functionality on the old server but I have the discs and information.

Where are the mail alias stored on the server?
I can't find them on /var/qmail/alias

I need to restore the users alias configuration and I think the data should be somewere phisically on the server but I can't find it any help is appreciated

Thanks
 
The aliases are stored in psa.mail_aliases. The mn_id column references the id in the mail table. The dom_id column in the mail table references the id of the domains table. With that you can build a query that suits your need. For example if you want to know all aliases of a domain name "mydomain.xx" your query could be:

Code:
SELECT a.alias AS alias
FROM psa.mail_aliases AS a
INNER JOIN psa.mail AS b ON b.id = a.mn_id
INNER JOIN psa.domains AS c ON c.id = b.dom_id
WHERE c.name LIKE 'mydomain.xx';
 
The aliases are stored in psa.mail_aliases. The mn_id column references the id in the mail table. The dom_id column in the mail table references the id of the domains table. With that you can build a query that suits your need. For example if you want to know all aliases of a domain name "mydomain.xx" your query could be:

Code:
SELECT a.alias AS alias
FROM psa.mail_aliases AS a
INNER JOIN psa.mail AS b ON b.id = a.mn_id
INNER JOIN psa.domains AS c ON c.id = b.dom_id
WHERE c.name LIKE 'mydomain.xx';
Thank you very much. Since my install was completely broken, instead of having to recover psa database, I also found that aliases can be found in /var/lib/psa/dumps/domains/XXXXXX/backup_info_XXXXX.xml
 
Back
Top