PDA

View Full Version : Email broken when upgrading to from 1.6RC4 to v1.6 RC5


Hetfield
07-08-2009, 09:22 PM
Hi,

Today I upgraded from v1.6 RC4 to RC5.

RC4 was working perfectly with emails being sent etc. I upgraded to RC5 successfully, but when I post a new ticket I do not receive any emails.

I turned on error reporting in main.inc.php and did some testing.

After posting a new ticket, the next window that appears automatically that has the new ticket details has the error on top:

Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\xampp\htdocs\osticket\include\pear\Mail\mail.ph p on line 128

I've had a look at that line and nothing looks out of the ordinary. Is anyone able to help me out here? It's quite urgent. Thanks!

Hetfield
07-09-2009, 12:21 AM
It's all sorted.

I changed the settings from using php.ini settings and setup an email address with SMTP in osTicket and used that as the default settings for outgoing mail.

:D

rogden21
07-13-2009, 03:16 PM
What exactly did you do to fix the issue? I am adding my smtp server info, but when saving the info on the user email account, it says "Unable to update email. Internal error occured".

Can you help me with a summarized step-by-step?

Hetfield
07-19-2009, 08:39 PM
Sure no problem:

1. Went into Admin Panel
2. Clicked on the Email tab
3. Selected the email address that sends alerts
4. Scrolled down to SMTP settings
5. Changed the Status to Enabled
6. Typed in the IP address of the SMTP and the port used
7. Selected whether or not the server required authentication
8. Clicked on Submit
9. Clicked on the Settings tab
10. Scrolled down to Email Settings
11. Under Outgoing Emails I selected the email address I configured above from the drop down list
12. I saved changes and tested.

Sorry for the late reply, our mail server blocks emails from coming through to let me know there has been a reply to one of the threads I'm following.

Hope this helps.

masino_sinaga
07-21-2009, 01:30 AM
What exactly did you do to fix the issue? I am adding my smtp server info, but when saving the info on the user email account, it says "Unable to update email. Internal error occured".

Can you help me with a summarized step-by-step?

Yeah. This is also happened to me, even I have done what Hetfield suggested above. I think this caused by the certain setting about the encryption while the mail server does not support or implement the encryption feature.

This is the error message I got:
"authentication failure [SMTP: Invalid response code received from server (code: 454, response: TLS not available due to temporary reason)]"

Anyone can explain about this error and how to fix it? Thanks.

Best regards,
Masino Sinaga

cbonnar
08-03-2009, 03:27 AM
It's all sorted.

I changed the settings from using php.ini settings and setup an email address with SMTP in osTicket and used that as the default settings for outgoing mail.

:D

When you say "I changed the settings from using php.ini" how did you do this part?

cbonnar
08-03-2009, 03:38 AM
OK I think I know where the problem comes from. You need the SMTP IP address and sendmail_from before you can configure in the settings.

[mail function]
; For Win32 only.
SMTP = xxx.xxx.xxx.xxx
smtp_port = 25

; For Win32 only.
sendmail_from = xxxxxx@xxxxx.com.au

cbonnar
08-03-2009, 03:41 AM
My problem now is that you get the below when you submit the settings. NTW the xxx,zzz i put in there to hide my settings

DB Error #1366

[UPDATE ost_email SET updated=NOW(),mail_errors=0, mail_lastfetch=NULL,email='xxxxx@zzzzz.com,name='S upport',dept_id=1,priority_id=2,noautoresp='0',use rid='',userpass='',mail_active='0',mail_host='',ma il_protocol='POP',mail_encryption='NONE',mail_port ='0',mail_fetchfreq=5,mail_fetchmax=30,mail_delete ='',smtp_active=1,smtp_host='xxx.xxx.xxx.xxx',smtp _port=25,smtp_auth='0' WHERE email_id=1]

Incorrect integer value: '' for column 'mail_delete' at row 1

cbonnar
08-03-2009, 03:45 AM
Ah Fixed that one now as well :)

You need to tick the 'Delete fetched message(s) (recommended)' box even if you have not setup pop

cbonnar
08-03-2009, 03:50 AM
OK next problem....

If you enable POP/IMAP collection and select POP you get and error "IMAP doesn't exist. PHP must be compiled with IMAP enabled." Do I need to compile PHP with IMAP even if I want POP???

cbonnar
08-04-2009, 03:26 AM
All sorted you need to install PHP with MAPI support even if you are not using it.

jtaylor78
09-16-2009, 03:21 PM
Ah Fixed that one now as well :)

You need to tick the 'Delete fetched message(s) (recommended)' box even if you have not setup pop

I found that if I enabled "Strict" mode in MySQL then the "Delete fetched..." had to be checked. When not in "Strict" mode you could leave this unchecked. "Strict" mode in MySQL was also causing error messages when I ran the cron job to fetch mail.