Verifying SMTP works in K2 server

Introduction

How to verify that the SMTP is working in the K2 server? This article will guide you to verify whether is due to K2 or SMTP server setup.

Prerequisite

  1. Ensure that the powershell feature is install
  2. Ensure that the telnet client feature is install

Steps

  1. Do a telnet against your SMTP serverSMTP2
    • If there is firewall blocking, your telnet command may not work. You can continue to the next step. Otherwise, resolved this issue first.
  2. Edit the highlighted parameter below as per your environment:
    • $smtpServer = “smtp.denallix.com”
      $smtpFrom = “k2service@denallix.com”
      $smtpTo = “administrator@denallix.com”
      $messageSubject = “Test notification via powershell”
      $messageBody = “Test notification via powershell at $(Get-Date -format ‘u’)”$smtp = New-Object Net.Mail.SmtpClient($smtpServer)
      $smtp.Send($smtpFrom,$smtpTo,$messagesubject,$messagebody)
  3. Copy and paste the script into Powershell ISESMTP1.png
  4. Press Enter key
    • If successful, no message will be shown. You should be able to view the email in your inbox.
      • If you did not receive the email, that would means that there is a blockage in the SMTP server to your mailbox. Check with your SMTP team regarding this.
    • If unsuccessful, there will be a error message displayed. You can work with your SMTP team from there. You can refer to http://support.mailhostbox.com/email-administrators-guide-error-codes/ for the list of smtp error codes.

Thoughts

K2 provide 2 types of email setup, SMTP and Exchange. For now, I am only able to verify against SMTP server but not with exchange. If you have any idea that we can verify the exchange works well in K2 server (through microsoft OOB features), please feel free to leave it in the comment. Thanks!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s