Hello
Just wanted to email the squirrelmail-users list that
I have found a solution. It�s a bit of a hack but it
works.
In my previous email I made a discovery that the
following section of code in
class/deliver/Deliver_SMTP.class.php was not passing
the correct information:
$this->authPop($host, '', $username, $pass);
As I stated before the $pass variable was null when I
redirected its value to a file. I followed up on the
suggestion Paul made and looked at a few plugins and
how they handle the decryption of passwords. I found a
line in the SquirrelSpell directory that suited my
needs. I added the following to my version of
Deliver_SMTP.class.php :
$clear_key = OneTimePadDecrypt($key, $onetimepad);
$this->authPop("my.mail.com","110",$username,
$clear_key);
With this configuration, the email sends every time
with different users.
I also removed the if statement:
if ($authpop)
{
$this->authPop($host,'',$username,$pass);
}
Because I want to authPop every time I send email and
also because it looks like the variable is initialized
just before the if statement. $authpop is being set to
false right before the if statement.
Perhaps the intention was to have the user fill in the
blanks, but it would seem if one didn�t examine the
code you wouldn�t execute authPop (because the
$authpop variable is always set to false) even if you
set your configuration to pop before SMTP. In any
event I removed the if statement totally and just
execute the authPop function.
I know decrypting the cookie to get the password is a
bad idea, but I need the real password to sign into my
POP server. I would have to send the password anyway
if I was using any other client. If anyone has a
better solution I�m all ears.
Thank you again for your help. I am now looking
forward to using SquirrelMail as my main email client!
Brian
--- Brian <[EMAIL PROTECTED]> wrote:
> I would like to first thank all of you who respond
> to
> this mail list becuase your probably sick of my
> questions regarding this subject.
>
> That being said I am really having trouble sending
> mail and I have confirmed that the problem has to do
> with the way pop before smtp is handled. I really
> like
> squirrelmail and want to try to get my setup
> working.
>
> As indicated in an earlier email I am having problem
> with the POP before SMTP option. The message
> received
> is:
> Requested action not taken: mailbox name not allowed
> Server replied: 553 sorry, that domain isn't in my
> list of allowed rcpthosts (#5.7.1)
>
> Now the details: in
> /class/deliver/Deliver_SMTP.class.php I see at
> about
> line 40 or so the following code :
> ---------------------------------------------
> if ($authpop)
> {
> $this->authPop($host, '', $username,
> $pass);
> }
> ---------------------------------------------
>
> Now i look at the authPop function and see this is
> indeed the place where a POP authorization will
> occur
> when authpop is true. Ok now as a test i did the
> following:
> -------------------------------------------------
>
$this->authPop("mail.mymailserver.com","110","myuser",
> "mypass");
> -------------------------------------------------
>
> In other words I hard coded the user and password
> passed to the function. When I sent an email after
> this change - it works.
>
> As another test I replaced it with the following:
> ---------------------------------------
> $this->authPop("mail.mymailserver.com","110",
> $username, $pass);
> ---------------------------------------
>
> I tried using the variables for $username and $pass
> to
> authenticate my pop server. No luck. I get the same
> error.
>
> I guess this relates to my last email about how
> passwords are handled. why isnt the $pass variable
> my
> password? Its being supplied with in the authPop
> function. That would indicate that it should have my
> password stored there.
>
> The bottem line is the hard coded function works
> while
> the out of the box function with the variable being
> passed doesnt. How can i get this to work? I
> obviously
> cant hard code in a multi user enviornment.
>
> One more thing I see the initStream fuction
> mentioning
> the $pass variable. It looks like it maybe clearing
> it
> or something. Maybe that is impacting the authPop
> function.
>
> Thanks again for your help
>
> Brian
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Vote for the stars of Yahoo!'s next ad campaign!
>
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic
> Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1
> today.
>
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> --
> squirrelmail-users mailing list
> List Address:
> [EMAIL PROTECTED]
> List Archives:
>
http://sourceforge.net/mailarchive/forum.php?forum_id=2995
> List Info:
>
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users