On Sun, Dec 27, 2009 at 12:06 AM, Rony Bill wrote:
I finally got rid of the invalid hostname and other problems by editing /etc/hosts with a FQDN name (a fake one). I have stopped bind9 to avoid using dns. The problem of host not found still existed for the relay host. Then in one site on the net I saw that the entry for relay host has to be in boxes like relayhost = [relay_smtp_server_address]. This removed all naming and host not found errors but now the only problem is that the relay host is refusing connections. Since I don have my clientś smtp username and password, I was using my own yahoo email id and password with yahooś smtp server as my relay host. It is refusing connections. Then I commented the smtp_auth related lines in main.cf and tried mtnlś open smtp server that does not use authentication but that too refuses connection. Now as a last resort I will try mtnlś regular smtp server with auth.
The link which you gave shows that my main.cf file is already configured accordingly.
I feel very silly while writing this addition. The problem with yahoo refusing connections was that my relay server entry as well as the password file had the yahoo POP server setting instead of SMTP. I was finally able to send a mail from my yahoo account to my gmail account. MTNLś open smtp server is anyway not working all the time. In thunderbird my smtp server is set to 127.0.0.1. Tomorrow I will do the milter_accesscontrol thing. Thanks to everyone who replied and as a serious homework I will later on setup a proper DNS server in my machine just for practice.