<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.qmailtoaster.org:80/index.php?action=history&amp;feed=atom&amp;title=Enable%2FDisable_POP3%2FSMTP%2FIMAP%2FWebmail_access_for_a_whole_domain</id>
	<title>Enable/Disable POP3/SMTP/IMAP/Webmail access for a whole domain - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.qmailtoaster.org:80/index.php?action=history&amp;feed=atom&amp;title=Enable%2FDisable_POP3%2FSMTP%2FIMAP%2FWebmail_access_for_a_whole_domain"/>
	<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Enable/Disable_POP3/SMTP/IMAP/Webmail_access_for_a_whole_domain&amp;action=history"/>
	<updated>2026-04-08T12:07:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.qmailtoaster.org:80/index.php?title=Enable/Disable_POP3/SMTP/IMAP/Webmail_access_for_a_whole_domain&amp;diff=138&amp;oldid=prev</id>
		<title>Ebroch: Created page with &quot;Below is a set of scripts to enable/disable POP3, SMTP, IMAP/Webmail and relaying for every user in a given domain.  Create a script file, paste the code, and chmod +x it and you are done.  Enjoy!  [Credits to Eric Shubert for the original scripting.]   ----  #!/bin/sh  # script to change settings for all users in a domain  # and disable POP3/SMTP/IMAP/Webmail Access.  # SM - 24/11/10   # USAGE&gt; ./disable_domain.sh yourdomain.net   domain=$1   vpmdir=/home/vpopmail   acc...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Enable/Disable_POP3/SMTP/IMAP/Webmail_access_for_a_whole_domain&amp;diff=138&amp;oldid=prev"/>
		<updated>2024-03-16T16:30:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Below is a set of scripts to enable/disable POP3, SMTP, IMAP/Webmail and relaying for every user in a given domain.  Create a script file, paste the code, and chmod +x it and you are done.  Enjoy!  [Credits to Eric Shubert for the original scripting.]   ----  #!/bin/sh  # script to change settings for all users in a domain  # and disable POP3/SMTP/IMAP/Webmail Access.  # SM - 24/11/10   # USAGE&amp;gt; ./disable_domain.sh yourdomain.net   domain=$1   vpmdir=/home/vpopmail   acc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Below is a set of scripts to enable/disable POP3, SMTP, IMAP/Webmail and relaying for every user in a given domain.&lt;br /&gt;
&lt;br /&gt;
Create a script file, paste the code, and chmod +x it and you are done.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
[Credits to Eric Shubert for the original scripting.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # script to change settings for all users in a domain&lt;br /&gt;
 # and disable POP3/SMTP/IMAP/Webmail Access.&lt;br /&gt;
 # SM - 24/11/10&lt;br /&gt;
&lt;br /&gt;
 # USAGE&amp;gt; ./disable_domain.sh yourdomain.net&lt;br /&gt;
&lt;br /&gt;
 domain=$1&lt;br /&gt;
&lt;br /&gt;
 vpmdir=/home/vpopmail&lt;br /&gt;
&lt;br /&gt;
 acctlist=$(find $vpmdir/domains/$domain -mindepth 1 -maxdepth 1 -type d)&lt;br /&gt;
 for acctpath in $acctlist; &lt;br /&gt;
 do&lt;br /&gt;
    account=${acctpath##*/}&lt;br /&gt;
    address=$account@$domain&lt;br /&gt;
    echo &amp;quot;changing $address&amp;quot;&lt;br /&gt;
    $vpmdir/bin/vmoduser -p -s -w -i -r $address&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # script to revert change settings for all users in a domain&lt;br /&gt;
 # and enable POP3/SMTP/IMAP/Webmail Access.&lt;br /&gt;
 # SM - 24/11/10&lt;br /&gt;
&lt;br /&gt;
 # USAGE&amp;gt; ./UNDO_disable_domain.sh yourdomain.net&lt;br /&gt;
&lt;br /&gt;
 domain=$1&lt;br /&gt;
&lt;br /&gt;
 vpmdir=/home/vpopmail&lt;br /&gt;
&lt;br /&gt;
 acctlist=$(find $vpmdir/domains/$domain -mindepth 1 -maxdepth 1 -type d)&lt;br /&gt;
 for acctpath in $acctlist; &lt;br /&gt;
 do&lt;br /&gt;
   account=${acctpath##*/}&lt;br /&gt;
   address=$account@$domain&lt;br /&gt;
   echo &amp;quot;changing $address&amp;quot;&lt;br /&gt;
    $vpmdir/bin/vmoduser -x $address&lt;br /&gt;
 done&lt;/div&gt;</summary>
		<author><name>Ebroch</name></author>
	</entry>
</feed>