Hi ,I am having problem when I try ton configure the outgoing email to be able to send emails from osTicket, I tried with one email as:SMTP Host: ibnsina.sante.dzSMTP Port: 25authentication required : yesI am getting the following error:authentication failure If I remove authentication (Authentication required: no) , It accept , but , when I try post reply  using this address, I get:( ! )

Warning: mail(): SMTP server response: 554 5.7.1

<xxxxxxx@hotmail.com>: Relay access denied in

E:\wamp\www\osticket\include\pear\Mail\mail.php on line I tried with another email with another email server, the  setting is :SMTP Host : ns5.kdconcept.netSMTP port: 465authentication required: YesWhen I click save changes , I am getting nothing,   blank page ,  (Please wait it will take a second ) Please , I need help  Thanks

The first error: server does not support authentication, means that you should not be using SMTP authentication. I'm not familiar with any email server using SMTP auth on port 25, so you should check with your host and ask them how to send email through their server.The second error: Relay access denied means that you are not allowed to relay email for users that aren't served by that email server. I would guess that means you have to use SMTP auth.  You should contact your host.If you are getting a blank page then chances are you are encountering a PHP error which is being logged to your php error log.  Please consult the log and provide us with the error.You haven't really provided us with much information about your setup or even your v3rsion of osTicket. Please help us to help you by reading and following the posting

guidelines located in this thread: Please read before requesting assistance. 

The more information you give us the better we will be able to assist

you. Thank you.

Thannk you for your quick information,Concerning the first scenario PHP Error log : nothing special in in the file apache_error  SMTP Host: ibnsina.sante.dzSMTP Port: 25

authentication required : yes

          POP  : ibnsina.sante.dz

         Port : 110

         encryption: None

Operating System  :   Windows server 2012Client or Staff side of the UI  :  windows 7

Server Information

osTicket Version

v1.8.0.2

Server Software

Apache/2.4.4 (Win64) PHP/5.4.12

PHP Version

5.4.12

MySQL Version

5.5.17

PHP Extensions

gdlib

Used for image manipulation and PDF printing

imap

Used for email fetching

xml

Used for HTML email processing and XML API

json

Improves performance creating and processing JSON

gettext

Improves performance for non US-English configurations

mbstring

Highly recommended for non western european language content

Database Usage

Database Space Used

2.06 MiB

Database Space for Attachments

0.01 MiB

So a couple things. 1. the apache_error is not generally the same thing as the php error log.  Your php.ini can tell you if error_logging is on, and where the log file is located.  You should turn it on -OR- enable osTicket error logging to see if you are getting any PHP errors.2. v1.8.0.2 is old, and you should probably upgrade to at least 1.8.1 (For the record 1.8.1.1 is current). There were a lot of little changes to how email is handled in the 1.8.0.x branches and each new release usually fixes 20-30 bugs as well as introduces a few new features (or revamps current features).3. If you are running Windows server 2012 does that mean that your email server is MS Exchange?  If it is then starting with 2007 you have to expressly permit your webserver to talk to your Exchange server by setting up a Receive Connector in Exchanfe Management Console -> Server Configuration -> Hub Transport. (note I'm running an older version of Exchange than you probably are so you may need to google how to do this).

The error log I am getting  in osTicket is when I try to send response from osTicket to fourar@hotmail.com with SMTP confugured without authentication:Mailer ErrorUnable to email via SMTP.sante.dz Failed to add recipient: fourar@hotmail.com

Log Date: Tue, Mar 11 2014 5 IP Address: 41.105.41.52But ,

Did you hit Post Comment before you finished?

yes, I put some comments in the text area, then I clicked on Post Reply,  Is this what do you mean by your question ?

I more meant that your post ends with "But ,"And then nothing.  The mail error that you posted says pretty clearly that your email server is rejecting to send the message (relay) because you do not have permission to send emails through it for the person your trying to send to. 

The cron is working , the ticket is created by only by sending an email ,  when I send a message to a person from the email program it work, but, it doesn't work when I send from osTicket, i got this error (Warning: mail(): SMTP server response: 554 5.7.1

<fourar@hotmail.com>: Relay access denied in

E:\wamp\www\osticket\include\pear\Mail\mail.php on line 153)What setting should I change in th email server in order to have permission to send emails through osTicket

You have not told us what email server software your running.  This also seems well outside the scope of osTicket support.  I would recommend talking to your email sever administrator, or failing that google or professional support for your email server.

I don't know what email server software is used, I just know that the server is running Unix OS, I don't have access to the server ,  I will try to use another email server since I cannot do any change in the current email server and not have any access !

Write a Reply...