/*
 +-----------------------------------------------------------------------+
 | RoundCube Webmail IMAP Client                                         |
 | Version 0.1-20051021                                                  |
 |                                                                       |
 | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | Redistribution and use in source and binary forms, with or without    |
 | modification, are permitted provided that the following conditions    |
 | are met:                                                              |
 |                                                                       |
 | o Redistributions of source code must retain the above copyright      |
 |   notice, this list of conditions and the following disclaimer.       |
 | o Redistributions in binary form must reproduce the above copyright   |
 |   notice, this list of conditions and the following disclaimer in the |
 |   documentation and/or other materials provided with the distribution.|
 | o The names of the authors may not be used to endorse or promote      |
 |   products derived from this software without specific prior written  |
 |   permission.                                                         |
 |                                                                       |
 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   |
 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     |
 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  |
 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      |
 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   |
 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  |
 |                                                                       |
 +-----------------------------------------------------------------------+
 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
 +-----------------------------------------------------------------------+

 $Id: index.php,v 1.12 2005/10/20 22:20:05 roundcube Exp $

*/

So the most recent version, from what I'm seeing. The only line that has local host in program/include/rcube_smtp.inc is line 61:
 $SMTP_CONN = new Net_SMTP($CONFIG['smtp_server'], $smtp_port, 'localhost');

I was looking around for other SMTP files, and I have under program/lib/Net/SMTP.php with many localhost listings, but nothing, sorry to say, I'd know what to do with. I've attempted changing all localhost references to my server location, both IP and DNS name, nada.


Mojo Jojo wrote:
If you know where to verify my version number, I am sure this will be a start in the right direction. Once we know we are running the same version, I can find you an exact file name and line number.
 
Todd
----- Original Message -----
From: Brady J. Frey
To: Mojo Jojo
Cc: RoundCube Users
Sent: Thursday, February 09, 2006 11:49 PM
Subject: Re: Outbound email fails via smtp

Well, no dice, I reinstalled, downloaded multiple times, and I do not have a helo line anywhere, just my SMTP_CONN line... so I have no idea what I'm missing in my files. The irony being I got it to work on a Linux Shared hosting environment, but not on our personal servers with rather aggressive spam protection -- and that server's a dedicated in house web server, with the other mail server at a separate IP, so I'm sure you're onto something, but nothings working for me.

Mojo Jojo wrote:
I didn't install via CVS, I just downloaded the tar.gz from the RoundCube site.
----- Original Message -----
From: Brady J. Frey
To: Mojo Jojo
Cc: RoundCube Users
Sent: Thursday, February 09, 2006 6:53 PM
Subject: Re: [RoundCube Users] Outbound email fails via smtp

Wow, I don't have that line at all -- I have:
    $SMTP_CONN = new Net_SMTP($CONFIG['smtp_server'], $smtp_port, 'localhost);

I take it that my CVS version is not current then, and should do a patch -- changing that to my web address did not work for me.

Mojo Jojo wrote:
If you are interested this is what I found out and how I fixed our install, it's now working perfectly!
 
The problem was that RoundCube was doing the EHLO to our mail server and claiming to be localhost (which it's not) instead of the actual hostname (roundcube.whatever.com). Our mail server saw this as a SPAM attempt in which the spammer was claiming to be localhost which is what they do many times.
 
To fix this, I did some digging in the code and found a file eventually named rcube_smtp.inc which is in the program/include directory.
 
I found this line:
$helo_host = !empty($_SERVER['server_name']) ? $_SERVER['server_name'] : 'localhost';
 
and changed it to:
$helo_host = !empty($_SERVER['server_name']) ? $_SERVER['server_name'] : 'roundcube.mydomain.com';
 
Where roundcube.mydomain.com is the full hostname of the server running the RoundCube code.
 
Hope this helps!
 
--Todd
 
--
Start Your Own Internet Service!
http://www.YourOwnISP.com
 
----- Original Message -----
Sent: Thursday, February 09, 2006 1:59 PM
Subject: [RoundCube Users] Outbound email fails via smtp

I've attempted to program all settings into our server for outbound email usage, but to no avail. Currently we're a Cyrus OS X server, with smtp, password authorization required for outbound sending of messages. Now, I get the %u/p parts, and I have it set to the proper smtp address... should I not just be using 'LOGIN' as the password protocal? I've essentially tried all, and none seem to work, I'm wondering if there's a different outbound preference I should put in there that I'm not seeing? Thanks all!

p.s. -- I second the archival request.

--
Brady J. Frey
creative director // dotfive

www.dotfive.com


--
Brady J. Frey
creative director // dotfive

www.dotfive.com



--
Brady J. Frey
creative director // dotfive

1960 California St., Suite #23
San Francisco, CA 94109
ph: 415.354.1076
www.dotfive.com