• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Mailboxes queries

Manuel

New Pleskian
Hi ,
how can i get the complete list of mail recipient address in plesk 10.4 ?

With this query "select concat(mail.mail_name,"@",domains.name) as address from mail,domains,accounts where mail.dom_id=domains.id and mail.account_id=accounts.id order by address", I get a different number of recipients compared with the Plesk Panel (Home > Tools & Settings; Domains section).

I need a complete list with the four types of mailboxes (mailbox, mail groups, aliases and mailing list).

Thank you
Regards
Manuel
 
Try something like

select mail_name,name,postbox,redirect,mail_group,autoresponder from mail left join domains on mail.dom_id = domains.id inner join accounts where mail.account_id = accounts.id order by name asc, mail_name asc;
 
Thank you Igor for your answer, but I'm still have doubts about the number of records in this query and the summary report in plesk panel, i mean:

The query show me 2,360 records (equal to records in table named "mail"), but the plesk panel show me 2,282 records or mailboxes (i've attached an image). In addition, there is a table named "mail_aliases" that contains 152 records more, and that are not included in the query result.

Any suggestions about this difference ?

Manuel

Captura de pantalla 2016-12-13 a las 11.54.19.png

Try something like

select mail_name,name,postbox,redirect,mail_group,autoresponder from mail left join domains on mail.dom_id = domains.id inner join accounts where mail.account_id = accounts.id order by name asc, mail_name asc;
 
Back
Top