Difference between revisions of "Email server setup"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 100: Line 100:
== Alternative: Sending from the server itself ==  
== Alternative: Sending from the server itself ==  


=== Avoid getting mails flagged as spam ===
# Assign Elastic (permanent) IP to your mail server instance.
# Assign Elastic (permanent) IP to your mail server instance.
# Create for it A record in corresponding DNS zone
# Create for it A record in corresponding DNS zone
# Use the below form
# 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
https://aws.amazon.com/forms/ec2-email-limit-rdns-request
to request AWS to create a valid PTR (reverse DNS) record for that IP
# Set up SPF, DKIM and DMARC records.
# Set up SPF, DKIM and DMARC records.

Revision as of 11:04, 11 May 2020

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

http://tempusserva.dk/mediawiki/index.php?title=Policy_reference#Mail_server

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


Alternative: Sending from the server itself

Avoid getting mails flagged as spam

  1. Assign Elastic (permanent) IP to your mail server instance.
  2. Create for it A record in corresponding DNS zone
  3. Use the AWS form to request AWS to create a valid PTR (reverse DNS) record for that IP
  4. Set up SPF, DKIM and DMARC records.