|Richard Scobie||Sep 27, 2005 3:08 pm|
|Eduardo Kienetz||Sep 27, 2005 3:23 pm|
|Jay Lee||Sep 27, 2005 3:23 pm|
|Sam Varshavchik||Sep 27, 2005 3:33 pm|
|Richard Scobie||Sep 27, 2005 4:04 pm|
|Richard Scobie||Sep 27, 2005 4:27 pm|
|vgri...@hotmail.com||Sep 27, 2005 4:36 pm|
|Richard Scobie||Sep 27, 2005 5:07 pm|
|Richard Scobie||Sep 28, 2005 4:25 pm|
|Sam Varshavchik||Sep 28, 2005 5:19 pm|
|Richard Scobie||Sep 28, 2005 5:45 pm|
|Subject:||Re: [Courier-imap] Courier Imap Proxy setup|
|From:||Richard Scobie (rich...@sauce.co.nz)|
|Date:||Sep 28, 2005 4:25:30 pm|
Sam Varshavchik wrote:
Richard Scobie writes:
Am I right in thinking that I cannot use IP addresses instead of names in both the imap config variable PROXY_HOSTNAME= or in the userdb "options=mailhost=" entry?
Assuming I cannot use IP numbers, will adding an entry for the internal server in /etc/hosts be used instead of DNS? I am trying to avoid the DNS complications of the machine in the DMZ.
/etc/hosts should work.
I currently am testing this with a machine on the local network and am able to SSL connect and authuserdb login to it OK, but am not having any success extending this to proxying with the other server - login is refused.
Any help much appreciated.
Completely unrelated. Check the logs on the proxy server, and check its configuration files.
Hmm. I have almost run out of ideas.
/etc/hosts on the proxy (smtpbak), has a valid entry for the account server (smtp.sauce.co.nz)
imap conf has IMAP_PROXY=1 and PROXY_HOSTNAME=smtp.sauce.co.nz
If I log into the proxy as "test", who has a local system account on the proxy and no "options=mailhost=" entry in userdb, all works OK and the proxy log shows:
Sep 29 10:01:20 smtpbak imapd-ssl: Connection, ip=[192.168.4.111] Sep 29 10:01:20 smtpbak imapd-ssl: proxy enabled, but no proxy host defined for test Sep 29 10:01:20 smtpbak imapd-ssl: LOGIN, user=test, ip=[192.168.4.111], protocol=IMAP
If I login as "richard", who has no account on the proxy, but does on the account server and has the following userdb entry, derived from account server files:
richard home=/home/richard|shell=/bin/bash|systempw=$1$kKNLC/NG$8PVwlxDneO9EIBB7ux89R1|gid=508|options=mailhost=smtp.sauce.co.nz|uid=508 508= richard
I get this log on the proxy:
Sep 29 10:04:24 smtpbak imapd-ssl: Connection, ip=[192.168.4.111] Sep 29 10:04:24 smtpbak imapd-ssl: richard: chdir(/home/richard) failed!! Sep 29 10:04:24 smtpbak imapd-ssl: error: No such file or directory Sep 29 10:04:24 smtpbak imapd-ssl: LOGIN FAILED, method=PLAIN, ip=[192.168.4.111] Sep 29 10:04:24 smtpbak imapd-ssl: authentication error: No such file or directory
Logs on the account server, show no sign of a login attempt, which I am assuming is due to the proxy not being able to resolve the account server correctly.