Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Sending a letter from Webmail lite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
andlis
Newbie
Newbie


Joined: 16 October 2013
Online Status: Offline
Posts: 29
Posted: 16 October 2013 at 6:14am | IP Logged Quote andlis

I installed Webmail Lite on Fedora 18. Generally it works, there is only one problem. When I am sending a message from Webmail Lite, I see the message "An error occured during sending the message". In mail log there is a
Oct 16 17:06:10 localhost sendmail[2458]: r9GD67Pk002458: ruleset=check_mail, arg1=<user>, relay=localhost.localdomain [127.0.0.1], reject=553 5.5.4 <user>... Domain name required for sender address user
What is the best solution of it?


Back to Top View andlis's Profile Search for other posts by andlis
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 16 October 2013 at 6:17am | IP Logged Quote Igor

For using WebMail, you'll need a mail server with SMTP and IMAP capabilities. For login, full email address is used in WebMail, so it's assumed it works the same way for mail server you use.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
andlis
Newbie
Newbie


Joined: 16 October 2013
Online Status: Offline
Posts: 29
Posted: 16 October 2013 at 6:23am | IP Logged Quote andlis

Well, IMAP and SMTP work well on my server (out of Webmail).
However, if I write "user" in login page it works. If ""user@mydomain" - doesn't work:

"The username or password you entered is incorrect."
Back to Top View andlis's Profile Search for other posts by andlis
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 16 October 2013 at 6:25am | IP Logged Quote Igor

Then you need to reconfigure your mail server, user@domain is the only login format actually supported by WebMail.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
andlis
Newbie
Newbie


Joined: 16 October 2013
Online Status: Offline
Posts: 29
Posted: 16 October 2013 at 6:41am | IP Logged Quote andlis

In my case it can be "user@localhost"..
Back to Top View andlis's Profile Search for other posts by andlis
 
andlis
Newbie
Newbie


Joined: 16 October 2013
Online Status: Offline
Posts: 29
Posted: 16 October 2013 at 6:50am | IP Logged Quote andlis

Well. In this case I cannot understand why there is relay=localhost.localdomain [127.0.0.1] in log?
In my settings.xml there is mydomain, not localhost or 127.0.0.1
Back to Top View andlis's Profile Search for other posts by andlis
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 16 October 2013 at 8:25am | IP Logged Quote Igor

No idea, that sounds like mail server configuration problem. WebMail itself should be able to use whatever values are set for SMTP and IMAP hostnames.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
andlis
Newbie
Newbie


Joined: 16 October 2013
Online Status: Offline
Posts: 29
Posted: 21 November 2013 at 3:06am | IP Logged Quote andlis

The problem was solved easily. I added one row to file /var/www/webmail/libraries/MailSo/Smtp/SmtpClient.php(260):
$sFrom = $sFrom.'@mydomain';
(before $sCmd = 'FROM:...)
it works.
Back to Top View andlis's Profile Search for other posts by andlis
 
andlis
Newbie
Newbie


Joined: 16 October 2013
Online Status: Offline
Posts: 29
Posted: 18 January 2014 at 6:59am | IP Logged Quote andlis

So, after a long time it does not work (((
Finally, I need users to log in with user name only (without domain name). As I understand here http://www.afterlogic.com/forum/forum_posts.asp?TID=5119&PN=3 it should be possible from updated version. So I updated Webmail and tried to play with settings.xml, without any success however. Either I cannot log in or cannot send a letter.
Now I have the following settings:
<LoginFormType>Email</LoginFormType>
<UseLoginWithoutDomain>On</UseLoginWithoutDomain>
<LoginAtDomainValue>mydomain</LoginAtDomainValue>
Webmail couldn't send letters, so I added
$sFrom = $sFrom.'@mydomain';
again (see above).
Now I can log in with username only, however there is a problem with headers.
Outgoing mail has normal
Return-Path: <user@mydomain>
however
From: user
So, if anybody tries to answer to such letter, the mail address is <user> only, without domain part.
What to do?
Back to Top View andlis's Profile Search for other posts by andlis
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 20 January 2014 at 7:52am | IP Logged Quote Alex

Thanks for the report. In a couple of weeks, we'll have the new release with this issue fixed.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
nwlinux
Newbie
Newbie
Avatar

Joined: 31 January 2014
Location: United States
Online Status: Offline
Posts: 3
Posted: 31 January 2014 at 9:25am | IP Logged Quote nwlinux

Alex wrote:
Thanks for the report. In a couple of weeks, we'll have the new release with this issue fixed.

Regards,
Alex


I'm having the same issues above. My email messages are being blocked my various state run mail servers because my return email doesn't have a domain.com. I'm currently using 7.1.1.1.
Back to Top View nwlinux's Profile Search for other posts by nwlinux
 
nwlinux
Newbie
Newbie
Avatar

Joined: 31 January 2014
Location: United States
Online Status: Offline
Posts: 3
Posted: 31 January 2014 at 9:51am | IP Logged Quote nwlinux

IS this issue fixed in the paid version?
Back to Top View nwlinux's Profile Search for other posts by nwlinux
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 03 February 2014 at 2:14am | IP Logged Quote Igor

The new version wasn't released yet. Both Lite and Pro share the same codebase core so the fix will be there in both of them.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
nwlinux
Newbie
Newbie
Avatar

Joined: 31 January 2014
Location: United States
Online Status: Offline
Posts: 3
Posted: 03 February 2014 at 11:26am | IP Logged Quote nwlinux

Not to be a bother. But, do you have a release date in mind? Thank you.

Mark
Back to Top View nwlinux's Profile Search for other posts by nwlinux
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 04 February 2014 at 12:32am | IP Logged Quote Igor

We're planning to release it till the end of this week.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
bgauthier
Newbie
Newbie


Joined: 11 February 2015
Location: Canada
Online Status: Offline
Posts: 10
Posted: 11 February 2015 at 5:55pm | IP Logged Quote bgauthier

I think I am experiencing the exact same problem. I installed the version of Webmail lite currently available (7.4.2). When is a version that fixes that problem due? As it stands, Webmail cannot send any mail, which is clearly not workable.Thanks in advance.
Back to Top View bgauthier's Profile Search for other posts by bgauthier
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 12 February 2015 at 2:59am | IP Logged Quote Igor

The first thing to do is to actually determine what's causing the problem. That requires enabling debug logging, setting Verbosity level to Debug, reproducing the problem and checking the logs. Make sure you're using full email address as login, as some SMTP servers may be really sensitive to that.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
bgauthier
Newbie
Newbie


Joined: 11 February 2015
Location: Canada
Online Status: Offline
Posts: 10
Posted: 12 February 2015 at 8:08am | IP Logged Quote bgauthier

Quote:
Make sure you're using full email address as login, as some SMTP servers may be really sensitive to that.

How is that done, Igor? I tried to achieve that yesterday and I only succeeded in locking myself out.

Quote:
That requires enabling debug logging, setting Verbosity level to Debug, reproducing the problem and checking the logs.

Here is the log in question:

[16:03:25.34][0a3753e1] Location: index.php

[16:03:25.41][712ef7a6] [GET][ip:69.70.40.230] /adminpanel/index.php
[16:03:25.41][712ef7a6] POST > []
[16:03:25.41][712ef7a6]
[16:03:25.41][712ef7a6] call CCommonModule->PopulateData->SystemLogging()
[16:03:25.41][712ef7a6] call CWebMailModule->PopulateData->SystemLogging()

[16:03:27.65][3abd7bc2] [POST(19)][ip:69.70.40.230] /?/Ajax/
[16:03:27.65][3abd7bc2] POST > [AccountID, FetcherID, IdentityID, DraftUid, To, Cc, Bcc, Subject, Text, IsHtml, Importance, Sensivity, ReadingConfirmation, InReplyTo, References, Action, ShowReport, SentFolder, Token]
[16:03:27.65][3abd7bc2]
[16:03:27.65][3abd7bc2] AJAX: Action: MessageSend
[16:03:27.65][3abd7bc2] DB(PDO/mysql) : start connect to wmail@localhost
[16:03:27.65][3abd7bc2] DB : PDO(mysql:dbname=wmail;host=localhost;charset=utf8)
[16:03:27.65][3abd7bc2] DB : connected to wmail@localhost
[16:03:27.65][3abd7bc2] DB[1] > SELECT `id_acct`, `id_user`, `id_domain`, `id_tenant`, `deleted`, `def_acct`, `mailing_list`, `quota`, `email`, `friendly_nm`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_login`, `mail_inc_pass`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_login`, `mail_out_pass`, `mail_out_auth`, `mail_out_ssl`, `hide_in_gab`, `signature`, `signature_type`, `signature_opt`, `custom_fields` FROM awm_accounts WHERE `id_acct` = 1
[16:03:27.66][3abd7bc2] DB[2] > SELECT `id_user`, `id_subscription`, `id_helpdesk_user`, `msgs_per_page`, `contacts_per_page`, `auto_checkmail_interval`, `created_time`, `last_login`, `last_login_now`, `logins_count`, `def_skin`, `def_lang`, `def_editor`, `save_mail`, `layout`, `incoming_charset`, `def_timezone`, `def_time_fmt`, `def_date_fmt`, `client_timezone`, `question_1`, `question_2`, `answer_1`, `answer_2`, `sip_enable`, `sip_impi`, `sip_password`, `twilio_number`, `twilio_enable`, `twilio_default_number`, `use_threads`, `save_replied_messages_to_current_folder`, `desktop_notifications`, `allow_change_input_direction`, `allow_helpdesk_notifications`, `enable_open_pgp`, `allow_autosave_in_drafts`, `autosign_outgoing_emails`, `capa`, `custom_fields`, `files_enable` FROM awm_settings WHERE `id_user` = 1
[16:03:27.67][3abd7bc2] IMAP[NOTE]: Start connection to "tcp://127.0.0.1:143"
[16:03:27.68][3abd7bc2] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.\r\n
[16:03:27.68][3abd7bc2] IMAP[SECURE]: > TAG1 LOGIN "ed" "********"\r\n
[16:03:27.70][3abd7bc2] IMAP[DATA]: < TAG1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in\r\n
[16:03:27.71][3abd7bc2] SMTP[NOTE]: Start connection to "tcp://127.0.0.1:25"
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 220 evaluationcanada.ca ESMTP Sendmail 8.14.4/8.13.1; Thu, 12 Feb 2015 11:03:27 -0500\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: > EHLO wmail.evaluationcanada.ca\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-evaluationcanada.ca Hello evaluationcanada.ca [127.0.0.1], pleased to meet you\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-ENHANCEDSTATUSCODES\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-PIPELINING\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-8BITMIME\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-SIZE\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-DSN\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-ETRN\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250-DELIVERBY\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 250 HELP\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: > MAIL FROM:<ed> SIZE=953\r\n
[16:03:27.71][3abd7bc2] SMTP[DATA]: < 553 5.5.4 <ed>... Domain name required for sender address ed\r\n
[16:03:27.71][3abd7bc2] SMTP[ERROR]: exception 'MailSo\Smtp\Exceptions\NegativeResponseException' with message '553 5.5.4 <ed>... Domain name required for sender address ed' in /home/wmail/public_html/libraries/MailSo/Smtp/SmtpClient.php:727
Stack trace:
#0 /home/wmail/public_html/libraries/MailSo/Smtp/SmtpClient.php(599): MailSo\Smtp\SmtpClient->validateResponse(250)
#1 /home/wmail/public_html/libraries/MailSo/Smtp/SmtpClient.php(321): MailSo\Smtp\SmtpClient->sendRequestWithCheck('MAIL', 250, 'FROM:<ed> SIZE=...')
#2 /home/wmail/public_html/libraries/afterlogic/common/managers/mail/manager.php(1096): MailSo\Smtp\SmtpClient->MailFrom('ed', '953')
#3 /home/wmail/public_html/libraries/ProjectSeven/Actions.php(1572): CApiMailManager->MessageSend(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'Sent', '', '')
#4 [internal function]: ProjectSeven\Actions->AjaxMessageSend()
#5 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#6 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#7 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#8 {main}
[16:03:27.72][3abd7bc2] Previous Exception: 553 5.5.4 <ed>... Domain name required for sender address ed
[16:03:27.72][3abd7bc2] SMTP[DATA]: > QUIT\r\n
[16:03:27.72][3abd7bc2] SMTP[DATA]: < 221 2.0.0 evaluationcanada.ca closing connection\r\n
[16:03:27.72][3abd7bc2] SMTP[NOTE]: Disconnected from "tcp://127.0.0.1:25" (success)
[16:03:27.72][3abd7bc2] exception 'CApiManagerException' with message 'Can't send message' in /home/wmail/public_html/libraries/afterlogic/common/managers/mail/manager.php:1121
Stack trace:
#0 /home/wmail/public_html/libraries/ProjectSeven/Actions.php(1572): CApiMailManager->MessageSend(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'Sent', '', '')
#1 [internal function]: ProjectSeven\Actions->AjaxMessageSend()
#2 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#3 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#4 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#5 {main}

Next exception 'ProjectSeven\Exceptions\ClientException' with message '553 5.5.4 <ed>... Domain name required for sender address ed' in /home/wmail/public_html/libraries/ProjectSeven/Actions.php:1593
Stack trace:
#0 [internal function]: ProjectSeven\Actions->AjaxMessageSend()
#1 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#2 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#3 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#4 {main}
[16:03:27.72][3abd7bc2] INFO[MEMORY]: Memory peak usage: 15.5MB
[16:03:27.72][3abd7bc2] INFO[TIME]: Time delta: 0.13655114173889
[16:03:27.72][3abd7bc2] DB : disconnect from wmail@localhost
[16:03:27.72][3abd7bc2] IMAP[DATA]: > TAG2 LOGOUT\r\n
[16:03:27.72][3abd7bc2] IMAP[DATA]: < * BYE Logging out\r\n
[16:03:27.72][3abd7bc2] IMAP[DATA]: < TAG2 OK Logout completed.\r\n
[16:03:27.72][3abd7bc2] IMAP[NOTE]: Disconnected from "tcp://127.0.0.1:143" (success)

[16:03:27.84][f8026839] [POST(9)][ip:69.70.40.230] /?/Ajax/
[16:03:27.84][f8026839] POST > [Action, Folder, Offset, Limit, Search, Filters, UseThreads, AccountID, Token]
[16:03:27.84][f8026839]
[16:03:27.84][f8026839] AJAX: Action: MessageList
[16:03:27.84][f8026839] DB(PDO/mysql) : start connect to wmail@localhost
[16:03:27.84][f8026839] DB : PDO(mysql:dbname=wmail;host=localhost;charset=utf8)
[16:03:27.84][f8026839] DB : connected to wmail@localhost
[16:03:27.84][f8026839] DB[1] > SELECT `id_acct`, `id_user`, `id_domain`, `id_tenant`, `deleted`, `def_acct`, `mailing_list`, `quota`, `email`, `friendly_nm`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_login`, `mail_inc_pass`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_login`, `mail_out_pass`, `mail_out_auth`, `mail_out_ssl`, `hide_in_gab`, `signature`, `signature_type`, `signature_opt`, `custom_fields` FROM awm_accounts WHERE `id_acct` = 1
[16:03:27.85][f8026839] DB[2] > SELECT `id_user`, `id_subscription`, `id_helpdesk_user`, `msgs_per_page`, `contacts_per_page`, `auto_checkmail_interval`, `created_time`, `last_login`, `last_login_now`, `logins_count`, `def_skin`, `def_lang`, `def_editor`, `save_mail`, `layout`, `incoming_charset`, `def_timezone`, `def_time_fmt`, `def_date_fmt`, `client_timezone`, `question_1`, `question_2`, `answer_1`, `answer_2`, `sip_enable`, `sip_impi`, `sip_password`, `twilio_number`, `twilio_enable`, `twilio_default_number`, `use_threads`, `save_replied_messages_to_current_folder`, `desktop_notifications`, `allow_change_input_direction`, `allow_helpdesk_notifications`, `enable_open_pgp`, `allow_autosave_in_drafts`, `autosign_outgoing_emails`, `capa`, `custom_fields`, `files_enable` FROM awm_settings WHERE `id_user` = 1
[16:03:27.85][f8026839] IMAP[NOTE]: Start connection to "tcp://127.0.0.1:143"
[16:03:27.86][f8026839] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.\r\n
[16:03:27.86][f8026839] IMAP[SECURE]: > TAG1 LOGIN "ed" "********"\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < TAG1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in\r\n
[16:03:27.88][f8026839] IMAP[DATA]: > TAG2 EXAMINE "Sent"\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * OK [PERMANENTFLAGS ()] Read-only mailbox.\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * 0 EXISTS\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * 0 RECENT\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * OK [UIDVALIDITY 1423683389] UIDs valid\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * OK [UIDNEXT 1] Predicted next UID\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * OK [HIGHESTMODSEQ 1] Highest\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < TAG2 OK [READ-ONLY] Select completed.\r\n
[16:03:27.88][f8026839] IMAP[DATA]: > TAG3 STATUS "Sent" (MESSAGES UNSEEN UIDNEXT)\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * STATUS "Sent" (MESSAGES 0 UIDNEXT 1 UNSEEN 0)\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < TAG3 OK [CLIENTBUG] Status on selected mailbox completed.\r\n
[16:03:27.88][f8026839] INFO[MEMORY]: Memory peak usage: 13.75MB
[16:03:27.88][f8026839] INFO[TIME]: Time delta: 0.11413192749023
[16:03:27.88][f8026839] DB : disconnect from wmail@localhost
[16:03:27.88][f8026839] IMAP[DATA]: > TAG4 LOGOUT\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < * BYE Logging out\r\n
[16:03:27.88][f8026839] IMAP[DATA]: < TAG4 OK Logout completed.\r\n
[16:03:27.88][f8026839] IMAP[NOTE]: Disconnected from "tcp://127.0.0.1:143" (success)

[16:03:30.39][cd502bc4] [GET][ip:69.70.40.230] /adminpanel/index.php?pop&type=dllog
[16:03:30.39][cd502bc4] POST > []
[16:03:30.39][cd502bc4]
[16:03:30.39][cd502bc4] call CCommonModule->StandardPopAction->System()
[16:03:30.39][cd502bc4] call CWebMailModule->StandardPopAction->System()
Back to Top View bgauthier's Profile Search for other posts by bgauthier
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 12 February 2015 at 8:12am | IP Logged Quote Igor

Quote:
How is that done, Igor? I tried to achieve that yesterday and I only succeeded in locking myself out.


On login form, you need to supply full email address. Also, make sure that LoginFormType is set to Email, and UseLoginWithoutDomain is Off in data/settings/settings.xml file.

Currently, one of those is clearly set to wrong value, as the log confirms my initial suspicion - username is actually used where email address should be.

Bear in mind that most default settings only apply to accounts created after amending those settings, so you might need to delete and recreate webmail account to have those changes applied there.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
bgauthier
Newbie
Newbie


Joined: 11 February 2015
Location: Canada
Online Status: Offline
Posts: 10
Posted: 12 February 2015 at 10:32am | IP Logged Quote bgauthier

Thank you, Igor.

The xml settings were already as you indicated so that appears to be OK:

Code:
grep -iP "LoginFormType|UseLoginWithoutDomain" data/settings/settings.xml

<LoginFormType>Email</LoginFormType>
<UseLoginWithoutDomain>Off</UseLoginWithoutDomain>


When I try to login using the full email address, I get an error message to the effect that either the user name or the password is incorrect. I have reproduced the log of that attempt.

You mention "accounts created": this account is a regular Linux user. Is that what is expected in Webmail? Thanks for your help.

Code:

[18:29:08.50][3e9c6f60] Location: index.php

[18:29:08.57][14d8d0d3] [GET][ip:69.70.40.230] /adminpanel/index.php
[18:29:08.57][14d8d0d3] POST > []
[18:29:08.57][14d8d0d3]
[18:29:08.57][14d8d0d3] call CCommonModule->PopulateData->SystemLogging()
[18:29:08.57][14d8d0d3] call CWebMailModule->PopulateData->SystemLogging()

[18:29:12.89][468524b8] [POST(6)][ip:69.70.40.230] /?/Ajax/
[18:29:12.89][468524b8] POST > [Action, Email, IncLogin, IncPassword, SignMe, Token]
[18:29:12.89][468524b8]
[18:29:12.89][468524b8] AJAX: Action: Login
[18:29:12.89][468524b8] DB(PDO/mysql) : start connect to wmail@localhost
[18:29:12.89][468524b8] DB : PDO(mysql:dbname=wmail;host=localhost;charset=utf8)
[18:29:12.90][468524b8] DB : connected to wmail@localhost
[18:29:12.90][468524b8] DB[1] > SELECT `id_acct`, `id_user`, `id_domain`, `id_tenant`, `deleted`, `def_acct`, `mailing_list`, `quota`, `email`, `friendly_nm`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_login`, `mail_inc_pass`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_login`, `mail_out_pass`, `mail_out_auth`, `mail_out_ssl`, `hide_in_gab`, `signature`, `signature_type`, `signature_opt`, `custom_fields` FROM awm_accounts WHERE `def_acct` = 1 AND `email` = 'ed@xxxdomain.ca'
[18:29:12.90][468524b8] DB[2] > SELECT `id_domain`, `id_tenant`, `disabled`, `name`, `url`, `override_settings`, `is_internal`, `site_name`, `lang`, `def_user_timezone`, `def_user_timeformat`, `def_user_dateformat`, `allow_registration`, `allow_pass_reset`, `allow_webmail`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_auth`, `mail_out_login`, `mail_out_pass`, `mail_out_ssl`, `mail_out_method`, `check_interval`, `skin`, `msgs_per_page`, `allow_change_interface_settings`, `allow_change_account_settings`, `allow_users_add_acounts`, `allow_new_users_register`, `allow_open_pgp`, `layout`, `xlist`, `use_threads`, `allow_contacts`, `contacts_per_page`, `global_addr_book`, `allow_calendar`, `cal_show_weekends`, `cal_workday_starts`, `cal_workday_ends`, `cal_show_workday`, `cal_week_starts_on`, `cal_default_tab`, `allow_files`, `allow_helpdesk`, `default_tab` FROM awm_domains WHERE `name` = 'xxxdomain.ca'
[18:29:12.91][468524b8] DB[3] > SELECT COUNT(id_acct) as acct_count FROM awm_accounts
WHERE def_acct = 1 AND `email` = 'ed@xxxdomain.ca' AND `mail_inc_login` = 'ed@xxxdomain.ca'  LIMIT 1
[18:29:12.91][468524b8] IMAP[NOTE]: Start connection to "tcp://127.0.0.1:143"
[18:29:12.92][468524b8] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.\r\n
[18:29:12.92][468524b8] IMAP[SECURE]: > TAG1 LOGIN "ed@xxxdomain.ca" "********"\r\n
[18:29:17.42][468524b8] IMAP[DATA]: < TAG1 NO [AUTHENTICATIONFAILED] Authentication failed.\r\n
[18:29:17.42][468524b8] IMAP[WARNING]: exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1753)' in /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php:1753
Stack trace:
#0 /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php(1830): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php(1710): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php(270): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /home/wmail/public_html/libraries/afterlogic/common/managers/users/manager.php(420): MailSo\Imap\ImapClient->Login('ed@evaluationca...', 'xxxpassword', '')
#4 /home/wmail/public_html/libraries/afterlogic/common/managers/webmail/manager.php(144): CApiUsersManager->CreateAccount(Object(CAccount), true)
#5 /home/wmail/public_html/libraries/afterlogic/common/managers/integrator/manager.php(783): CApiWebmailManager->CreateAccountProcess('ed@evaluationca...', 'xxxpassword', '', Array)
#6 /home/wmail/public_html/libraries/ProjectSeven/Actions.php(2577): CApiIntegratorManager->LoginToAccount('ed@evaluationca...', 'xxxpassword', '', '')
#7 [internal function]: ProjectSeven\Actions->AjaxLogin()
#8 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#9 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#10 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#11 {main}
[18:29:17.42][468524b8] IMAP[NOTICE]: exception 'MailSo\Imap\Exceptions\NegativeResponseException' with message 'MailSo-Imap-Exceptions-NegativeResponseException (ImapClient.php ~ 1753)' in /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php:1753
Stack trace:
#0 /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php(1830): MailSo\Imap\ImapClient->validateResponse(Array)
#1 /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php(1710): MailSo\Imap\ImapClient->parseResponseWithValidation(NULL, false)
#2 /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php(270): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)
#3 /home/wmail/public_html/libraries/afterlogic/common/managers/users/manager.php(420): MailSo\Imap\ImapClient->Login('ed@evaluationca...', 'xxxpassword', '')
#4 /home/wmail/public_html/libraries/afterlogic/common/managers/webmail/manager.php(144): CApiUsersManager->CreateAccount(Object(CAccount), true)
#5 /home/wmail/public_html/libraries/afterlogic/common/managers/integrator/manager.php(783): CApiWebmailManager->CreateAccountProcess('ed@evaluationca...', 'xxxpassword', '', Array)
#6 /home/wmail/public_html/libraries/ProjectSeven/Actions.php(2577): CApiIntegratorManager->LoginToAccount('ed@evaluationca...', 'xxxpassword', '', '')
#7 [internal function]: ProjectSeven\Actions->AjaxLogin()
#8 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#9 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#10 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#11 {main}

Next exception 'MailSo\Imap\Exceptions\LoginBadCredentialsException' with message 'MailSo-Imap-Exceptions-LoginBadCredentialsException (ImapClient.php ~ 287)' in /home/wmail/public_html/libraries/MailSo/Imap/ImapClient.php:287
Stack trace:
#0 /home/wmail/public_html/libraries/afterlogic/common/managers/users/manager.php(420): MailSo\Imap\ImapClient->Login('ed@evaluationca...', 'xxxpassword', '')
#1 /home/wmail/public_html/libraries/afterlogic/common/managers/webmail/manager.php(144): CApiUsersManager->CreateAccount(Object(CAccount), true)
#2 /home/wmail/public_html/libraries/afterlogic/common/managers/integrator/manager.php(783): CApiWebmailManager->CreateAccountProcess('ed@evaluationca...', 'xxxpassword', '', Array)
#3 /home/wmail/public_html/libraries/ProjectSeven/Actions.php(2577): CApiIntegratorManager->LoginToAccount('ed@evaluationca...', 'xxxpassword', '', '')
#4 [internal function]: ProjectSeven\Actions->AjaxLogin()
#5 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#6 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#7 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#8 {main}
[18:29:17.42][468524b8] Exception[1004]: Authentication failed
~ /libraries/afterlogic/common/managers/users/manager.php (464)
----------------------------------------------------------------------
#0 /home/wmail/public_html/libraries/afterlogic/common/managers/webmail/manager.php(144): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /home/wmail/public_html/libraries/afterlogic/common/managers/integrator/manager.php(783): CApiWebmailManager->CreateAccountProcess('ed@evaluationca...', 'xxxpassword', '', Array)
#2 /home/wmail/public_html/libraries/ProjectSeven/Actions.php(2577): CApiIntegratorManager->LoginToAccount('ed@evaluationca...', 'xxxpassword', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#5 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#6 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#7 {main}
[18:29:17.42][468524b8] IMAP[NOTE]: Disconnected from "tcp://127.0.0.1:143" (success)
[18:29:17.42][468524b8] Exception[1004]: Authentication failed
~ /libraries/afterlogic/common/managers/users/manager.php (464)
----------------------------------------------------------------------
#0 /home/wmail/public_html/libraries/afterlogic/common/managers/webmail/manager.php(144): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /home/wmail/public_html/libraries/afterlogic/common/managers/integrator/manager.php(783): CApiWebmailManager->CreateAccountProcess('ed@evaluationca...', 'xxxpassword', '', Array)
#2 /home/wmail/public_html/libraries/ProjectSeven/Actions.php(2577): CApiIntegratorManager->LoginToAccount('ed@evaluationca...', 'xxxpassword', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#5 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#6 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#7 {main}
[18:29:17.42][468524b8] exception 'CApiManagerException' with message 'Authentication failed' in /home/wmail/public_html/libraries/afterlogic/common/managers/users/manager.php:464
Stack trace:
#0 /home/wmail/public_html/libraries/afterlogic/common/managers/webmail/manager.php(144): CApiUsersManager->CreateAccount(Object(CAccount), true)
#1 /home/wmail/public_html/libraries/afterlogic/common/managers/integrator/manager.php(783): CApiWebmailManager->CreateAccountProcess('ed@evaluationca...', 'xxxpassword', '', Array)
#2 /home/wmail/public_html/libraries/ProjectSeven/Actions.php(2577): CApiIntegratorManager->LoginToAccount('ed@evaluationca...', 'xxxpassword', '', '')
#3 [internal function]: ProjectSeven\Actions->AjaxLogin()
#4 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#5 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#6 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#7 {main}

Next exception 'ProjectSeven\Exceptions\ClientException' with message 'ClientException' in /home/wmail/public_html/libraries/ProjectSeven/Actions.php:2616
Stack trace:
#0 [internal function]: ProjectSeven\Actions->AjaxLogin()
#1 /home/wmail/public_html/libraries/ProjectSeven/Service.php(278): call_user_func(Array)
#2 /home/wmail/public_html/libraries/ProjectSeven/Boot.php(12): ProjectSeven\Service->Handle()
#3 /home/wmail/public_html/index.php(81): include('/home/wmail/pub...')
#4 {main}
[18:29:17.43][468524b8] INFO[MEMORY]: Memory peak usage: 14MB
[18:29:17.43][468524b8] INFO[TIME]: Time delta: 4.6034560203552
[18:29:17.43][468524b8] DB : disconnect from wmail@localhost

[18:29:22.08][233c738b] [GET][ip:69.70.40.230] /adminpanel/index.php?pop&type=log&action=view
[18:29:22.08][233c738b] POST > []
[18:29:22.08][233c738b]
[18:29:22.08][233c738b] call CCommonModule->StandardPopAction->System()
[18:29:22.08][233c738b] call CWebMailModule->StandardPopAction->System()
Back to Top View bgauthier's Profile Search for other posts by bgauthier
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 12 February 2015 at 11:07am | IP Logged Quote Igor

Quote:
You mention "accounts created": this account is a regular Linux user. Is that what is expected in Webmail?


The nature of the account is of no importance for WebMail, as long as it can authenticate to it over IMAP.

Quote:
When I try to login using the full email address, I get an error message to the effect that either the user name or the password is incorrect. I have reproduced the log of that attempt.


Thank you, now I think I understand what's going on. Some servers require supplying full email address as login, other need username for that purpose. WebMail can handle both the approaches, that's what UseLoginWithoutDomain option is for; but it's assumed that both IMAP and SMTP servers you are using behave the same way. The scenario when behavior of the two is different, which seems to be your case, isn't supported I'm afraid. You'll need to reconfigure either Sendmail or Dovecot so that both use the same approach for login credentials, and I'd recommend to reconfigure Dovecot so that full email address is used as login.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
bgauthier
Newbie
Newbie


Joined: 11 February 2015
Location: Canada
Online Status: Offline
Posts: 10
Posted: 12 February 2015 at 1:40pm | IP Logged Quote bgauthier

Igor,

thank you for this information. I have not been able to fix this, however -- it may exceed my ability.

The patch proposed by andlis in October 16, 2013 (above) works fine however. I added a line after line 312 in libraries/MailSo/Smtp/SmtpClient.php which reads:

$sFrom = $sFrom.'@mydomain.com';

and everyone is happy now (i.e. messages get sent and delivered).

Wouldn't it be possible to institutionalize this through some installation variable (or in the xml file): if it is non-empty, append it to the $sFrom value?

Benoît
Back to Top View bgauthier's Profile Search for other posts by bgauthier
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 12 February 2015 at 1:53pm | IP Logged Quote Igor

We could possibly do this, as long as there's an actual demand for it. You can post a suggestion and if the feature gets a substantial number of votes we will consider implementing it. At the moment, this looks like highly non-typical situation, but if I'm wrong and many people encounter this problem, we'll be more than happy to implement a workaround.

On the other hand, WebMail Lite is a free and opensource application, so you are certainly allowed to make any modifications there, and redistribute the product, assuming AGPLv3 license terms are met; the most important one of them is that end-users of the product can gain access to the modified source.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide