Introduction
This document describes how to configure Simple Mail Transfer Protocol (SMTP) Mail Server with the use of port 25 in a CloudCenter Manager (CCM) located in a private network.
Prerequisites
Requirements
Cisco recommends that you have knowledge of these topics:
- Linux Interface
- Virtual Machine Environment
- Virtual Interface Manager (VIM)
Components Used
The information in this document is based on these software versions:
- CloudCenter version 4.8.0.x and 4.8.1.x
- CCM Component
The information in this document was created from the devices in a specific private lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.
Background Information
Some customers have private environments and they have the need to configure the CCM mail properties with the use of an SMTP server on port 25.
Configure
You are unable to configure the CCM mail properties with the use of an SMTP server on port 25.
Step 1. In the CCM component, backup the /usr/local/tomcat/webapps/ROOT/WEB-INF/mail.properties file.
cp mail.properties mail.properties.original
Step 2. Open the mail properties with a text editor and perform these changes:
vi mail.properties
# The hostname or IP address of your SMTP server
# Currently mob-gen.com email domain is hosted by gmail
# Gmail requires smtp over ssl, do not modify these settings
Step 3. Use the IP address or Domain Name Server (DNS) for your SMTP server:
mail.smtp.host=<IP address or DNS>
Step 4. Use false for no authentication (With no authentication, anyone can use your SMTP server to send emails).
mail.smtp.auth=false
Step 5. Use port 25:
mail.smtp.port=25
mail.smtp.socketFactory.port=25
Step 6. Use com.sun.mail.smtp for SMTP on port 25:
mail.smtp.socketFactory.class=com.sun.mail.smtp
Step 7. Use true statement:
mail.smtp.socketFactory.fallback=true
Step 8. No changes:
# Email user to authenticate to gmail
mail.user.number=1
mail.user.1=
mail.password.1=
Step 9. The email that is used in order to send the email notification:
from.mail.user.1=<username@example.com>
Step 10. The username that is used:
from.mail.username.1=<username>
Step 11. Save the email properties file, it must look like this:
# The hostname or IP address of your SMTP server
# Currently mob-gen.com email domain is hosted by gmail
# Gmail requires smtp over ssl, do not modify these settings
mail.smtp.host=smtp.cloudcenter.com
mail.smtp.auth=false
mail.smtp.port=25
mail.smtp.socketFactory.port=25
mail.smtp.socketFactory.class=com.sun.mail.smtp
mail.smtp.socketFactory.fallback=true
# Email user to authenticate to gmail
mail.user.number=1
mail.user.1=
mail.password.1=
from.mail.user.1=noreply@cloudcenter.com
from.mail.username.1=CloudCenter Admin
Step 12. Restart the tomcat service:
/etc/init.d/tomcat stop
/etc/init.d/tomcat start
Verify
There is currently no verification procedure available for this configuration.
Troubleshoot
There is currently no specific troubleshooting information available for this configuration.