Difference between revisions of "Email server setup"
Jump to navigation
Jump to search
old>Admin |
|||
(15 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== Preparations == | |||
Get the information of the outbound server | |||
* Server address | |||
* Mail account | |||
Note that the SMTP server may be the same as the IMAP or POP server | |||
== Setup in Tempus Serva backend == | |||
Go to: '''Designer > Modules > Configuration''' | Go to: '''Designer > Modules > Configuration''' | ||
In the 'Text' search field, search for Server settings containing '''smtp''' | |||
[[Policy_reference#Mail_server]] | |||
{| | {| | ||
! | !Alias | ||
!Empty | !Empty | ||
!Meaning | !Meaning | ||
Line 14: | Line 23: | ||
|'''smtpServer''' | |'''smtpServer''' | ||
|No | |No | ||
|URL for the server | |URL for the outgoing SMTP server | ||
|send.one.com | |send.one.com | ||
|- | |- | ||
Line 20: | Line 29: | ||
|'''smtpSystemEmail''' | |'''smtpSystemEmail''' | ||
|No | |No | ||
|Sender address on | |Sender address on email sent from the server | ||
| | |noreply@acme.com | ||
|- | |- | ||
|'''smtpUsername''' | |'''smtpUsername''' | ||
|Yes | |Yes | ||
|Account name | |Account name for sending emails | ||
| | |noreply@acme.com | ||
|- | |- | ||
Line 37: | Line 46: | ||
|} | |} | ||
Communication with the SMTP server can be tweaked using | Communication with the SMTP server can be tweaked using | ||
{| | {| | ||
! | !Alias | ||
!Meaning | !Meaning | ||
!Example | !Example | ||
|- | |- | ||
|'''smtpUseTLS''' | |||
|Use TLS communication | |||
|true | |||
|- | |||
|'''smtpMailDelay''' | |'''smtpMailDelay''' | ||
Line 64: | Line 78: | ||
{| | {| | ||
! | !Alias | ||
!Meaning | !Meaning | ||
!Example | !Example | ||
Line 81: | Line 95: | ||
|} | |} | ||
== Option: Sending from the server itself == | |||
It is possible to install a mail service directly on the server itself, allthough it is recommended to allways use dedicated servers. | |||
sudo yum install mailutils | |||
sudo yum install postfix | |||
=== Avoid getting mails flagged as spam === | |||
Step 1 and 2 are only relevant for AWS instances | |||
# Assign Elastic (permanent) IP to your mail server instance. | |||
# Create for it A record in corresponding DNS zone | |||
# Use the [https://aws.amazon.com/forms/ec2-email-limit-rdns-request AWS form] to request AWS to create a valid PTR (reverse DNS) record for that IP | |||
# Set up [https://www.linuxbabe.com/redhat/set-up-spf-dkim-postfix-centos SPF, DKIM] and [https://www.linuxbabe.com/mail-server/create-dmarc-record DMARC records]. |
Latest revision as of 12:17, 10 December 2021
Preparations
Get the information of the outbound server
- Server address
- Mail account
Note that the SMTP server may be the same as the IMAP or POP server
Setup in Tempus Serva backend
Go to: Designer > Modules > Configuration
In the 'Text' search field, search for Server settings containing smtp
Alias | Empty | Meaning | Example |
---|---|---|---|
smtpServer | No | URL for the outgoing SMTP server | send.one.com |
smtpSystemEmail | No | Sender address on email sent from the server | noreply@acme.com |
smtpUsername | Yes | Account name for sending emails | noreply@acme.com |
smtpPassword | Yes | Password for the above account | secret1234 |
Communication with the SMTP server can be tweaked using
Alias | Meaning | Example |
---|---|---|
smtpUseTLS | Use TLS communication | true |
smtpMailDelay | Throtling between each mail (seconds) | 500 |
smtpSendRetries | Number of attemts to send each mail | 3 |
In order to test applications a testmode can be activated
Alias | Meaning | Example |
---|---|---|
smtpTestMode | Activates the test mode | true |
smtpTestEmail | Email that receives all emails when in testmode | someone@acme.com |
Option: Sending from the server itself
It is possible to install a mail service directly on the server itself, allthough it is recommended to allways use dedicated servers.
sudo yum install mailutils sudo yum install postfix
Avoid getting mails flagged as spam
Step 1 and 2 are only relevant for AWS instances
- Assign Elastic (permanent) IP to your mail server instance.
- Create for it A record in corresponding DNS zone
- Use the AWS form to request AWS to create a valid PTR (reverse DNS) record for that IP
- Set up SPF, DKIM and DMARC records.