You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2010-11-10 11:28:07

imunro01
Member
Registered: 2010-11-10
Posts: 24

SMTP problem after upgrading from 0.72.4 to 0.78

Since running the upgrade, we are now getting an error stating SMTP could not authenticate.

We are running on a Windows 2003 server with PHP 5.26, and trying to authenticate to a web based SMTP server (server name is the IP address).

This worked absolutely fine under 0.72.4, however even after re-entering all details in the 0.78 setups it will still nto authenticate.

I've gone back to my old installation and that still works fine so I can only presume some change of code is causing it.

Hopefully one of you guys can offer some enlightenment as this is all that is preventing me going live with the new version.

Thanks

 
GLPI  0.78 (/support.new => c:\inetpub\wwwroot\support.new)


Server

 
Operating Systems : Windows NT ASHNT 5.2 build 3790
PHP 5.2.6 (ISAPI, Reflection, SPL, SPL_Types, SimpleXML, bcmath, bz2, bz2_filter, calendar, com_dotnet, ctype, curl, date, dom,
    filter, ftp, hash, http, iconv, imap, json, ldap, libxml, mailparse, mbstring, mcrypt, mcrypt_filter, mysql, mysqli, odbc, pcre,
    session, smtp, sockets, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, zlib)
Setup: memory_limit="512M" max_execution_time="600" safe_mode="" session.save_handler="files" 
Software: Microsoft-IIS/6.0
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)
MySQL: 5.0.67-community-nt (root@localhost/glpi078)


Mysql replicate

 
Active : Yes
Difference between master and slave : 14923 Day(s) 9 Hour(s) 10 Min(s) 17 Sec(s)


Plugins list

 


LDAP directory

 
Server: 'ashnt2.curriculum.local', Port (default=389): '389', Basedn:
        'ou=ADMIN_TEACHING_LOGINS,ou=staff,dc=curriculum,dc=local', Connection filter: '(objectClass=user)', rootdn (for non anonymous
        binds): 'CN=steve,ou=Adminlogin,dc=curriculum,dc=local', Use TLS: '0'
Server: 'ashnt.curriculum.local', Port (default=389): '389', Basedn: 'ou=ITT,dc=curriculum,dc=local', Connection filter:
        '(objectClass=user)', rootdn (for non anonymous binds): 'CN=steve,ou=Adminlogin,dc=curriculum,dc=local', Use TLS: '0'


Notifications / Mail Receiver

 
Use a SMTP server to send emails: SMTP (support+ashingtonhigh.org.uk@91.186.29.143)
Mail Receiver
    Name:"support@ashingtonhigh.org.uk"   Server:{91.186.29.143/imap/notls} Login:"support+ashingtonhigh.org.uk" Password:Yes
        Active:Yes
    Name:"frog@ashingtonhigh.org.uk"   Server:{91.186.29.143/imap/notls} Login:"frog+ashingtonhigh.org.uk" Password:Yes Active:Yes

Last edited by imunro01 (2010-11-10 11:34:56)

Offline

#2 2010-11-10 14:21:36

imunro01
Member
Registered: 2010-11-10
Posts: 24

Re: SMTP problem after upgrading from 0.72.4 to 0.78

This is the php error log from the installation:-

10-11-2010 11:58 [7]
Warning(2): mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 501 &lt;&quot;support@ashingtonhigh.org.uk&quot; &lt;support@ashingtonhigh.org.uk&gt;&gt;: &quot;@&quot; or &quot;.&quot; expected after &quot;&quot;support@ashingtonhigh.org.uk&quot;&quot;
Backtrace :
C:\Inetpub\Wwwroot\support.new\lib\phpmailer\class.phpmailer.php:588        mail()
C:\Inetpub\Wwwroot\support.new\lib\phpmailer\class.phpmailer.php:519        PHPMailer->MailSend()
C:\Inetpub\Wwwroot\support.new\inc\notificationmail.class.php:167        PHPMailer->Send()
C:\Inetpub\Wwwroot\support.new\front\notificationmailsetting.form.php:43        NotificationMail::testNotification()

Last edited by imunro01 (2010-11-10 14:22:23)

Offline

#3 2010-11-10 19:18:37

sean.tapscott
Member
Registered: 2010-06-16
Posts: 303

Re: SMTP problem after upgrading from 0.72.4 to 0.78

SMTP response 501 means a syntax error, and if you read the mail thing correctly, that's what it says.  Why did it encode all those quotes into there?

SMTP Server Response: 501 "support@ashingtonhigh.org.uk" support@ashingtonhigh.org.uk: @ or . expected after support@ashingtonhigh.org.uk

Maybe try some other configuration?  I've had trouble before with GLPI not seeming to send the credentials that I expect it to.  Maybe try Debug mode too in GLPI.


Are you sure the logins include the plus signs instead?  Only place I can see a potential syntax error.

Last edited by sean.tapscott (2010-11-10 19:19:42)


Now using 0.78.1 on CentOS.

Offline

#4 2010-11-10 20:20:14

imunro01
Member
Registered: 2010-11-10
Posts: 24

Re: SMTP problem after upgrading from 0.72.4 to 0.78

I'd happily try debug mode if I could find it in 0.78 - doesn't appear to be on the menus.

The + signs are part of the login name (uses + instead of @)

Only other thing I haven't mentioned is that in the exim_mainlog on the smtp server, I get a warning about no reverse lookup on our external IP.

Offline

#5 2010-11-10 21:47:26

sean.tapscott
Member
Registered: 2010-06-16
Posts: 303

Re: SMTP problem after upgrading from 0.72.4 to 0.78

Debug mode is in the Settings menu.  Just a mode you change for your user profile.

Like I said before though, I'm not sure GLPI passes the correct SMTP information. Before, I just created a trusted entry for the internal IP address after tiring of trying to get GLPI to authenticate to it.


Now using 0.78.1 on CentOS.

Offline

#6 2010-11-11 10:48:44

imunro01
Member
Registered: 2010-11-10
Posts: 24

Re: SMTP problem after upgrading from 0.72.4 to 0.78

If I leave the SMTP Login (optional) : field empty, I get an error about an invalid from address

This is a great shame on a great upgrade.

BTW the debug facility doens't appear in 0.78

Offline

#7 2010-11-11 16:07:25

sean.tapscott
Member
Registered: 2010-06-16
Posts: 303

Re: SMTP problem after upgrading from 0.72.4 to 0.78

Yes, it does.  If you don't see it, maybe you did something wrong in the installation.


Now using 0.78.1 on CentOS.

Offline

#8 2010-11-11 16:22:19

imunro01
Member
Registered: 2010-11-10
Posts: 24

Re: SMTP problem after upgrading from 0.72.4 to 0.78

Hmm - I'll try restoring the original files and re-running the upgrade

Can you humour a fool and post a screenshot of the location of the debug mode, so I can compare.

Thnks

Offline

#9 2010-11-11 19:11:03

sean.tapscott
Member
Registered: 2010-06-16
Posts: 303

Re: SMTP problem after upgrading from 0.72.4 to 0.78

I'm not sure how to post images, looks like I'd need to host it somewhere.  Did take a screenshot.

If you click "Settings" in the top right, you should see some personalized settings for your user account.  On the main tab, there is a setting called "Use GLPI in Mode: Normal", and you'd need to change that to Debug.  It would probably be bad if it was missing.


Now using 0.78.1 on CentOS.

Offline

#10 2010-11-12 13:57:19

imunro01
Member
Registered: 2010-11-10
Posts: 24

Re: SMTP problem after upgrading from 0.72.4 to 0.78

Well I've managed to find a quick and dirty resolution.  By replacing the \lib\phpmailer\class.php.smtp with the version from 0.72.4 the emailing starts to work again.

I can only presume this is a bug in the code on the new version, but I'm not sure how to submit that as a bug.

Thanks Sean for your help and advice!.

Offline

Board footer

Powered by FluxBB