Vpopmail - roaming users configuration and Enable/Disable POP3/SMTP/IMAP/Webmail access for a whole domain: Difference between pages
(Difference between pages)
(Created page with "===Vpopmail - roaming users configuration=== If you want to use the vpopmail roaming users configuration option here area few steps to follow : 1. rpm -Uvh vpopmail-toaster*.src.rpm go to (if you didnt set your own .rpmmacros config) /usr/src/redhat/SPECS and edit the file vpopmail-toaster.spec look for the configure options .. (./configure --prefix ....) line and change --disable-roaming-users into --enable-roaming-users .. If you want to add/re...") |
(Created page with "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> ./disable_domain.sh yourdomain.net domain=$1 vpmdir=/home/vpopmail acc...") |
||
Line 1: | Line 1: | ||
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> ./disable_domain.sh yourdomain.net | |||
domain=$1 | |||
vpmdir=/home/vpopmail | |||
acctlist=$(find $vpmdir/domains/$domain -mindepth 1 -maxdepth 1 -type d) | |||
for acctpath in $acctlist; | |||
do | |||
account=${acctpath##*/} | |||
address=$account@$domain | |||
echo "changing $address" | |||
$vpmdir/bin/vmoduser -p -s -w -i -r $address | |||
done | |||
---- | |||
#!/bin/sh | |||
# script to revert change settings for all users in a domain | |||
# and enable POP3/SMTP/IMAP/Webmail Access. | |||
# SM - 24/11/10 | |||
# USAGE> ./UNDO_disable_domain.sh yourdomain.net | |||
domain=$1 | |||
vpmdir=/home/vpopmail | |||
acctlist=$(find $vpmdir/domains/$domain -mindepth 1 -maxdepth 1 -type d) | |||
for acctpath in $acctlist; | |||
do | |||
account=${acctpath##*/} | |||
address=$account@$domain | |||
echo "changing $address" | |||
$vpmdir/bin/vmoduser -x $address | |||
done |
Latest revision as of 10:30, 16 March 2024
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> ./disable_domain.sh yourdomain.net
domain=$1
vpmdir=/home/vpopmail
acctlist=$(find $vpmdir/domains/$domain -mindepth 1 -maxdepth 1 -type d) for acctpath in $acctlist; do account=${acctpath##*/} address=$account@$domain echo "changing $address" $vpmdir/bin/vmoduser -p -s -w -i -r $address done
#!/bin/sh # script to revert change settings for all users in a domain # and enable POP3/SMTP/IMAP/Webmail Access. # SM - 24/11/10
# USAGE> ./UNDO_disable_domain.sh yourdomain.net
domain=$1
vpmdir=/home/vpopmail
acctlist=$(find $vpmdir/domains/$domain -mindepth 1 -maxdepth 1 -type d) for acctpath in $acctlist; do account=${acctpath##*/} address=$account@$domain echo "changing $address" $vpmdir/bin/vmoduser -x $address done