#1
This is a part 2 to my first tutorial, go read that before this 
                                                                                                                                              ---------------------
                                                                                                                                      
PHISHING GUIDE PT 2:
                                                                                                                                   
CREATING EMAIL SERVER  
So youve read part 1 and setup your evilginx2 server and setup your phishlets and are ready to setup your email server to begin sending.

So today we will be discussing how to setup an SMTP server and how to send mass emails with any address that you feel. 

There are two ways you can go about this, 1 is using brevo, the free tier gives you 300 emails a day and smtp access. This is good for relatively small campaigns and you can set it up with a throw away gmail account. the 2  way isnt free but allows unlimited emails per day and this is what we will be covering. 

Requirements:
- Debain server. Use panamaserver.com for this
- Domain. namescheap is the best option.
- MX records in your DNS settings.
- SSL for your mail subdomain.  

Lets start.

Setp1: install email server script

 First, on your server which should already have a domain setup, create a subdomain called smtp or mail or whatever. this will be the domain for your emails so mail.dumbass.com after thats setup. make sure you have ssl for that subdomain as well. and then we can install our email server to do this run these commands 

Code:
sudo apt-get install git
sudo git install https://github.com/LukeSmithxyz/emailwiz.git
cd emailwiz
chmod +x /emailwiz.sh
./emailwiz.sh 

This will install everything required for sending and recieving emails.At some point during the script install you should be prompted to add txt records to your dns records. this can be done through your domain provider after adding these, and creating a user on the mail server. we can move to step 2  

Step2: Spamming 

This can be done locally so switch back to your local terminal and follow along 

This can be done on a KaliVm, we will be using a tool called sendemail for this 

Make sure you have your smtp address, port, and account and password because you will need them 

run this command in kali as root 

Code:
sendemail -xu [username] -xp [passsword] -s [smtp domain:port] -f "SENDER_EMAIL" -t "TO_EMAIL" -u "SUBJECT" -m "MESSAGE"  

Replace whats in the quotes with the required inputs, to send to multiple emails simply use [] and put multiple emails inside.
If you find my posts useful please consider donating !
BITCOIN: 3GFWnF9G2vXtSi24p1saQGjPuJHenawLuY
XMR:82Z4kzrgaB6iV9C8QVStSWVosx9Wn6nu3WUQ9wwdJ4MKQSokRG1wDDLCdH5mpigW5JidAEH5VWZsbJFD9epJkNdf4gvJQj9