I'd suggest automating this whole thing so that you don't have to continue to worry about it.
The iptables -I OUTPUT -p tcp --dport 587 -j DROP should be included in your basic system configuration, which probably lives in /etc/sysconfig/iptables on your machine.
Drop this script into an editor and save it someplace, then mark it executable with chmod. As an example, I placed it in /opt/sysadminscripts/iptables.smtp.gmail.sh
#!/bin/bash
IPLIST=$(host smtp.gmail.com | grep 'has address' | awk '{print $4}')
for x in $IPLIST
do
$(iptables -L -nv | grep "$x" >> /dev/null)
if [[ "$?" -ne '0' ]]; then
$(iptables -I OUTPUT -p tcp -m tcp -d "$x" --dport 587 -j ACCEPT)
fi
done
Then add an entry in your system crontab similar to this:
*/10 * * * * root /opt/sysadminscripts/iptables.smtp.gmail.sh
Make sure that the line is NOT the last line in your /etc/crontab. If the line doesn't have a terminating line feed, it won't run. (I recommend keeping a comment as the last line of /etc/crontab.)