First I'm very new to Linux, I have been using it for our phone system and a few other open source apps to get more up on it. I have created two Centos 6.6 servers with the minimum installations, one on a Dell server and the other in a Parallels VM to test with, both I can't to connect to an email server for nothing. I have tried our Exchange 2010 server, an online pop and imap server and gmail and it doesn't send nor receive. It fails on all, It does have internet as that is how osticket 1.9.4 was installed, I have done all the yum updates, I have done a service iptables stop so that the firewall shouldn't be stopping anything. I have tried to do the php.log file and searching the internet I haven't found an easy way to get this done as most post are for people who kind of know what they are doing. If you have the time and patience please show step by step instructions if you wish to help a newbee! 

Please read before requesting assistanceI'm not sure where to start.  If your server can't connect to another server via POP, SMTP, or IMAP, this is not an osTicket issue. We can still try to help, but don't limit yourself to this forum. You need Linux help.Are you using the command line, or are you trying to do stuff with GUI tools?Jack

CentOS last I checked by default installs and runs SELinux."Security-Enhanced Linux (SELinux) is a Linux

kernel security module that provides a mechanism for supporting access

control security policies, including United States Department of

Defense–style mandatory access controls (MAC)."This is a fancy way of saying that its like a firewall.  If you are having issues connecting to things (and you said you are) you might try disabling SELinux to see if it fixes your problem.  If it does viola!  That just means that you will have to investigate how to write a rule that will allow your connections to continue unimpeded.Also as a side note, in order for you to collect mail from Google you have to enable that feature in your account at Google. :)To find where your PHP error log you can look in your php.ini (it might be in /etc/php.ini but I'm not real sure where CentOS puts it) .  Alternatively you can create a file in a web folder called text.php and in the file put the following:<?php phpinfo();?>Then browse to your site\test.php and you will see your PHP configuration.  There should be a line in the resulting page and it will tell you where your error log is located.  Make sure that you remove your test.php after the fact, as you do not want just anyone to be able to be able to go and look at your PHP configuration. If you get stuck please feel free to post specific questions, and of course use Google often. I do. :)

I can do a sendmail from CLI and it will send email out just fine. I have been googling as much as I can. I have turned off the firewall using Webmin is this the same as the SElinux? I've found the php.ini in the etc\ folder but how do I turn on  logging? Thanks for the help and not getting frustrated with all my questions. I feel like I'm learning DOS all over again! Also I have been trying to get this to work both GUI and CLI. When loading osTicket 1.9.4 I had all greens when it was checking the prerequisites modules. I have done the following Command from CLI "echo 0 >/selinux/enforce" not sure if it worked but it didnt give me an error. This is the error I get when trying to connect to our exchange 2010 server which is on the same network from the email settings GUI. Sending Email via SMTP

 

  Failed to connect to

smtp.exchange.XXXXXX.com I have done a telnet to the IP to make sure port 25 is open and it answers fine, I've also tested the user name and password is working fine.

in your php.ini the error_log directive takes a path.  So something like:error_log = /var/log/phperrors.logAs far as Exchange goes, does your server have permission to connect to it?Have you tried using your mail servers IP address instead? (mostly just curious... )I can't think of anything else atm.  /ponder

I've made sure the firewall on the exchange server has allowed all from the IP range and also made sure I can ping both directions. I've tried IP in the osTicket. I've also enabled POP and IMAP on my gmail account and cant connect to it as well. I did the osticket installation per these instructions replacing the 1.9.1 version with 1.9.4 in case it matters.  http://slowlylearninglinux.blogspot.com/2014/06/centos-65-installing-osticket-v191.html

The install instructions that you shared look fine to me.I actually meant that Exchange itself needs a transport rule to accept mail from your web server.Exchange Management Console -> Server config -> Hub Transport -> Receive Connector

Yes when I created the relay I made sure the IP of the whole network is in it. Also an update since I guess shutting down the firewalls I can now get connected with the exchange with just using IP address in and putting ports and it says all is working and the diagnostic says successful but no email is ever sent, and it doesnt pickup any emails, I have set it to Email Fetching in the settings and email tab.

No is there something I should? Also an update I tried the IP on the live server and it didnt work tell I ran this commend echo 0 >/selinux/enforcethen it would allow me to connect to exchange. Also it I create a ticket from the web browser it emails out but still nothing comes in.

I do not use SELinux, so I cannot tell you anything about it other than what I google.You should read about setting up cron.http://osticket.com/wiki/POP3/IMAP_Setting_Guide

I haven't had time to contribute much here, but I want to commend you for digging into this and even using the CLI.  Good luck with it.Jack

Thanks to both of you! WOW looking at the link you sent me looks like a pain as well! Do you know if piping is an option with an exchange 2010 server?

Looking over this link on cron scheduling and not sure where to start?

I personally do not feel that Piping is an option with Exchange.  But someone proved me wrong by posting about how to do it... but it also involved setting up an MTA under linux on the osT host.  So... Honestly its not as hard as it looks.

First, you want to run the cron with the least possible privilege (see https://en.wikipedia.org/wiki/Principle_of_least_privilege).  It's probably safe to run the cron with the same user as the web server (probably "apache").The rest, you should be able to Google for. I'm between tasks at work and need to get back to it. :)Jack

thanks I'll work more on this tomorrow! Thank you both for taking the time to help me!

Write a Reply...