After spent lot of time on internet for the mail server configuration on OpenEMM, I found no best approach to follow required steps.
Not to dig-in much. Here I am describing some steps to be followed.
The use of Sendmail is enabled by default in OpenEMM. This should be disabled first.
But before that if your server is running then first stop the same.
1. Change to user openemm with
su - openemm
2. Go to /openemm/bin directory and stop the server
sh openemm.sh stop
3. Disable Sendmail with in the same directory with following command
sh sendmail-disable.sh
4. Go to /openemm/conf directory
5. Create a file with name smart-realy and add content inside that as below.
username:password@smtp.mytestserver.com
6. If your username or password contains "@" special character then you need to modify semu.py file in /openemm/bin/scripts directory.
Just open the file with a text editor and replace character @
with the pipe symbol | in lines 160 and 163 each.
7. Start the server with following command. Go to /openemm/bin directory
sh openemm.sh start
This is it.
Hope this will help you for the configuration to the point.
Not to dig-in much. Here I am describing some steps to be followed.
The use of Sendmail is enabled by default in OpenEMM. This should be disabled first.
But before that if your server is running then first stop the same.
1. Change to user openemm with
su - openemm
2. Go to /openemm/bin directory and stop the server
sh openemm.sh stop
3. Disable Sendmail with in the same directory with following command
sh sendmail-disable.sh
4. Go to /openemm/conf directory
5. Create a file with name smart-realy and add content inside that as below.
username:password@smtp.mytestserver.com
6. If your username or password contains "@" special character then you need to modify semu.py file in /openemm/bin/scripts directory.
Just open the file with a text editor and replace character @
with the pipe symbol | in lines 160 and 163 each.
7. Start the server with following command. Go to /openemm/bin directory
sh openemm.sh start
This is it.
Hope this will help you for the configuration to the point.