vtiger.com - Home of vtiger CRM
Home Products Downloads Support Buy Support Partners Company  Community Forums Blogs   Extensions  
Call Us : +1 408-733-3229
 
Log in

Register | Forgot password ?
<<September 2010>>
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

 Search this forum

SourceForge.net Logo


1and1 hosted server installation Bug Tracker | Installation | Webmail
Post new topic   Reply to topic  Forum Home -> Help - 5.0.4 Previous topic :: Next topic
Goto page Previous  1, 2, 3, 4  Next

Post  vikas   Post subject: Re: 1and1 hosted server installation
     Senior Member
Tue Mar 31, 2009 7:25 am 
Posts: 201 
 
  Reply with quote
The output of SMTP will appear in the UI itself like in the Compose template ,when you send mail it will print it there.

    View user's profile Send private message Send e-mail

Post  googol   Post subject: Re: 1and1 hosted server installation
     
Tue Mar 31, 2009 10:33 am 
Posts: 34 
 
  Reply with quote
Thanks vikas. I can see the output for a second after I send an email, but I disappears as soon as the email module re-appears. Any idea how I can capture the smtp debug output? Thanks

    View user's profile Send private message

Post  vikas   Post subject: Re: 1and1 hosted server installation
     Senior Member
Tue Mar 31, 2009 10:56 am 
Posts: 201 
 
  Reply with quote
when you see the message immediately click on the esc and check its Page source.You will see the sequence of action taken to send mail.

    View user's profile Send private message Send e-mail

Post  googol   Post subject: Re: 1and1 hosted server installation
     
Tue Mar 31, 2009 12:23 pm 
Posts: 34 
 
  Reply with quote
Okey dokey Smile

After much trial and error (and finger twitching), I managed to get the SMTPDebug output. There are 2 issues which come to light.

The first time I used the server mrvnet.kundenserver.de because Vtiger seems to be able to resolve it's ip address and contact the server. The error in the SMTP log is as follows:

"ERROR: AUTH not accepted from server: 504 LOGIN mechanism not supported"

I then changed the server address to auth.smtp.1and1.co.uk. I could not do this from the settings screen as Vtiger gives the error "Mail could not be sent to the admin user. Please check the admin emailid/Server settings" Instead I used Phpmyadmin and edited the table directly. This time there is no debug output, only the error "Please check the current user mailid.It should be a valid mailid to send Emails"

Any more ideas anyone?

    View user's profile Send private message

Post  vikas   Post subject: Re: 1and1 hosted server installation
     Senior Member
Wed Apr 01, 2009 5:07 am 
Posts: 201 
 
  Reply with quote
Hi since you have edited the table directly it doesn't mean your outgoing server is configured.Usually you will get this message when it is not configured.Did you increase the Timeout in class.phpmailer.php file?

    View user's profile Send private message Send e-mail

Post  googol   Post subject: Re: 1and1 hosted server installation
     
Wed Apr 01, 2009 6:41 am 
Posts: 34 
 
  Reply with quote
Hi vikas. I edited the table manually because it's the only way I could get the server name accepted. Using the correct method in settings/outgoing server always gives an error. However I have found that this problem is not just a Vtiger one. I installed Sugarcrm to see if that suffered from the same issues, and it does. The error message it gives is:

"Warning: fsockopen() [function.fsockopen]: unable to connect to tcp://auth.smtp.1and1.co.uk:25 (Connection refused) in /homepages/15/d81613494/htdocs/sugarcrm/include/phpmailer/class.smtp.php on line 104
Error emailing:SMTP Error: Could not connect to SMTP host."

There is clearly an issue with 1and1 not allowing access to it's mail server using scripts. However Sugarcrm lets me choose to use Sendmail instead of SMTP and Sendmail works correctly. Is there any way to make Vtiger use Sendmail instead of SMTP?

I will email 1and1 to see if they can throw any more light on the mater.

    View user's profile Send private message

Post  googol   Post subject: Re: 1and1 hosted server installation
     
Wed Apr 01, 2009 1:02 pm 
Posts: 34 
 
  Reply with quote
OK, I have the official word from 1and1 now. Here are the relevant parts of the email I received from support:

"To be able to send email through php scripting, we advise you to use the PhpMail module or SendMail to bypass the SMTP connection and port blocks. We have an article below which you may find helpful.

How to Setup PhpMail: http://faq.1and1.com/search/go.php?t=e657019

By default the Php settings in Apache server is set to localhost. Shared web hosting packages are not really capable of sending through SMTP using php scripts for security reasons. Your scripts would work on Dedicated server package because you can turn off the port blocking."

So the answer now is clear, we need to find a way of getting Vtiger to use the Phpmail module or Sendmail. If anyone knows how to do this then could they let me know. Once this is done I think I can write up a FAQ for 1and1 shared hosting users which may equally apply to other shared hosts. I think it's important this is done as I see there are many SME's that use these shared hosting packages and it has the potential to increase the Vtiger user base.

    View user's profile Send private message

Post  vikas   Post subject: Re: 1and1 hosted server installation
     Senior Member
Wed Apr 01, 2009 1:35 pm 
Posts: 201 
 
  Reply with quote
Hi,
We can do this by changing IsSMTP() function modules/Emails/class.phpmailer.php file

replace the IsSMTP() function with

Code:

function IsSMTP() {
       $this->IsSendmail();
}


Let us know if this helps you.

    View user's profile Send private message Send e-mail

Post  googol   Post subject: Re: 1and1 hosted server installation
     
Wed Apr 01, 2009 1:58 pm 
Posts: 34 
 
  Reply with quote
Solved!!! At at last. I changed the IsSMTP function to 'sendmail' as you suggested and set the server name to localhost. All emails are now being sent correctly. I now have a fully working (and correctly installed) Vtiger system on a 1and1 shared host!! Yippee and thanks thanks for all the input received from the community and developers. I will try and type this up in the next couple of days.

On a final note, do you think a future release of Vtiger might have an option in the system settings that will allow users to choose between SMTP or Sendmail?

    View user's profile Send private message

Post  p2pvoice   Post subject: Re: 1and1 hosted server installation
     
Sat Apr 25, 2009 5:28 pm 
Posts: 1 
 
  Reply with quote
Hi googol

googol wrote:
I will try and type this up in the next couple of days.



Do you think you can summarize this issue as indicated above?

Going through the entire thread is a bit confusing for non-Linux person like me.

Thanks.

    View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    vtiger Forum Index -> Help - 5.0.4 All times are GMT
Leave a Testimonial
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

Jump to: