Configure exim4 to send mail via Zoho SMTP
Hi, I hope I am in the right forum/sub forum..
I am trying to send my server mail via zoho, but my exim4 config does not work.
I set exim to send mail by smart host and gave the host name smtp.zoho.com::587
In my exim4/passwd.client, I entered the following line:
I also let connection in my iptables config coming in and going out from what appears to be zoho smtp's IP. Here is the following config for iptables:
-
# SMTP
iptables -t filter -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d 74.201.154.90 --dport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -t filter -A OUTPUT -p tcp -s 74.201.154.90 --sport 25 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
iptables -t filter -A OUTPUT -p tcp -s 74.201.154.90 --sport 1024:65535 -d 0/0 --dport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp -s 0/0 --sport 25 -d 74.201.154.90 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
echo - Allow mail server: [OK]
When I look into my exim logs, I get reports like:
- 2014-10-23 11:42:03 1XhEQu-0005Xk-Jd smtp.zoho.com [74.201.154.90] Connection timed out
- 2014-10-23 11:42:03 1XhEQu-0005Xk-Jd == amil_adress@gmail.com R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out
What is the right way to configure exim with zoho ?