Access POP3 or SMTP Servers - Permission denied
I've built a server with Centos 6 and installed Osticket 1.6.
I'm at the email stage no matter how much I try and cannot get email bit. it keep coming up with
[SMTP: Failed to connect socket: Permission denied (code: -1, response: )]
110: Permission denied - Invalid login. Check POP settings.
However if I telnet from the cent os server I can see the pop3 server.
I've confirmed the username and passowrd are right, on the pop info, as I used mail2web.
Any ideas? - I'm fairly new to cent os, so it maybe an easy fix that I haven't looked into.
I'm not a user of CentOS so my answer will be a little more vague then I would like it to be. There are a couple different things that I think could cause this sort of behavior.
First check Admin Panel -> Settings -> scroll down to "Outgoing Emails:". What are you using in the drop down box? If you are not using "None: use PHP Mail Function" try that first and see what happens.
Secondly, if you have the capability to do so, check and make sure that the email server allows connections specifically from your web server. How to do this is dependent on the email server software you are running. I would guess that it does since you telnetted from the webserver to the mail server successfully. You also might want to check and make sure that dns is setup for the webserver, or if the email server is doing a reverse lookup that it resolves correctly as some email servers no longer accept connections if reverse dns is bogus.
Lastly do you know if you have the php_imap or possibly the php5_imap package installed? This package is not very aptly named (imo) because it is also required for pop mail to work. It handles both imap and pop.
That's all I can think of off the top of my head. Please let us know if this helps.
Many thanks I will try this tomorrow when I'm at work.
thanks for the help so far
I couldn't wait until tomorrow!!! logged into work now!
I've only got that option, none use PHP mail function. so its not that.
How do I know if php_imap or possibly the php5_imap packages are installed?
Thanks for the detailed response, as I'm not sure what else to do with this.
Setting up Install Process
Package php-imap-5.3.3-3.el6_2.6.x86_64 already installed and latest version
Nothing to do
I'm afriad it already installed :( is there anything else I can do? and test?
is there another package that may give another option in the settings section, so it says more than php mailer?
this is the error...
Login info (optional): Required when IMAP/POP and/or SMTP are enabled.
Invalid login. Check POP settings
Mail Account (Optional)
Setting for fetching incoming emails. Mail fetching must be enabled with autocron active or external cron setup.
Please be patient, the system will try to login to mail server to validate the entered login info.
Can't connect to xxxx.xxxxxxxxxx.net,110: Permission denied
Hmm. Check your php.ini (it is probably in /etc or /etc/php5) and see what the error_log directive says. That will tell you where your PHP logs are located. It's possible that error logging isn't enabled. If it isn't i recommend that you turn it on by settings a path. Like
error_log = /var/log/php_error.log
or something similar. Then try it again and see if it logs anything that might actually be useful.
Are you sure that you can telnet from the web server to the mail server successfully? What happens when you do?
thanks for the reply again (very helpful here!)
I telnet from the cent os and get
Connected to xxxxxx.xxxxxxxxx.xxxxxxxx
Escape character is '^]'.
+OK Microsoft Exchange Server 2003 POP3 server version 6.5.7638.1 xxxxxx.xxxxxxxxx.xxxxxxxx ready.
Will check the php.ini now.
I've checked php.ini
; Log errors to specified file. PHP's default behavior is to leave this value
error_log = /var/log/php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
error_log = /var/log/syslog.log
However there is nothing in here at all..... I'm almost thinking of changing it to windows based. Is there anything else I can check on this please?
Sorted - http://www.crypt.gen.nz/selinux/disable_selinux.html
had to disable Selinux.
I take it this solved the problem with mail?
|All times are GMT -4. The time now is 07:18 AM.|