Home > Bash, Linux > Skicka massmail för att lasttesta server

Skicka massmail för att lasttesta server

October 19th, 2010 Leave a comment Go to comments

Here is a bash script that you could run to send yourself 5000 emails

Maybe start by 500 😉 ans wee how you coan connect with Thunderbird if you can go fast true all your email
Then I think youre server is okay

Put these line in a script called send-lot-mail.sh

#!/bin/bash

typeset -i nb=0

while [ $nb -lt 5000 ]
do

 echo -n .
 echo  "." | mail -s "test" PutYOurEmail@yoursomainhere.com
 nb=nb+1
 sleep 0.3

done
Categories: Bash, Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.