| Author |  | 
      
        | webkingashu Newbie
 
  
  
 Joined: 13 March 2014
 Location: India
 Online Status: Offline
 Posts: 13
 | 
          Dear Folks
           | Posted: 03 July 2014 at 4:02am | IP Logged |   |  
           | 
 |  I have webmail installed on my host, it was operating normally.
 Suddenly i have started receiving error like "An error occured during sending the message"
 
 Wondering if this is the server side problem or something wrong with the script.
 I may trace however the error log which is giving some CApiManagerException error
 
 When went to error log here is the snippet.
 
 
 [10:11:45.35] [POST(20)] /mail/?/Ajax/
 [10:11:45.35] POST > [AccountID, FetcherID, IdentityID, DraftUid, To, Cc, Bcc, Subject, Text, Importance, Sensivity, ReadingConfirmation, InReplyTo, References, Action, IsHtml, ShowReport, SentFolder, DraftFolder, Token]
 [10:11:45.35]
 [10:11:45.35] Previous Exception: 550 SMTP AUTH is required for message submission on port 587
 [10:11:45.36] exception 'CApiManagerException' with message 'Can't send message' in /home/maped62l/public_html/mydomain.in/mail/libraries/afterlogic/common/managers/mail/manager.php:1187
 Stack trace:
 #0 /home/maped62l/public_html/mydomain.in/mail/libraries/ProjectSeven/Actions.php(1368): CApiMailManager->MessageSend(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'INBOX.Sent', 'INBOX.Drafts', '3')
 #1 [internal function]: ProjectSeven\Actions->AjaxMessageSend()
 #2 /home/maped62l/public_html/mydomain.in/mail/libraries/ProjectSeven/Service.php(265): call_user_func(Array)
 #3 /home/maped62l/public_html/mydomain.in/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
 #4 /home/maped62l/public_html/mydomain.in/mail/index.php(71): include('/home/maped62l/...')
 #5 {main}
 
 Next exception 'ProjectSeven\Exceptions\ClientException' with message '550 SMTP AUTH is required for message submission on port 587' in /home/maped62l/public_html/mydomain.in/mail/libraries/ProjectSeven/Actions.php:1386
 Stack trace:
 #0 [internal function]: ProjectSeven\Actions->AjaxMessageSend()
 #1 /home/maped62l/public_html/mydomain.in/mail/libraries/ProjectSeven/Service.php(265): call_user_func(Array)
 #2 /home/maped62l/public_html/mydomain.in/mail/libraries/ProjectSeven/Boot.php(5): ProjectSeven\Service->Handle()
 #3 /home/maped62l/public_html/mydomain.in/mail/index.php(71): include('/home/maped62l/...')
 #4 {main}
 
 If anyone can address to what is going wrong .. that wud be great.
 Thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Seems like the logging was not switched to debug mode so it's not really complete. Still, it contains the following record which might explain what's going on:
           | Posted: 03 July 2014 at 4:05am | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | Previous Exception: 550 SMTP AUTH is required for message submission on port 587 |  |  |  
 Make sure you have SMTP authentication enabled in your account settings, that should help. Also you might want to check with mailserver support team if you believe something has suddenly changed on their end.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | webkingashu Newbie
 
  
  
 Joined: 13 March 2014
 Location: India
 Online Status: Offline
 Posts: 13
 | 
          Igor
           | Posted: 03 July 2014 at 5:18am | IP Logged |   |  
           | 
 |  Big Thanks for your Reply.
 
 
 
| Code: 
 
    
    | 
      
       | Previous Exception: 550 SMTP AUTH is required for message submission on port 587 |  |  |  
 But earlier when it was enabled, i had errors even logging in. So i disabled and it worked for months perfectly.
 
 This must be some problem with server, i have set the lgging to debug mode and wil post a link to log file.
 
 
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | webkingashu Newbie
 
  
  
 Joined: 13 March 2014
 Location: India
 Online Status: Offline
 Posts: 13
 | 
          Hello Folks.
           | Posted: 03 July 2014 at 5:48am | IP Logged |   |  
           | 
 |  Somehow i have got the error log file uploaded and here is the link,
 
 http://bit.ly/1orlZvC
 
 I have also enabled the SMTP Authentication as u can see in log at recent timestamp [PageDown]
 
 Still i'm getting error.
 
 Thank You
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Thanks. The log confirms SMTP auth is not enabled for the account. It's important to understand that, in case if you've enabled auth in default domain settings in adminpanel, that will not affect existing accounts. You need to enable SMTP authentication in account settings.
           | Posted: 03 July 2014 at 5:52am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | webkingashu Newbie
 
  
  
 Joined: 13 March 2014
 Location: India
 Online Status: Offline
 Posts: 13
 | 
          Perfect.. that was the problem.
           | Posted: 03 July 2014 at 6:25am | IP Logged |   |  
           | 
 |  Since i have disabled the Access account settings for the users , will i have to enable it and ask all of them to go check that checkbox?? i really dont want them to mess up with other fields.
 
 Thank You
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          There's a more quick solution for that. Assuming all the users use the accounts on the same mailserver, and they all need SMTP auth enabled, you can set mail_out_auth to 2 in awm_accounts table - either via tools like PhpMyAdmin, or by running the following SQL query:
           | Posted: 03 July 2014 at 6:32am | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | UPDATE awm_accounts SET mail_out_auth = 2; |  |  |  
 And just in case, backup the database before doing that!
   
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | webkingashu Newbie
 
  
  
 Joined: 13 March 2014
 Location: India
 Online Status: Offline
 Posts: 13
 | 
          Igor.. You are a saviour.
           | Posted: 03 July 2014 at 6:59am | IP Logged |   |  
           | 
 |  
 I just did that just added the db prefix before the tablename.
   
 
| Code: 
 
    
    | 
      
       | UPDATE prefix_awm_accounts SET mail_out_auth = 2; |  |  |  
 Thank You,
 but still curious to know is it like server is suddenly forcing to send emails with smtp authentication ?? I Mean it did run fine in last two months, just today it came behaving like.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Oh right, I forgot to mention that there might be a prefix used. It's good you found that out.
           | Posted: 03 July 2014 at 7:04am | IP Logged |   |  
           | 
 |    
 As for your question, that's something only people in charge of that mailserver might help with. It's safe to say that SMTP auth is required in most cases, and while some services don't require it they might have to change their mind for some reason afterwards.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | webkingashu Newbie
 
  
  
 Joined: 13 March 2014
 Location: India
 Online Status: Offline
 Posts: 13
 | 
          Hey Igor
           | Posted: 03 July 2014 at 7:16am | IP Logged |   |  
           | 
 |  I just wanted to say you THANKS... a big one. This helped.
   | 
       
        | Back to Top |     | 
       
       
        |  |