<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>PleskHacker &#187; domainservices</title> <atom:link href="http://pleskhacker.com/tag/domainservices/feed/" rel="self" type="application/rss+xml" /><link>http://pleskhacker.com</link> <description>Detailed documentation of the Plesk database</description> <lastBuildDate>Thu, 03 Jun 2010 13:00:52 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Get e-mail account passwords</title><link>http://pleskhacker.com/sql-queries/get-e-mail-account-passwords/</link> <comments>http://pleskhacker.com/sql-queries/get-e-mail-account-passwords/#comments</comments> <pubDate>Fri, 26 Sep 2008 03:13:15 +0000</pubDate> <dc:creator>major</dc:creator> <category><![CDATA[Mail Queries]]></category> <category><![CDATA[MySQL Queries]]></category> <category><![CDATA[accounts]]></category> <category><![CDATA[domains]]></category> <category><![CDATA[domainservices]]></category> <category><![CDATA[mail]]></category> <category><![CDATA[parameters]]></category><guid isPermaLink="false">http://pleskhacker.com/?p=286</guid> <description><![CDATA[Get all e-mail account passwords: SELECT CONCAT_WS&#40;'@',mail.mail_name,domains.name&#41;,accounts.password FROM domains,mail,accounts WHERE domains.id=mail.dom_id AND accounts.id=mail.account_id ORDER BY domains.name ASC,mail.mail_name ASC; Get e-mail account passwords that are made up of only letters: SELECT CONCAT_WS&#40;'@',mail.mail_name,domains.name&#41;,accounts.password FROM domains,mail,accounts WHERE domains.id=mail.dom_id AND accounts.id=mail.account_id AND accounts.password RLIKE BINARY '^[a-z]+$' ORDER BY domains.name ASC,mail.mail_name ASC; Get e-mail account passwords that are made up [...]]]></description> <content:encoded><![CDATA[<p>Get all e-mail account passwords:</p><div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #000099;">CONCAT_WS</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'@'</span><span style="color: #000033;">,</span>mail.mail_name<span style="color: #000033;">,</span>domains.name<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>accounts.<span style="color: #000099;">password</span>
<span style="color: #990099; font-weight: bold;">FROM</span> domains<span style="color: #000033;">,</span>mail<span style="color: #000033;">,</span>accounts 
<span style="color: #990099; font-weight: bold;">WHERE</span> domains.id<span style="color: #CC0099;">=</span>mail.dom_id <span style="color: #CC0099; font-weight: bold;">AND</span> accounts.id<span style="color: #CC0099;">=</span>mail.account_id 
<span style="color: #990099; font-weight: bold;">ORDER BY</span> domains.name <span style="color: #990099; font-weight: bold;">ASC</span><span style="color: #000033;">,</span>mail.mail_name <span style="color: #990099; font-weight: bold;">ASC</span><span style="color: #000033;">;</span></pre></div></div><pre></pre><p>Get e-mail account passwords that are made up of only letters:</p><div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #000099;">CONCAT_WS</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'@'</span><span style="color: #000033;">,</span>mail.mail_name<span style="color: #000033;">,</span>domains.name<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>accounts.<span style="color: #000099;">password</span>
<span style="color: #990099; font-weight: bold;">FROM</span> domains<span style="color: #000033;">,</span>mail<span style="color: #000033;">,</span>accounts
<span style="color: #990099; font-weight: bold;">WHERE</span> domains.id<span style="color: #CC0099;">=</span>mail.dom_id <span style="color: #CC0099; font-weight: bold;">AND</span> accounts.id<span style="color: #CC0099;">=</span>mail.account_id 
<span style="color: #CC0099; font-weight: bold;">AND</span> accounts.<span style="color: #000099;">password</span> <span style="color: #CC0099; font-weight: bold;">RLIKE</span> <span style="color: #990099; font-weight: bold;">BINARY</span> <span style="color: #008000;">'^[a-z]+$'</span>
<span style="color: #990099; font-weight: bold;">ORDER BY</span> domains.name <span style="color: #990099; font-weight: bold;">ASC</span><span style="color: #000033;">,</span>mail.mail_name <span style="color: #990099; font-weight: bold;">ASC</span><span style="color: #000033;">;</span></pre></div></div><p>Get e-mail account passwords that are made up of only letters</p><div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #000099;">CONCAT_WS</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'@'</span><span style="color: #000033;">,</span>mail.mail_name<span style="color: #000033;">,</span>domains.name<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>accounts.<span style="color: #000099;">password</span>
<span style="color: #990099; font-weight: bold;">FROM</span> domains<span style="color: #000033;">,</span>mail<span style="color: #000033;">,</span>accounts
<span style="color: #990099; font-weight: bold;">WHERE</span> domains.id<span style="color: #CC0099;">=</span>mail.dom_id <span style="color: #CC0099; font-weight: bold;">AND</span> accounts.id<span style="color: #CC0099;">=</span>mail.account_id 
<span style="color: #CC0099; font-weight: bold;">AND</span> accounts.<span style="color: #000099;">password</span> <span style="color: #CC0099; font-weight: bold;">RLIKE</span>  <span style="color: #008000;">'^[0-9]+$'</span>
<span style="color: #990099; font-weight: bold;">ORDER BY</span> domains.name <span style="color: #990099; font-weight: bold;">ASC</span><span style="color: #000033;">,</span>mail.mail_name <span style="color: #990099; font-weight: bold;">ASC</span><span style="color: #000033;">;</span></pre></div></div><p>Find domains that are using catch-all accounts:</p><div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> d.name <span style="color: #990099; font-weight: bold;">AS</span> domains<span style="color: #000033;">,</span> p.<span style="color: #990099; font-weight: bold;">value</span> <span style="color: #990099; font-weight: bold;">AS</span> catchall_address
<span style="color: #990099; font-weight: bold;">FROM</span> Parameters p<span style="color: #000033;">,</span> DomainServices ds<span style="color: #000033;">,</span> domains d
<span style="color: #990099; font-weight: bold;">WHERE</span> d.id <span style="color: #CC0099;">=</span> ds.dom_id <span style="color: #CC0099; font-weight: bold;">AND</span> ds.parameters_id <span style="color: #CC0099;">=</span> p.id <span style="color: #CC0099; font-weight: bold;">AND</span> p.parameter <span style="color: #CC0099;">=</span> <span style="color: #008000;">'catch<span style="color: #008080; font-weight: bold;">_</span>addr'</span>
<span style="color: #990099; font-weight: bold;">ORDER BY</span> d.name</pre></div></div>]]></content:encoded> <wfw:commentRss>http://pleskhacker.com/sql-queries/get-e-mail-account-passwords/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching using disk: basic
Object Caching 200/241 objects using disk: basic

Served from: pleskhacker.com @ 2012-05-19 00:15:46 -->
