Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: STMP Send-Error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
anonymous
Newbie
Newbie


Joined: 01 July 2013
Online Status: Offline
Posts: 3
Posted: 01 July 2013 at 4:11am | IP Logged Quote anonymous

Hi WebMail users,

i'm using newest Version of WebMail Lite with an Debian Wheezy, Postfix, Dovecot and nginx combination.
I can't send mails.

Error is attached:

[10:45:01.80] [POST(17)] /index.php?/Ajax/
[10:45:01.80] POST > [DraftUid, To, Cc, Bcc, Subject, Text, Importance, Sensivity, ReadingConfirmation, InReplyTo, References, Action, IsHtml, ShowReport, SentFolder, AccountID, Token]
[10:45:01.80]
[10:45:01.80] AJAX: Action: MessageSend
[10:45:01.80] DB : start connect to webmail_user@localhost
[10:45:01.80] DB : connected to webmail_user@localhost
[10:45:01.80] DB[1] > SELECT `id_acct`, `id_user`, `id_domain`, `id_tenant`, `deleted`, `def_acct`, `mailing_list`, `quota`, `quota_usage_bytes`, `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
[10:45:01.80] DB[2] > SELECT `id_user`, `msgs_per_page`, `contacts_per_page`, `auto_checkmail_interval`, `last_login`, `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`, `capa`, `custom_fields` FROM awm_settings WHERE `id_user` = 1
[10:45:01.81] IMAP[NOTE]: Start connection to "ssl://127.0.0.1:993"
[10:45:01.83] IMAP[TIME]: 0.023768186569214 (raw connection)
[10:45:01.87] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN] Dovecot ready.\r\n
[10:45:01.87] IMAP[TIME]: 0.063349008560181 (*)
[10:45:01.87] IMAP[SECURE]: > TAG1 LOGIN "user@domain.de" "*******"\r\n
[10:45:01.88] 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 SPECIAL-USE] Logged in\r\n
[10:45:01.88] IMAP[TIME]: 0.0087959766387939 (TAG1)
[10:45:01.88] SMTP[NOTE]: Start connection to "127.0.0.1:25"
[10:45:01.88] SMTP[TIME]: 0.00060892105102539 (raw connection)
[10:45:01.88] SMTP[DATA]: < 220 mail.domain.de ESMTP Postfix (Debian/GNU)\r\n
[10:45:01.88] SMTP[TIME]: 0.00098991394042969
[10:45:01.88] SMTP[DATA]: > EHLO mail\r\n
[10:45:01.88] SMTP[DATA]: < 250-mail.domain.de\r\n
[10:45:01.88] SMTP[DATA]: < 250-PIPELINING\r\n
[10:45:01.88] SMTP[DATA]: < 250-SIZE 51200000\r\n
[10:45:01.88] SMTP[DATA]: < 250-VRFY\r\n
[10:45:01.88] SMTP[DATA]: < 250-ETRN\r\n
[10:45:01.88] SMTP[DATA]: < 250-STARTTLS\r\n
[10:45:01.88] SMTP[DATA]: < 250-ENHANCEDSTATUSCODES\r\n
[10:45:01.88] SMTP[DATA]: < 250-8BITMIME\r\n
[10:45:01.89] SMTP[DATA]: < 250 DSN\r\n
[10:45:01.89] SMTP[TIME]: 0.0012497901916504
[10:45:01.89] SMTP[NOTICE]: exception 'MailSo\Smtp\Exceptions\LoginBadMethodException' with message 'MailSo-Smtp-Exceptions-LoginBadMethodException (SmtpClient.php ~ 193)' in /var/www/sites/mail.domain.de/libraries/MailSo/Smtp/SmtpClient.php:193
Stack trace:
#0 /var/www/sites/mail.domain.de/libraries/afterlogic/common/managers/mail/manager.php(828): MailSo\Smtp\SmtpClient->Login('user@domain.de', 'userpass')
#1 /var/www/sites/mail.domain.de/libraries/ProjectSeven/Actions.php(739): CApiMailManager->MessageSend(Object(CAccount), Object(MailSo\Mime\Message), 'Sent', '', '')
#2 [internal function]: ProjectSeven\Actions->AjaxMessageSend()
#3 /var/www/sites/mail.domain.de/libraries/ProjectSeven/Service.php(95): call_user_func(Array)
#4 /var/www/sites/mail.domain.de/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
#5 /var/www/sites/mail.domain.de/index.php(54): include('/var/www/sites/...')
#6 {main}
[10:45:01.89] Previous Exception: MailSo-Smtp-Exceptions-LoginBadMethodException (SmtpClient.php ~ 193)
[10:45:01.89] SMTP[DATA]: > QUIT\r\n
[10:45:01.89] SMTP[DATA]: < 221 2.0.0 Bye\r\n
[10:45:01.89] SMTP[TIME]: 0.00052499771118164
[10:45:01.89] SMTP[NOTE]: Disconnected from "127.0.0.1:25" (success)
[10:45:01.89] SMTP[TIME]: 0.0047340393066406 (net session)
[10:45:01.89] DB : disconnect from webmail_user@localhost
[10:45:01.89] INFO[MEMORY]: Memory peak usage: 2.5MB
[10:45:01.89] IMAP[DATA]: > TAG2 LOGOUT\r\n
[10:45:01.89] IMAP[DATA]: < * BYE Logging out\r\n
[10:45:01.89] IMAP[DATA]: < TAG2 OK Logout completed.\r\n
[10:45:01.89] IMAP[TIME]: 0.0024130344390869 (TAG2)
[10:45:01.89] IMAP[NOTE]: Disconnected from "ssl://127.0.0.1:993" (success)
[10:45:01.89] IMAP[TIME]: 0.084283113479614 (net session)

Any help?
Thanks!
Back to Top View anonymous's Profile Search for other posts by anonymous
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 01 July 2013 at 4:21am | IP Logged Quote Igor

Do you actually have SMTP auth enabled on your mail server? Looks like WebMail is unable to authenticate, and server doesn't advertise any auth methods. Try to uncheck SMTP auth box in domain/account properties. You can also try using port 465, in case if your server uses different auth configuration for SSL access.

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


Joined: 01 July 2013
Online Status: Offline
Posts: 3
Posted: 01 July 2013 at 4:35am | IP Logged Quote anonymous

Hello Igor,

yes it's enabled in postfix:

smtpd_tls_auth_only = yes

I use STARTTLS on port 25 SMTP.

I'm also using dovecot SMTP auth mechanism:

## Socket files for dovecot's authentication mechanism
# Socket will be used for postfix SMTP authentication
# auth-master gives dovecot access to userdb information
service auth {
   unix_listener /var/spool/postfix/private/auth {
      mode = 0660
      user = postfix
      group = postfix
   }
   unix_listener auth-master {
      mode = 0600
      user = vmail
      group = vmail
   }
}

See documentation: http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL
Back to Top View anonymous's Profile Search for other posts by anonymous
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 01 July 2013 at 4:40am | IP Logged Quote Igor

Well, WebMail only uses STARTTLS on port 587 and SSL on port 465. In case if port 25 is used, none of those apply.

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


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 01 July 2013 at 8:00am | IP Logged Quote Igor

Just heard from the developers: STARTTLS functionality doesn't currently rely on port number used, it should be used if advertised. However, that didn't work due to a bug. To fix it, modify line 576 in libraries/MailSo/Smtp/SmtpClient.php file:

Code:
if (is_array($aLine) && 2 === count($aLine) && !empty($aLine[0]))


Replace it with:

Code:
if (is_array($aLine) && 0 < count($aLine) && !empty($aLine[0]))


Hope this helps!

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


Joined: 01 July 2013
Online Status: Offline
Posts: 3
Posted: 02 July 2013 at 1:39am | IP Logged Quote anonymous

Hello Igor,

yes STARTTLS is used like that.

Thanks for the fix - it's working now!

I'm going to check out the pro version with CalDAV and CardDAV support.
Purchase option would be: 1 Server License - 99 Dollar. It's too expensive for private use. Maybe 49 Dollar would be fine. Don't you think? :)

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


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 02 July 2013 at 1:43am | IP Logged Quote Igor

We do offer discounts for personal use, feel free to contact us via HelpDesk if you want one

Note that per-server license isn't really a personal-use one, as it requires running a hosting management panel like cPanel, Plesk or DirectAdmin. If that's not the case, per-user license is the only option.

--
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