Author |
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 09 June 2013 at 10:11am | IP Logged
|
|
|
Hi I've just installed AfterLogic Webmail Lite PHP. Despite i can retrieve all the mails, it is not possible for mails to be sent.
The error is "An error occured during sending the message"
From Admin Panel I've configured the following:
Incoming mail "IP of mailserver" Port "993" Use SSL "tick"
Outgoing mail "IP of mailserver" Port "465" Use SSL "tick"
SMTP Authentication: Use incoming mail's login/password of the user
This is also the relevant log output:
SMTP[NOTE]: Start connection to "*********:465"
[16:15:09.41] SMTP[TIME]: 0.00071310997009277 (raw connection)
[16:15:29.43] SMTP[ERROR]: exception 'MailSo\Net\Exceptions\SocketReadTimeoutException' with message 'MailSo-Net-Exceptions-SocketReadTimeoutException (NetClient.php ~ 374)' in /var/www/libraries/MailSo/Net/NetClient.php:374
Stack trace:
#0 /var/www/libraries/MailSo/Smtp/SmtpClient.php(662): MailSo\Net\NetClient->getNextBuffer()
#1 /var/www/libraries/MailSo/Smtp/SmtpClient.php(124): MailSo\Smtp\SmtpClient->validateResponse(220)
#2 /var/www/libraries/afterlogic/common/managers/mail/manager.php(823): MailSo\Smtp\SmtpClient->Connect('******', 465, 'localhost', 9)
#3 /var/www/libraries/ProjectSeven/Actions.php(737): CApiMailManager->MessageSend(Object(CAccount), Object(MailSo\Mime\Message), 'INBOX.Sent', '', '')
#4 [internal function]: ProjectSeven\Actions->AjaxMessageSend()
#5 /var/www/libraries/ProjectSeven/Service.php(95): call_user_func(Array)
#6 /var/www/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#7 /var/www/index.php(54): include('/var/www/librar...')
#8 {main}
[16:15:29.43] SMTP[NOTE]: Disconnected from "*******:465" (success)
Regards, Katerina
|
Back to Top |
|
|
francesco Newbie
Joined: 06 June 2013
Online Status: Offline Posts: 14
|
Posted: 09 June 2013 at 3:06pm | IP Logged
|
|
|
Hi Katerina, what is your mail server?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 10 June 2013 at 12:48am | IP Logged
|
|
|
Based on the logs, it looks like WebMail was waiting for response from SMTP server, and it didn't respond within 20 seconds, which is why the error was thrown. I recommend to recheck if SMTP settings are correct. You might try ports 25 and 587, they don't require enabling SSL option.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 10 June 2013 at 1:57am | IP Logged
|
|
|
francesco wrote:
Hi Katerina, what is your mail server? |
|
|
Hi francesco, my mailserver is postfix and i use dovecot for imap. It is not in the same machine! My configuration works fine with Roundcube!
|
Back to Top |
|
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 10 June 2013 at 2:12am | IP Logged
|
|
|
Igor wrote:
I recommend to recheck if SMTP settings are correct. You might try ports 25 and 587, they don't require enabling SSL option.
|
|
|
Hi Igor,
On my SMTP server (postfix) I have set:
SMTP Port: 465
Secure SMTP (TLS)
Authentication: login (IMAP username/password)
all of these settings work properly with other mail clients, such as Roundcube and Thunderbird!
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 10 June 2013 at 2:30am | IP Logged
|
|
|
Strange. Can you confirm that the IP address of the server, mentioned in first and last lines of the logs (and removed from there) matches the IP address of SMTP server?
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 10 June 2013 at 2:41am | IP Logged
|
|
|
Igor wrote:
Can you confirm that the IP address of the server, mentioned in first and last lines of the logs (and removed from there) matches the IP address of SMTP server? |
|
|
Hi Igor, thanks for ur quick reply. It was one of the first things that I checked! Also I tried setting the hostnames instead of ip addresses but it didn't work also!
Hereby is part of my configuration in postfix:
#/etc/postfix/master.cf
# SMTP over SSL on port 465.
smtps inet n - - - - &nb sp; smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_auth_only=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject_unauth_destination,reject
-o smtpd_sasl_security_options=noanonymous,noplaintext
-o smtpd_sasl_tls_security_options=noanonymous
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 10 June 2013 at 2:45am | IP Logged
|
|
|
I don't think that Postfix config file can really help here, what bothers me is the webmail log. While it's definitely wise to remove IP address from there, can you please let us know if it looks like "111.222.33.44:465" or "ssl://111.222.33.44:465" there? If there's no "ssl://" part, that means non-SSL connection is actually used, which would probably explain what's going on.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 10 June 2013 at 3:10am | IP Logged
|
|
|
here is the exact output:
SMTP[NOTE]: Start connection to "ssl://ermis.liverpool.practicum.os3.nl:465"
SMTP[NOTICE]: exception 'MailSo\Net\Exceptions\SocketCanNotConnectToHostException' with message 'Can't connect to host "ssl://ermis.liverpool.practicum.os3.nl:465"' in /var/www/libraries/MailSo/Net/NetClient.php:202
Stack trace:
#0 /var/www/libraries/MailSo/Smtp/SmtpClient.php(123): MailSo\Net\NetClient->Connect('ermis.liverpool...', 465, 1)
#1 /var/www/libraries/afterlogic/common/managers/mail/manager.php(823): MailSo\Smtp\SmtpClient->Connect('ermis.liverpool...', 465, 'localhost', 1)
#2 /var/www/libraries/ProjectSeven/Actions.php(737): CApiMailManager->MessageSend(Object(CAccount), Object(MailSo\Mime\Message), 'Sent', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxMessageSend()
#4 /var/www/libraries/ProjectSeven/Service.php(95): call_user_func(Array)
#5 /var/www/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#6 /var/www/index.php(54): include('/var/www/librar...')
#7 {main}
[10:07:21.38] Previous Exception: Can't connect to host "ssl://ermis.liverpool.practicum.os3.nl:465"
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 10 June 2013 at 3:18am | IP Logged
|
|
|
Does it work if you supply the external IP address of the server?
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 10 June 2013 at 3:27am | IP Logged
|
|
|
yeah, i have tried that.
I created an email account for u, here it is:
igor@liverpool.practicum.os3.nl
the account will be enabled for 20 minutes, just to check yourself!
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 10 June 2013 at 3:42am | IP Logged
|
|
|
I was able to log in and send mail out just fine:
Code:
[10:36:43.67] SMTP[NOTE]: Start connection to "ssl://ermis.liverpool.practicum.os3.nl:465"
[10:36:44.54] SMTP[TIME]: 0.86873292922974 (raw connection)
[10:36:44.65] SMTP[DATA]: < 220 ermis.liverpool.practicum.os3.nl ESMTP Postfix\r\n
[10:36:44.65] SMTP[TIME]: 0.97393012046814
[10:36:44.65] SMTP[DATA]: > EHLO localhost\r\n
[10:36:44.71] SMTP[DATA]: < 250-ermis.liverpool.practicum.os3.nl\r\n
[10:36:44.71] SMTP[DATA]: < 250-PIPELINING\r\n
... |
|
|
Seems like there's a problem not related to webmail directly, maybe a firewall or some other protective software.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 10 June 2013 at 3:48am | IP Logged
|
|
|
while you were sending the mail, i was monitoring the log file:
in your case:
Jun 10 12:36:20 ermis postfix/smtps/smtpd[20830]: connect from ***.**[95.174.*.*]
Jun 10 12:36:20 ermis postfix/smtps/smtpd[20830]: Anonymous TLS connection established from ***.**[IP]: TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Jun 10 12:36:21 ermis postfix/smtps/smtpd[20830]: NOQUEUE: reject_warning: RCPT from ***.**[95.174.*.*]: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname; from=<igor@liverpool.practicum.os3.nl> to=<igor@afterlogic.com> proto=ESMTP helo=<localhost>
In contrast, when I'm trying to send the output is different:
Jun 10 12:29:16 ermis postfix/smtps/smtpd[20777]: connect from unknown[WEBMAIL IP]
Jun 10 12:29:16 ermis postfix/smtps/smtpd[20777]: SSL_accept error from unknown[WEBMAIL IP]: lost connection
Jun 10 12:29:16 ermis postfix/smtps/smtpd[20777]: lost connection after CONNECT from unknown[WEBMAIL IP]
It seems that the afterlogic does not accept the self signed certificate that I made for the server!
There is no firewall between the mail server and the webmail!
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 10 June 2013 at 3:55am | IP Logged
|
|
|
I see. And I was using version 7 of WebMail for sending mail out, too, so it's definitely not about WebMail, and we're out of ideas here it seems.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 10 June 2013 at 4:44am | IP Logged
|
|
|
Igor wrote:
I see. And I was using version 7 of WebMail for sending mail out, too, so it's definitely not about WebMail, and we're out of ideas here it seems.
|
|
|
Thanks for your help Igor!
Regards, Katerina
|
Back to Top |
|
|
Katerina Newbie
Joined: 09 June 2013 Location: Netherlands
Online Status: Offline Posts: 9
|
Posted: 10 June 2013 at 7:10am | IP Logged
|
|
|
finally the error solved.. it was because of the dns! Due to a misconfiguration in the reverse lookup, required in ssl sessions, timeouts occured! now everything works perfect!
|
Back to Top |
|
|
henryvi Newbie
Joined: 17 June 2013 Location: Hong Kong
Online Status: Offline Posts: 2
|
Posted: 20 June 2013 at 8:52pm | IP Logged
|
|
|
Katerina wrote:
finally the error solved.. it was because of the dns! Due to a misconfiguration in the reverse lookup, required in ssl sessions, timeouts occured! now everything works perfect! |
|
|
I got same problem like your webmail. my mail server no PTR record.. it will not work for afterlogic?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 21 June 2013 at 1:47am | IP Logged
|
|
|
The webmail has nothing to do with this at all. The remote server sees that your IP has no the appropriate PTR record and thus thinks your IP address is a normal home computer, not a well-established Internet server. Thus, the remote server thinks you're an infected computer sending spam (like most of home systems which send email directly are). It does not matter which application sends mail, it's just a question of IP addresses and domain names.
Regards,
Alex
|
Back to Top |
|
|