Configuring mobile devices

Lexmark Print adds user functionality to an existing LPM system:

Mobile Single Sign-On

Mobile Single Sign-On or Mobile SSO is a feature that allows the use of the organization's authentication token to access the LPM system. This feature reduces the number of times that a user has to log in when printing. This feature is supported only in the Android Print Plug-in application.

Configuring SSO with the mobile plug-in

Apply the following configuration in the plug-in application:

<?xml version="1.0" encoding="UTF-8"?>​

<config>

  <providers>
    <provider>
      <name>Prem Mobile SSO</name>
      <address>10.100.101.11></address>
      <providerType>server-premise</providerType>
      <auto-discover>true</auto-discover>
    </provider>
  </providers>

  <premise-server-config>
    <sso-url>orcton.eastasia.cloudapp.abc.com</sso-url>
    <sso-client-id>clientid</sso-client-id>
  </premise-server-config> 

   <behavior
    <import-configList>reset_all/<import-configList>
  </behavior>

</config>
Note: <address>—Type the server IP address of the load balancer.

As an administrator, introduce the following settings in Lexmark Print configuration file to hide the Logout option:

  <settings>
    ...
    <hide-logout>true</hide-logout>
  </settings>

Notes:

AD FS Management Console​

Notes:

Print Management Console Settings
  1. Click the Settings icon on the upper-right corner of Print Management Console.

  2. Configure the ADFS and LDAP server settings:

    For ADFS Settings:
    1. Type the server address of the ADFS server.

    2. Import the SSL certificate for LPM to communicate to the ADFS server.

    3. Click Save Changes.

    For LDAP Settings:
    1. Click Add.

      Note: If the AD FS points to an existing Active Directory as the LDAP entry, then there is no need to follow the next steps.
    2. Configure the server details.

      Note: In the LDAP settings, add the Active Directory that the AD FS points to.
    3. Click Save Changes.

Understanding the system requirements

Supported e-mail protocols

If the e-mail submission functionality is used, then the e-mail server that hosts the account for LPM monitoring must support one of the following protocols:

Supported printers for mobile device usage

Network printers that support PostScript emulation are supported as an output device. However, for the best and fastest output, we recommend any Lexmark printer that supports the PDF format.

Advanced finishing options such as staple and hole punch work only on Lexmark printers. Options for two-sided (duplex) printing may not work on non-Lexmark printers because of vendor-specific implementation.

Supported file formats

The following file formats are supported for document conversion:

Note: You can print the documents later.

For Lexmark Print application

For e-mail submission

Adobe PDF (*.pdf)1

Adobe PDF (*.pdf)1

ASCII Text (*.txt)

ASCII Text (*.txt)

GIF (*.gif)

CSV Files (*.csv)

HTML (*.htm, *.html)

GIF (*.gif)

JPEG (*.jpg, *.jpeg)

HTML (*.htm, *.html)

Microsoft Excel 97-2003, 2007, 2010, 2013, 2016 (*.xls, *.xlsx)2

JPEG (*.jpg, *.jpeg)

Microsoft PowerPoint 97-2003, 2007, 2010, 2013, 2016 (*.ppt, *.pptx)2

Microsoft Excel 97-2003, 2007, 2010, 2013, 2016 (*.xls, *.xlsx)2

Microsoft Word 97-2003, 2007, 2010, 2013, 2016 (*.doc, *.docx)2

Microsoft PowerPoint 97-2003, 2007, 2010, 2013, 2016 (*.ppt, *.pptx)2

OpenDocument Spreadsheet (*.ods)2

Microsoft Word 97-2003, 2007, 2010, 2013, 2016 (*.doc, *.docx)2

OpenDocument Presentation (*.odp)2

OpenDocument Spreadsheet (*.ods)2

OpenDocument Text/Writer (*.odt)2

OpenDocument Presentation (*.odp)2

TIFF (*.tif, *.tiff)1

OpenDocument Text/Writer (*.odt)2

PNG (*.png)

Rich Text Format (*.rtf)

TIFF (*.tif, *.tiff)1


Configuring Lexmark Print

Document conversion software dependencies

Document conversion is required for submission of e-mail and mobile application jobs. During installation, LPM detects the version of the installed document conversion software.

Note: Only the application servers require a document conversion software.

Before running the LPM installer, make sure that a supported document conversion application is installed on each Tomcat or application server that handles document conversions. We recommend installing the document conversion application before running the LPM installer for the solution to use it automatically.

Supported document conversion software and versions

Application

Supported versions

Microsoft Office

  • 2016

  • 2013

  • 2010

  • 2007

Apache OpenOffice

  • 4.1

  • 4.0

  • 3.4

LibreOffice

  • 6.4.6

  • 4.0

  • 3.4


Note: OpenOffice or LibreOffice is required for e-mail or mobile application submissions. To improve the print fidelity of Microsoft Office document formats, use Microsoft Office.

Configuring the Lexmark Print application settings

  1. From Lexmark Management Console, click the Solutions tab.

  2. From the Solutions section, select mobileprint.

  3. From the Tasks section, select Configuration, and then configure the settings.

  4. Click Apply.

Understanding the mobile and e-mail configuration data

Note: The LDAP and Print Release settings are used only when one of the Print Release integration methods is selected. Otherwise, leave the fields blank.

Setting name

Setting for

Possible values

Notes

Allowed Sender Domains

E-mail

N/A

To process only e-mails that are sent from specific domains, use a comma-separated list. Any e-mail sent from a domain that is not included in the list is discarded. If none is specified, then all e-mails are processed.

Confirmation Email Disclaimer

E-mail

Note: Do NOT reply to this e-mail. Please contact the Help Desk for further assistance.*

This setting is added to the end of confirmation e-mails.

Confirmation Email Domains

E-mail

N/A

To send confirmation e-mails only to users in specific domains, use a comma-separated list.

Confirmation Email From Address

E-mail

name@company.com

The e-mail address that appears in confirmation e-mails.

Confirmation Email Subject

E-mail

Lexmark Print Confirmation*

The subject used in confirmation e-mails.

Confirmation Error Email

E-mail

  • Disabled*

  • To All Users

  • To Users in Specified Domains

Determines whether a confirmation e-mail is sent to users when an error is encountered and the job cannot be processed. If Disabled is selected, then an e-mail is not sent. If To All Users is selected, then the confirmation e-mail is sent to all users. If To Users in Specified Domains is selected, then the confirmation e-mail is sent only to users specified in the Confirmation Email Domains field.

Confirmation Print Release Name

E-mail

Lexmark Print Release*

The name of the Print Release system where the confirmation e-mail is released.

Confirmation Success Email

E-mail

  • Disabled*

  • To All Users

  • To Users in Specified Domains

OpenOffice

Determines whether a confirmation e-mail is sent to users when the job is successfully sent to the printer. If Disabled is selected, then an e-mail is not sent. If To All Users is selected, then the confirmation e-mail is sent to all users. If To Users in Specified Domains is selected, then the confirmation e-mail is sent only to users specified in the Confirmation Email Domains field.

Conversion Method

Lexmark Print and E-mail

  • MS Office and

  • OpenOffice Only*

Note: We recommend using only Microsoft Office. It is not necessary to install OpenOffice. For information on the supported file types, see Supported file formats.

Specifies the method used to convert attachments. If OpenOffice Only is selected, then all file types are converted using OpenOffice or LibreOffice. If MS Office and OpenOffice is selected, then Microsoft Office is used to convert Microsoft Office file types, and then OpenOffice or LibreOffice is used to convert all other file types.

Note: To improve the print fidelity of Microsoft Office document formats, we recommend selecting MS Office and OpenOffice.

Conversion Format

Lexmark Print and E-mail

  • PDF

  • PostScript

Specifies the format used for document conversions.

Device ID

E-mail

  • First Word of Subject*

  • Last Word of Subject

  • First Word of Message Body

Determines the location of the printer nickname or IP address in the subject of the e-mail sent by the user. Print options can only be used when the device ID is the first word of the subject or message body.

Direct IP Printer Type

E-mail

  • PostScript

  • TIFF*

When using Direct IP Printing, select the format that all printers using your solution support.

Device To Printer IP Lookup

E-mail

  • Lexmark Database*

  • Direct IP Printing

When using printer nicknames, select Lexmark Database. If only the IP address or host name of the printer is used, then select Direct IP Printing.

LDAP Follow Referrals

E-mail

  • Yes*

  • No

Specifies whether referrals to other LDAP servers are processed. If No is selected, then only responses from the specified LDAP server are used.

LDAP Login Password

E-mail

N/A

The password used for accessing the LDAP server.

LDAP Login Username

E-mail

N/A

The account name used for accessing the LDAP server.

LDAP Mail Attribute

E-mail

mail*

The LDAP attribute that corresponds to the user’s e-mail address.

LDAP Port

E-mail

N/A

The port number used for communicating with the LDAP server. The most common port number used is 389.

LDAP Search Base

E-mail

N/A

The search base used for looking up e-mail accounts. The value for this setting must be able to look up all possible user accounts.

LDAP Server

E-mail

N/A

The IP address or host name of the LDAP server used for looking up e-mail addresses and user IDs.

LDAP User Object

E-mail

User*

The objectclass attribute in LDAP used by user accounts.

LDAP Userid Attribute

E-mail

  • Samaccountname*

  • uid

The LDAP attribute that corresponds to the user’s Windows user ID.

Log Information

Lexmark Print and E-mail

  • Disabled*

  • Enabled

Shows the detailed logs in the Log page of Lexmark Management Console.

Mode

E-mail

  • Standard*

  • Print Release (Internal Users Only)

  • Print Release (Guest Support)

  • Print Release (Guest Support 2)

If Standard Mode is selected, then specify the printer in the Device ID field.

Configure the LDAP and Print Release settings for all Print Release options. If Print Release (Internal Users Only) is selected, then all users in LDAP can print. If Print Release (Guest Support) is selected and the user is not in LDAP, then the solution functions as Standard Mode for that e-mail.

If Print Release (Guest Support 2) is selected, then the device ID is checked whether it corresponds to a printer nickname. If it does, then the print job is sent directly to that printer. If not, then this setting functions the same as the Print Release (Internal Users Only) mode.

Note: To use Print Release (Guest Support 2), make sure that Device to Printer IP Lookup is set to Lexmark Database.

Print Attachments

E-mail

  • Always (User cannot change)

  • Yes (User can change)*

  • No (User can change)

  • Never (User cannot change)

Determines the default operation when printing all attachments in an e-mail. If Yes (User can change) or No (User can change) is selected, then users can modify this setting when sending an e-mail.

Print Body

E-mail

  • Always (User cannot change)

  • Yes (User can change)*

  • No (User can change)

  • Never (User cannot change)

Determines the default operation when printing the message body in an e-mail. If Yes (User can change) or No (User can change) is selected, then users can modify this setting when sending an e-mail.

Note: When releasing jobs that are submitted using e-mail from mobile devices, select No (User can change) or Never (User cannot change) to print the first attachment. Otherwise, only the message body in an e-mail is printed and not the attachment.

Print File Operations

Lexmark Print and E-mail

  • Use Standard Method*

  • Use Alternate Method

Specifies the alternative way for saving files when the standard method conflicts with your environment.

If Use Standard Method is selected, then the alternative method is FileClass (jcifs). If Use Alternate Method is selected, then the alternative method is TISFile.

Print in Duplex

E-mail

  • Always (User cannot change)

  • Yes (User can change)*

  • No (User can change)

  • Never (User cannot change)

For duplex-capable printers, this setting determines whether all e-mails (message body and attachments) are printed in duplex. If Yes (User can change) or No (User can change) is selected, then users can modify this setting when sending an e-mail.

Print Max Copies

E-mail

1*

By default, one copy of the message body and attachment is printed. This setting is the maximum number of copies that can be printed from one e-mail. Users can specify the number of copies when sending the e-mail.

Print Release Directory

Lexmark Print and E-mail

C:\lexmark\printrelease*

The file share information used in the Lexmark Print Management solution. If installing all LPM components on a workgroup environment that uses a local file system to hold documents, then leave the Print Release login fields blank. If installing on an enterprise environment using a common file share, then enter the credentials of an administrator or user who has write access to the file share.

Note: This setting must have the same value as the Print Release Solution setting.

If the directory is on a file share, then type a UNC path. For example, \\ServerName\ShareName].

Note: If the server is not a member of a domain, then the host name of the server with the file share on its local file system must be used as the domain name.

Print Release Password

Lexmark Print and E-mail

N/A

The password used for saving files to the Print Release directory.

Note: This setting must have the same value as the Print Release Solution setting.

Print Release Username

Lexmark Print and E-mail

N/A

The user name used for saving files to the Print Release directory.

Note: This setting must have the same value as the Print Release Solution setting.

Release Jobs Directly

Lexmark Print and E-mail

N/A

Release jobs directly to the printer from the server. Otherwise, jobs are downloaded to and released from the mobile device.

Note: Disabling the Release Jobs Directly setting results in slower performance when releasing jobs using a mobile device.

Use SSL for LDAP

E-mail

  • Yes

  • No*

Specifies whether the solution uses SSL when querying LDAP. Specify the port number used for SSL communication. The most common port number used is 636.


Limiting the maximum file size for each job submission

By default, the maximum file size for each job submission is 1GB. To change the default maximum file size, do the following:

  1. From your computer, navigate to <Install-Dir>\Solutions\apps\lpm\WEB-INF\classes.

  2. Using a text editor, open the application.yml file.

  3. Set the maxFileSize and maxRequestSize.

  4. Restart the Lexmark Solutions Application Server (LSAS) service.

Adding Lexmark Print to a software client group

Note: Make sure that you have a software client license.
  1. From Lexmark Management Console, click the Software Client Groups tab.

  2. From the Software Client Groups section, select Mobile Print.

  3. From the Tasks section, select Client Profiles.

  4. In the Address field, type the IP address (for example, 10.10.2.100) or subnet (for example, 10.10.*.*) of the mobile device or e-mail watcher server.

    Notes:

    • You can also import a CSV file of IP addresses or subnets.
    • Use the asterisk wildcard character (*) at the end of the IP address to search for all devices in that subnet. For example, type 10.10.*.* to accept incoming requests from devices within the range 10.10.0.1–10.10.255.255.
  5. Click Add > Save.

Configuring document conversion software

To enable document conversion, perform the following instructions on each of the LPM Tomcat and application servers that are expected to handle document conversions. For information on the supported document types, see Supported file formats.

We recommend installing the document conversion software before installing Lexmark Print.

Installing .NET framework

To enable interaction between LPM and Microsoft Office document conversion applications when using Lexmark Print version 3.0 or later, install .NET Framework 4.

Document conversion requires .NET Framework 4 to work properly. If .NET Framework 3.5 SP1 is already installed on the machine, then WIC is not necessary for installing .NET Framework 4.

Installing OpenOffice or LibreOffice

Note: You must install the same document conversion software on each Tomcat and application server. Do not use a different document conversion software on different servers.
  1. Download, and then run the setup wizard for OpenOffice or LibreOffice.

  2. During installation, select Install this Application for Anyone who uses this computer.

  3. Do either of the following:

    • For typical installation, make sure that the default installation path is accepted, and then install all the applications.

    • For custom installation, make sure that all main office applications are installed. The optional components can be installed at your discretion.

If OpenOffice or LibreOffice is installed after installing Lexmark Print, then after performing the previous instructions, do the following:

  1. Stop the Lexmark Solutions Application Server service.

  2. Navigate to the %SOLUTIONS_INSTALL_DIR%\apps\wf-ldss\WEB-INF\classes\ folder.

  3. Using a text editor, open the OpenOfficeToPDFClass.properties file.

  4. Set officeToPDF.defaultOfficeHomeDirectory to the location where OpenOffice or LibreOffice is installed.

    Note: For a typical LibreOffice 4 installation, the path is usually C:\Program Files (x86)\LibreOffice 4. Make sure that there is no trailing slash. Also, all backslashes in the path must be replaced with forward slashes.
  5. Save the file.

  6. Start the Lexmark Solutions Application Server service.

  7. From the Lexmark Print application, update the conversion method setting to use the appropriate document converter.

Installing Microsoft Office

Note: Install the same document conversion software on each Tomcat and application server. Do not use a different document conversion software on different servers.
  1. Download, and then run the setup wizard for Microsoft Office.

  2. During installation, select Install this Application for Anyone who uses this computer.

  3. Do either of the following:

    • For typical installation, make sure that the default installation path is accepted, and then install all the applications.

    • For custom installation, make sure that all main office applications are installed. The optional components can be installed at your discretion.

  4. Do either of the following:

    • For 64-bit operating systems, navigate to C:\Windows\SysWOW64\config\systemprofile\ <folder>.

    • For 32-bit operating systems, navigate to C:\WINDOWS\system32\config\systemprofile\< folder>.

  5. Create a directory or a folder inside the "systemprofile" path with the name Desktop.

  6. If you are using Microsoft Office 2007, then install the Microsoft Save as PDF or XPS add-in.

  7. If you want to convert Microsoft Excel documents (.xls and .xlsx), do the following:

    1. Navigate to the %SOLUTIONS_INSTALL_DIR%\lpm\msoffice folder.

    2. Run the createLsasUser.bat file as an administrator.

    3. Type your username and password.

      Note: This step creates a user account with administrative privileges.
    4. Log in to the created account, open the Microsoft Office components, and then complete the setup process.

      Note: This step creates the necessary folders for the user profile.
    5. Change the Lexmark Solution Application Server service to run as this user, and then restart the service.

If Microsoft Office is installed after installing Lexmark Print, then after performing the previous instructions, do the following:

  1. Stop the Lexmark Solutions Application Server service.

  2. Navigate to the %SOLUTIONS_INSTALL_DIR%\apps\wf-ldss\WEB-INF\classes\ folder.

  3. Using a text editor, open the MsOfficeDocConvClass.properties file.

  4. Set officeConv.execName to use one of the following executable files:

    • For Microsoft Office 2013, specify MsOffice2013DocConverter.exe.

    • For Microsoft Office 2010, specify MsOffice2010DocConverter.exe.

    • For Microsoft Office 2007, specify MsOffice2007DocConverter.exe.

  5. Save the file.

  6. Start the Lexmark Solutions Application Server service.

  7. From the Lexmark Print application, update the conversion method setting to use the appropriate document converter.

Adding Lexmark Print Management to Lexmark Print

Note: Before you begin, make sure that you have added Lexmark Print as a software client in Lexmark Management Console. For more information, see Adding Lexmark Print to a software client group.
  1. From your mobile device, open Lexmark Print.

  2. From the application home screen, tap Find Device.

  3. Tap Network Address, and then in the Address field, type IPaddress/mobile, where IPaddress is the IP address of the load balancer.

    Note: If your environment has a hardware or software load balancer in front of several subsystems, then type the hardware or software load balancer address.
  4. Depending on your configuration, log in using your LDAP or Active Directory credentials. For more information, see Understanding the mobile and e-mail configuration data.

Configuring Lexmark Email Watcher

We recommend installing the document conversion software before installing Lexmark Print.

When you install Lexmark Print Management, selecting the e-mail component also installs Lexmark Email Watcher on the load balancer.

Lexmark Email Watcher is a Windows service that can be seen in the Windows Services control panel applet. Lexmark Email Watcher is not started during the Lexmark Print Management load balancer installation because the service must be configured before it is started. When a configuration change is made to this service, restart it for the update to take effect. Also, to enable the service to start after reboots, set its startup type to Automatic.

Understanding the Lexmark Email Watcher configuration data

Lexmark Email Watcher is installed in the base Lexmark Solutions folder that is selected when installing the load balancer. By default, the location is %ProgramFiles%\Lexmark\Solutions\EmailWatcher. The configuration file is config_EmailWatcher.properties and is located in the conf subfolder. A file that contains sample properties is installed. Some of the properties are commented out, and some are not in the file yet. Add the necessary properties for your email server.

Notes:

Setting

Valid values

Notes

ldd.server

http://IPaddress:9780

Where IPaddress is the IP address or host name of the load balancer.

A sample URL is http://my-lpm-server:9780.

ldd.profile

mobileprint

The name of the profile when the job is submitted to LPM. Do not change this setting.

mail.type

  • imap

  • pop3

  • ews

The type of email server on which the email account is located. We recommend using IMAP.

mail.server

N/A

For IMAP or POP3, this setting is the IP address or host name of the mail server.

mail.port

  • 143 (IMAP)

  • 993 (IMAP over SSL)

  • 110 (POP3)

  • 995 (POP3 over SSL)

For IMAP or POP3, the common ports are listed. If necessary, use another value.

mail.tls

  • 0 (no TLS)

  • 1 (use TLS)

For IMAP or POP3, this setting determines whether TLS must be used when communicating with the mail server.

Only TLS or SSL can be used, not both. If TLS is enabled, then the SSL setting is ignored.

mail.ssl

  • 0 (no TLS)

  • 1 (use TLS)

For IMAP or POP3, this setting determines whether SSL must be used when communicating with the mail server.

Only TLS or SSL can be used, not both. If TLS is enabled, then the SSL setting is ignored.

mail.folder

INBOX

For IMAP or POP3, this setting specifies the folder where new mail appears. We recommend not changing this setting.

mail.allowNTLM

  • 0 (Do not allow)

  • 1 (Allow)

For IMAP or POP3, this setting determines whether the user can authenticate using NTLM. We recommend not changing this setting.

mail.domain

N/A

For IMAP or POP3, this setting is the domain of the user account.

mail.user

N/A

For IMAP or POP3, this setting is the username of the monitored account.

mail.pw

N/A

For IMAP or POP3, this setting is the password of the monitored account.

mail.allowIdle

  • 0 (Do not allow)

  • 1 (Allow)

If the mail server supports automatic notification of new emails, then this setting specifies whether to enable automatic notification. If disabled, then set the poll value of the mail.poll setting.

Note: Typically, only IMAP servers support automatic notification of new emails.

mail.poll

60

The time in seconds before new email is checked. The default is 60 seconds.

Note: If your server supports automatic notification on new emails, then polling is not necessary.

Debug

  • 0 (Off)

  • 1 (On)

Determines whether extra logging must be written to the log file. We recommend enabling this setting only when troubleshooting an issue because the amount of data being logged can slow down the processing.


Sample Lexmark Email Watcher config_emailwatcher.properties configurations
For IMAP
# Mandatory Properties
ldd.server=http://[ldd-lb-addr]:9780
ldd.profile=mobileprint
mail.server=imap.gmail.com
mail.user=test@company.com
mail.pw=notTheRealPassword

# Optional Properties.
mail.type=imap
mail.ssl=1
mail.tls=0
mail.port=993
mail.folder=INBOX
mail.allowIdle=1

debug=1
For Microsoft Exchange
# Mandatory Properties
ldd.server=http://[ldd-lb-addr]:9780
ldd.profile=mobileprint
mail.server=ews.mail.com
mail.domain=test_domain
mail.user=test_ews@company.com
mail.pw=notTheRealPassword

# Optional Properties.
mail.type=ews
mail.ssl=1
mail.folder=INBOX
mail.ignoreSSLCert=1

debug=1
Sample config_emailwatcher.properties file for Microsoft Exchange Online modern authentication in <LDD-install-path>\EmailWatcher\conf

Modern authentication authenticates the user through a single browser-based application, tenant ID, user ID, and the required details. The following is a sample batch file for Microsoft Exchange Online modern authentication.

# GENERAL CONFIGURATION
ldd.server=http://<Put LDD Server/LB IP>:9780

# STANDARD PRINT CONFIGURATION.
# This is the existing email watcher feature and is enabled by default.
# Do not use the same email account with guest print.
# Do not change the value of "ldd.profile".debug=1
#
standard.print.enable=1
ldd.profile=mobileprint

### Required only if not using Exchange Online.
### "mail.user" and "mail.pw" values will be replaced with encrypted text
### when EmailWatcher service is started. To change either of the values,
### simply replace the encrypted value with the new value. Please make sure
### that the values do not start with "ENC(" and end with ")".
mail.user=
mail.pw=

# GUEST PRINT CONFIGURATION
# Using the email service account specified below, EmailWatcher can monitor
# incoming print jobs from guest users. This feature is disabled by default.
# To enable, set "guest.print.enable" to 1.
#
# Do not use the same email account with standard print.
# Do not change the value of "ldd.profile.guest".
#
guest.print.enable=1
ldd.profile.guest=guestrelease

### Required only if not using Exchange Online.
### Specify the values for "mail.user.guest" and "mail.pwd.guest". Values will
### be replaced with encrypted text when EmailWatcher service is started.
### Make sure that the values do not start with "ENC(" and end with ")".
mail.user.guest=
mail.pw.guest=

# MAIL SERVER CONFIGURATION
# Uncomment then provide values for the applicable properties.
# If not applicable, keep it being commented out.
#
### Specify mail server address for IMAP, POP3, Exchange Premise mail types
### For Exchange Online, value is not required.
mail.server= 

mail.type=ews
#mail.domain=<mail domain>
#mail.ssl=< 0 or 1>
#mail.port=<mail server port>
mail.folder=INBOX
#mail.ignoreSSLCert=< 0 or 1 >
mail.poll=60
#mail.allowIdle=1  #If  Mail Server supports IMAP IDLE
mail.hideUserAndJobInfo=1

# ADDITIONAL SERVER CONFIGURATION FOR MS EXCHANGE
# Uncomment then provide values for the applicable properties.
# If not applicable, keep it being commented out.

### Authentication types:
###   basic     - For username/password authentication
###   oauth2    - Modern authentication (OAuth 2.0)
ews.auth.type=oauth2

### Authorization flows:
###   auth-code-with-client-id-secret     - OAuth 2.0 authorization code grant type, or auth code flow
ews.auth.grantType=auth-code-with-client-id-secret

### The generated application (client) ID of your registered
### app in Azure Active Directory.
ews.aad.clientId=076c7620-10e8-4418-9592-1f7a1a80868b

### The generated application (client) secret of your registered
### app in Azure Active Directory.
ews.aad.clientSecret=KeX8Q~Xd~wo.49fFqE_a6S.lMn~Pu6tQHhmE-a2c

### Identity platform endpoint to acquire security tokens
### For <tenant>, valid values are common, organizations, consumers, and tenant identifiers.
ews.aad.authority=https://login.microsoftonline.com/12709065-6e6c-41c9-9e4d-fb0a436969ce

### The redirect URI of your app, where authentication responses
### can be sent and received by your app. It must exactly match one
### of the redirect URIs you registered in the portal.
### You must specify a port in the URI. For example: https://localhost:5000/
ews.aad.redirectUri=http://localhost:9991/

### A space-separated list of scopes that you want the user to consent to.
### This value allows your app to get consent for multiple web APIs you want to call.
ews.aad.scopes=openid offline_access https://graph.microsoft.com/Mail.ReadWrite

### Indicates the type of user interaction that is required
### when authenticating the user.
### Valid values: login, consent, select_account
ews.aad.prompt=select_account

### The timeout (milliseconds) to wait for the user to input and validate their
### credentials for authentication.
ews.socket.timeout=300000

### Messages that will be printed in the oauth2 login tab of browser after acquiring the auth code.
ews.afterLoginMessage.standard=Authorization code for Email Watcher Standard Print service account has been successfully acquired. You can now close this tab.
ews.afterLoginMessage.guest=Authorization code for Email Watcher Guest Print service account has been successfully acquired. You can now close this tab.

### The delay (milliseconds) between authentication prompts
### when both standard and guest print features are enabled.
ews.auth.prompt.delay=5000

Modern authentication support for Lexmark Email Watcher

Modern authentication support for Lexmark Email Watcher

This feature authenticates the user through a single browser-based application, tenant ID, user ID, Azure ID, password, and other details. This feature applies only to Microsoft Exchange Online.

Understanding the authentication support requirements

Before you begin, make sure that modern authentication for LPM server is configured as follows:

Requirement

Execution

An account with permissions to register new client application in Azure Active Directory (AD).

  1. Navigate to Microsoft Azure Portal.

    Note: The current URL of the Microsoft Azure Portal is https://portal.azure.com/#home.

  2. Click Azure Active Directory > App registrations.

Registered client application in Azure Active Directory.

Go to https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app.

Before you begin, make sure that you know how to configure a client application and API permissions. For more information, see Configuring client application and API permissions .

Configure the following:

  • Client secret

    Note: Take note of the value while adding the client secret, as it will be masked after saving it.

  • Redirect URI

    Note: Specify the port details. For instance, the port number can be 9100.

Take note of the following:

  • Application (client) ID

  • Directory (tenant) ID

Set API permissions for the registered client application.

For more information on setting API permissions, go to https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app and refer to the Setting API Permissions for Registered Client Application section.

Service accounts in Microsoft Exchange with mailbox enabled.

Separate accounts for standard and guest print. Email Watcher watches or reads the inbox of this account.

Configured MobilePrint solution.

Same configuration with previous Email Watcher versions.

Office converter software already installed.

Can be Microsoft Office, OpenOffice, or LibreOffice.

From Lexmark Management Console, click Services > Mail configured to point to Exchange Online server.

Make sure that SMTP configuration is selected.


Configuring client application and API permissions

  1. Navigate to Microsoft Azure Portal.

    Note: The current URL of Microsoft Azure Portal is https://portal.azure.com /#home.
  2. Click Azure Active Directory > App registrations.

    Note: If you want to register a new client, then click New registration.
  3. Select the registered client application.

  4. To add or generate a client secret for the application, do the following:

    1. Click Client credentials > New client secret.

    2. Type the description, and then specify the expiry date.

    3. Click Add.

      Note: Take note of the actual value of client secret as it will be masked after saving it.
  5. To add Redirect URIs, do the following:

    1. Select Redirect URIs.

    2. Click Add a platform > Web.

    3. Enter a valid URI for the application.

      Note: The port details must be specified.
    4. Click Configure.

Setting API permissions for registered client applications
  1. Navigate to Microsoft Azure Portal.

    Note: The current URL of Microsoft Azure Portal is https://portal.azure.com /#home.
  2. Click Azure Active Directory > App registrations.

  3. Select the registered client application.

  4. In the left pane, select API permissions > Add a permission.

  5. In the Microsoft APIs section, select Microsoft Graph > Delegated permissions.

  6. In the Opened permissions section, select the following:

    • email

    • offline_access

    • openid

  7. In the Mail section, select Mail.ReadWrite.

  8. Select Add permissions.

Configuring modern authentication for LPM server

  1. Configure the properties file of the application.

    Note: For more information on authentication settings and values, see Lexmark Modern Authentication for LPM server.
  2. Run the command prompt as an administrator.

    Note: For more information on parameters, see Parameters.
  3. From the User Account Control window, click Yes.

  4. Navigate to the Email Watcher root directory: <C:\Program Files\Lexmark\Solutions\EmailWatcher\conf_>.

  5. At the command prompt, type EmailWatcher.bat.

    Note: If the standard print feature is enabled, then the default browser is launched. If the default browser is already open, then a new tab is launched.
  6. Type the user ID and password.

    Note: The credentials must be the same as that of the Microsoft Exchange Online mail user.
  7. Click Sign in.

    Notes:

    • If the guest print feature is enabled, then the browser prompts you to enter the credentials of the service account for guest print.
    • After successful authentication, the application continues running in the background.
Lexmark Modern Authentication for LPM server

Setting

Valid values

General

ldd.server=http://<LDD LB Server IP>:<port>

Note: Replace the text in brackets with the actual value.

Standard Print

  • standard.print.enable=<0 or 1>, where 0 is disable and 1 is enable.

  • ldd.profile=mobileprint

  • Note: Username and password are not required in modern authentication.

Guest Print

  • guest.print.enable=<0 or 1>,where 0 is disable and 1 is enable.

  • ldd.profile.guest=guestrelease

  • Note: Username and password are not required in modern authentication.

Mail Server

  • mail.type=ews

  • mail.folder=INBOX

  • mail.poll=<frequency to query mailbox for mails, default 60>

  • mail.hideUserAndJobInfo=<0 or 1>

    Note: Set to 1 to hide user info, or 0 to show information in logs.

Exchange Online

  • ews.auth.type=oauth2

  • ews.auth.grantType=auth-code-with-client-id-secret

  • ews.aad.clientId=<client ID of registered application in Azure AD>

  • ews.aad.clientSecret=<client secret of registered application in Azure AD>

  • ews.aad.authority=https://login.microsoftonline.com/<tenant>

  • ews.aad.redirectUri=<redirect URI configured for the registered application in Azure AD. You must specify a port. Example: http://locahost:5000/>

  • ews.aad.scopes=openid offline_access https://graph.microsoft.com/Mail.ReadWrite

  • ews.aad.prompt=login, consent, or select_account

    Notes:

    • Set to login to prompt the user to enter a username and password.
    • Set to consent to prompt the user to grant permission after login.
    • Set to select_account to allow choosing cached user accounts in the default browser. Default: select_account.
  • ews.socket.timeout=<time (in milliseconds) to wait for the user to input and validate their credentials for authentication. Default: 300000>

  • ews.afterLoginMessage.standard=<message to display after log in of service account for standard print functionality>

  • ews.afterLoginMessage.guest=<message to display after log in of service account for guest print functionality>

  • ews.auth.prompt.delay=<delay (in milliseconds) between authentication prompts when both standard and guest print features are enabled>


Parameters

Parameter

Email Watcher service

Behavior

<no parm>

Stopped

Prompts the user to log in, and then starts the service.

start

Stopped

Prompts the user to log in, and then starts the service.

stop

Stopped

Shows message that service is already stopped.

restart

Stopped

Shows message that service is already stopped. The user must log in and start the service.

<no parm>

Running

Shows message that service is already running. The options available are either to start or stop the service.

<no param> then 1. STOP is selected in #5

Running

Stops the service

<no param> then 2. RESTART is selected in #5

Running

Stops the service. The user must log in and start the service again.

start

Running

Shows message that service is already running.

stop

Running

Stops the service.

restart

Running

Stops the service. The user must log in and start the service again.


Sample config_emailwatcher.properties file for Microsoft Exchange Online modern authentication in <LDD-install-path>\EmailWatcher\conf>
#------------------------------------------------------------------------------
# GENERAL CONFIGURATION
#------------------------------------------------------------------------------
ldd.server=http://<LB Server/LB IP>:9780

#------------------------------------------------------------------------------
# STANDARD PRINT CONFIGURATION
# This is the existing email watcher feature and is enabled by default.
# Do not use the same email account with guest print.
# Do not change the value of "ldd.profile"
#------------------------------------------------------------------------------

standard.print.enable=1
ldd.profile=mobileprint

### Required only if not using Exchange Online.
### "mail.user" and "mail.pw" values will be replaced with encrypted text
### when EmailWatcher service is started. To change either of the values,
### simply replace the encrypted value with the new value. Please make sure
### that the values do not start with "ENC(" end with ")".
mail.user=
mail.pw=

#------------------------------------------------------------------------------
# GUEST PRINT CONFIGURATION
# Using the email service account specified below, EmailWatcher can monitor
# incoming print jobs from guest users. This feature is disabled by default.
# To enable, set "guest.print.enable" to 1. 
#
# Do not use the same email account with standard print.
# Do not change the value of "ldd.profile.guest".
#------------------------------------------------------------------------------
guest.print.enable=1
ldd.profile.guest=guestrelease

### Required only if not using Exchange Online.
### Specify the values for # "mail.user.guest" and "mail.pwd.guest". Values will
### be replaced with encrypted text when EmailWatcher service is started.
### Make sure that the values do not start with "ENC(" and end with ")".
mail.user.guest=
mail.pw.guest=

#------------------------------------------------------------------------------
# MAIL SERVER CONFIGURATION
# Uncomment then provide values for the applicable properties.
# If not applicable, keep it being commented out.
#------------------------------------------------------------------------------
### Specify mail server address for IMAP, POP3, Exchange Premise mail types
### For Exchange Online, value is not required.
mail.server= 
mail.type=ews
#mail.domain=<mail domain>
#mail.ssl=< 0 or 1 >
#mail.port=<mail server port>
mail.folder=INBOX
#mail.ignoreSSLCert=< 0 or 1 >
mail.poll=60
#mail.allowIdle=1  #If  Mail Server supports IMAP IDLE
mail.hideUserAndJobInfo=1
#------------------------------------------------------------------------------
# ADDITIONAL SERVER CONFIGURATION FOR MS EXCHANGE
# Uncomment then provide values for the applicable properties.
# If not applicable, keep it being commented out.
#------------------------------------------------------------------------------
### Authentication types:
###   basic     - For username/password authentication
###   oauth2    - Modern authentication (OAuth 2.0)
ews.auth.type=oauth2

### Authorization flows:
###   auth-code-with-client-id-secret     - OAuth 2.0 authorization code grant type, or auth code flow
ews.auth.grantType=auth-code-with-client-id-secret

### The generated application (client) ID of your registered
### app in Azure Active Directory.
ews.aad.clientId=076c7620-10e8-4418-9592-1f7a1a80868b

### The generated application (client) secret of your registered
### app in Azure Active Directory.
ews.aad.clientSecret=KeX8Q~Xd~wo.49fFqE_a6S.lMn~Pu6tQHhmE-a2c

### Identity platform endpoint to acquire security tokens
### ### For tenant, valid values are common, organizations, consumers, and tenant identifiers.
ews.aad.authority=https://login.microsoftonline.com/12709065-6e6c-41c9-9e4d-fb0a436969ce

### The redirect URI of your app, where authentication responses
### can be sent and received by your app. It must exactly match one
### of the redirect URIs you registered in the portal.
### You must specify a port in the URI. For example: https://localhost:5000/
ews.aad.redirectUri=http://localhost:9991/

### A space-separated list of scopes that you want the user to consent to.
### This value allows your app to get consent for multiple web APIs you want to call.
ews.aad.scopes=openid offline_access https://graph.microsoft.com/Mail.ReadWrite

### Indicates the type of user interaction that is required
### when authenticating the user.
### Valid values: login, consent, select_account
ews.aad.prompt=select_account

### The timeout (milliseconds) to wait for the user to input and validate their
### credentials for authentication.
ews.socket.timeout=300000

### Messages that will be printed in the oauth2 login tab of browser after acquiring the auth code.
ews.afterLoginMessage.standard=Authorization code for Email Watcher Standard Print service account has been successfully acquired. You can now close this tab.
ews.afterLoginMessage.guest=Authorization code for Email Watcher Guest Print service account has been successfully acquired. You can now close this tab.

### The delay (milliseconds) between authentication prompts
### when both standard and guest print features are enabled.
ews.auth.prompt.delay=5000 

Understanding e-mail print options

When you submit an e-mail, several options are available that can be sent with the printer address or nickname that manages the output. To use the print options, make sure that Device ID is set to First Word of Subject. For more information, see Understanding the mobile and e-mail configuration data.

The options are specified after the device ID.

Option

Value

Notes

Copies

/c#

The # symbol indicates the number of copies. If a value greater than the Print Max Copies solution setting is entered, then the maximum value is used.

Duplex

/d

This setting prints the document in duplex.

Note: This option may not work on some non-Lexmark printers.

Hole Punch

/h

If the printer has a hole punch finisher, then this setting uses the hole punch feature.

Note: This option does not work on non-Lexmark printers.

No Attachments

/na

Only the message body is printed and the attachments are ignored. This setting has no effect when the Print Attachments solution setting is set to Always.

No Body

/nb

Only the attachments are printed and the message body is ignored. This setting has no effect when the Print Body solution setting is set to Always.

No Duplex

/nd

The document is printed one-sided. This setting has no effect when the Print Duplex solution setting is set to Always.

Print Attachments

/pa

This setting lets you print attachments in the e-mail. This setting has no effect when the Print Attachments solution setting is set to Never.

Print Body

/pb

This setting lets you print the message body in the e-mail. This setting has no effect if the Print Body solution setting is set to Never.

Staple

/s

If the printer has a staple finisher, then this setting uses the staple feature.

Note: This option does not work on non-Lexmark printers.

Mono

/m

The document is printed in monochrome.


See the following examples:

Subject

Result

printerid /c2 /d

Prints two duplexed copies

printerid /nb

Prints only the attachment

printerid /d /s

Staples and duplexes the message body and each attachment

printerid /na

Prints only the message body


Configuring printer nicknames

Printer nicknames map a user-friendly nickname and the IP address of a printer. When configured, printer nicknames let users use the nickname instead of the IP address when submitting jobs.

Note: Make sure that Printer Nicknames is enabled in Print Management Console. For more information, see Show more features.
  1. Open a web browser, and then type http://IPaddress:9780/printrelease/, where IPaddress is the IP address of the load balancer.

  2. Log in as an administrator.

    Notes:

    • The default user name and password is admin.
    • The default credentials are the same as those in Lexmark Management Console (LMC).
    • If the Print Management Console is configured to connect to an LDAP server, then use your LDAP user name and password.
  3. Depending on your configuration, from the Print Management Console, do either of the following:

    • Click Printer Nicknames.

    • Click Device Functions > Printer Nicknames.

  4. Manage the printers.

    • Filter the list by typing the keywords in the Filter field, and then clicking the Filter icon.

      Note: Do not use special characters or symbols.
    • Refresh the list by clicking the Refresh button.

    • Add, edit, or delete printers.

Configuring the server for AirPrint

When installing Lexmark Print Management, select the AirPrint component to enable the AirPrint feature.

Accessing AirPrint configuration

  1. Open a web browser, and then type http://IPaddress:0001/#/settings/configAccess, where IPaddress is the IP address of the load balancer.

  2. From the side navigation, click the AirPrint group.

Understanding AirPrint discovery

To perform AirPrint advertisement and service discovery for Lexmark Print Management, do either of the following:

Unicast
Multicast
  1. Access the AirPrint configuration page. For more information, see Accessing AirPrint configuration.

  2. From the General tab, select Enable Bonjour discovery.