Trying to get IMAP workding
I am trying to get IMAP working for octicket, but I guess I am missing a piece of the puzzle.
I did a phpinfo dump (added a file called phpinfo.php to my root html folder and with
<? phpinfo(); ?>
being the only thing in the file, then navigated to the file via my web browser to get the results)
PHP Version 5.2.17
System Linux
MySQL Client API version 5.1.59
SERVER_SOFTWARE Apache
I see that I should be looking for IMAP to see that it loaded. I see the word "LOADED" in the out put once, and it is in regards to the which php.ini file was loaded and where that file is located.
Loaded Configuration File /home1/Rootdirectory/public_html/php.ini
I do have IMAP appear but it only speaks of enabled (does that mean it loaded?):
IMAP c-Client Version: 2004
SSL Support: enabled
Kerberos Support: enabled
I do have
;extension=php_imap.dll
located in my php.ini file and it does not have "#" in front of it
I have added
;extension=imap.so
to my php.ini file just above all the ;extension=???_???.dll
Do I need to relocate this or is it ok where it is?
;extension=imap.so
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_cpdf.dll
;extension=php_cybercash.dll
;extension=php_db.dll
;extension=php_dbase.dll
;extension=php_domxml.dll
;extension=php_dotnet.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_gd.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_imap.dll
I do have the attachments folder set up and it is outside of the osticket root directory and permissions are set to 777 and osticket say the attachment directory is setup correctly.
I am using Bluehost as my host provider,and I do have access to the cpanel and root directory, if I need to make changes to get this working.
Here are the IMAP settings I am using:
Email Address: name@domain.com (also tried a name@gmail.com address that I have)
Auto Response: disabled
Login info
Username: name@domain.com (gmail requires the whole email address for private domain names gapp domains)(also tried just the user name for @[deleted] address)
I use IMAP on these accounts all the time, so IMAP is set to "enabled" in the GMAIL control panel (settings)
Password: password
Message I am getting:===>Invalid login. Check IMAP settings
Mail Account:
Setting for fetching incoming emails. Mail fetching must be enabled with autocron active or external cron setup.
I have enabled Auto cron in the osticket settings
Message I am getting:==>>Can't connect to googlemail-imap.l.google.com,993: Connection timed out
Status: Enabled
Host: imap.googlemail.com (also tried imap.gmail.com and same results)
Port: 993
Protocol: IMAP
Encryption: SSL
Fetch Frequency: 5 minutes
Maximum Emails Per Fetch:30
Delete Messages: unchecked
SMTP Settings:
Status: Enabled
SMTP Host: smtp.googlemail.com and tried smtp.gmail.com
SMTP Port: 465 and also tried 587
Authentication Required?:Yes
I am at a loss as what else needs to be done to get this working. I do not believe this is a gmail issue nor do I think it is an issue with the IMAP or SMTP settings or port numbers. (unless there is a potential for bluehost blocking certain ports)
I am guessing this is an issue with a setting in my php.ini file. I did see where an imap plug-in module needs to be enabled but I think that refers to the ;extension=php_imap.dll and/or ;extension=imap.so
which I have both and neither have the "#" in front of them. (maybe I should only have one and the other should be commented out, or maybe I have them in the wrong place in the file)
Originally Posted by bbiandov
just a suggestion - check your php.ini
you must have the imap plug-in module enabled (meaning remove ; or # from the begining of the line)
that is what fixed my issue
B
Any help would be greatly appreciated. I pasted the configure command info from the phpinfo.php dump ... I was not sure if that was needed or not.
Thanks
Br1an
================================================
'./configure' '--build=x86_64-redhat-linux-gnu'
'--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-config-file-scan-dir=/etc/php.d'
'--cache-file=../config.cache''--with-libdir=lib64' '--with-pic'
'--disable-rpath' '--disable-debug' '--enable-inline-optimization'
'--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf'
'--without-gdbm' '--with-gettext' '--with-gmp''--with-iconv'
'--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell'
'--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif'
'--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid'
'--enable-yp' '--enable-wddx' '--with-kerberos' '--with-unixODBC=/usr'
'--enable-memory-limit' '--enable-shmop' '--enable-calendar''--enable-dbx'
'--enable-dio' '--with-mime-magic' '--with-sqlite' '--with-libxml-dir=/usr'
'--with-xml' '--with-system-tzdata' '--enable-pcntl' '--enable-static'
'--with-imap' '--with-imap-ssl''--enable-mbstring' '--enable-mbstr-enc-trans'
'--enable-mbregex' '--with-mcrypt=/usr' '--with-mhash=/usr' '--with-tidy=/usr'
'--with-ncurses' '--with-gd' '--enable-bcmath''--enable-dba' '--with-db4=/usr'
'--with-xmlrpc' '--with-ldap' '--with-ldap-sasl''--with-mysql=/usr'
'--with-mysqli=/usr/bin/mysql_config' '--with-mysql-sock=/var/lib/mysql/mysql.sock'
'--enable-dom' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-pgsql'
'--enable-soap''--with-xsl=/usr' '--enable-fastcgi' '--enable-pdo'
'--with-pdo-odbc=unixODBC,/usr' '--with-pdo-mysql=/usr' '--with-pdo-pgsql=/usr'
'--with-pdo-sqlite=/usr' '--with-pdo-dblib=/usr''--enable-json'
'--enable-zip' '--with-readline' '--with-intl' '--enable-dbase'