Hello,
I really need everyone's help on this case which is driving me crazy for about a month now.
We have a process which send out emails, by 2 loops, one after the other:
Code:
MAILTO="email1@server.com email2@server.com"
for i in $MAILTO
do
java utils.SendMail $i /var/somefile /var/somelogfile -subject:"some subject"
done
for i in $MAILTO
do
java utils.SendMail $i /var/somefile /var/somelogfile -subject:"some subject"
done
When you add about 33 valid email addresses to the variable MAILTO, "some" emails are sent out, say for example, 32 recipients in the first loop, errors out on the 33rd, then errors out on ALL on the next loop.
Then I had the idea to let sendmail rest for some time, he might just be exhausted:
Code:
MAILTO="email1@server.com email2@server.com"
for i in $MAILTO
do
java utils.SendMail $i /var/somefile /var/somelogfile -subject:"some subject"
sleep 5
done
and wola, everything is sent out, no matter how many email addresses I add in the MAILTO variable.
The problem is, I am not that familiar with Java and Sendmail.
So, I have the following questions:
1. How can I possibly check the email sending rate limit for my user?
2. How does java know which user to use as the email sender?
3. Where should I look at the class file of util.SendMail
Thanks!