• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Email all E-mail accounts on a server

V

voodoochile

Guest
Hey,

I'm trying to bounce out an email to all e-mail accounts on my psa boxes, and I'm kinda stumped as to where to pull this list of email addresses from.

I'm trying to snag this directly from the database, and I believe it's got something to do with the mn_id column, but I'm not sure as how to tie everything else together. =(

I can do it for main domain contacts, just about anything else, but a 100% listing of all e-mail addy's on a box eludes me somehow. =(


If you might know how to do this, let me know, otherwise, I'll post it here when I figure it out.

Thanks!
 
This little script to list (names, passwords, domains) was posted back in May 2005, in the Plesk 7.0 forum (by wazoo):

select d.name, m.mail_name, a.password from mail m,domains d, accounts a where d.id = m.dom_id and a.id =m.account_id and
m.postbox = 'true' order by d.name,m.mail_name;

It does work for Plesk 7.5.3 as well.

Original thread:

http://forum.plesk.com/showthread.php?threadid=23613&highlight=email+password+list+script

If nothing else, it shows the relationship between the tables and the data you will be looking for, so you can integrate it into your script.
 
Back
Top