Skip to Content

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

This question has been flagged
1 Reply
41 Views
Author Best Answer

Set up new server

  1. Set up ubuntu vm

  2. # sudo apt-get update

  3. # sudo hostname mail-relay-01.inspiredsoftware.com.au

  4. # sudo apt-get install dovecot-core

  5. # sudo apt-get install postfix

  6. Select internet site

  7. Enter in fqdn
    eg. restricted-relay.inspiredsoftware.com.au

  8. # sudo nano /etc/postfix/main.cf
    Set these options

    smtp_sasl_auth_enable = yes

    smtp_sasl_mechanism_filter = plain

    smtp_sasl_security_options = noanonymous

    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

    message_size_limit = 100000000 # 100mb
    mailbox_size_limit = 100000000 # 100mb
    virtual_mailbox_limit = 100000000 # 100mb

    myhostname = restricted-relay.inspiredsoftware.com.au

    relay_domains = static:all

    transport_maps = hash:/etc/postfix/transport



  9. sudo nano /etc/postfix/master.cf

  10. change "smtp inet n – n – – smtpd" to a new port number if needed "2509 inet n – n – – smtpd"


Add allowed recipients

  1. # sudo nano /etc/postfix/transport

  2. add in allowed domains 

    *                                                     smtp:[mailtrap.io]:2525

    inspiredsoftware.com.au          smtp:

    wale@mail-relay-01.inspiredsoftware.com.au      smtp:[mailtrap-wal]:2525 
    hse@mail-relay-01.inspiredsoftware.com.au       smtp:[mailtrap-hse]:2525


  3. # sudo postmap /etc/postfix/transport


Set up upstream relay authentication

  1. # sudo nano /etc/postfix/sasl_passwd

  2. Add in entries for smtp username:password
    eg.

    mailtrap.io 49afac65d2905e:d2465d33441bf4

  3. # sudo postmap /etc/postfix/sasl_passwd


Apply configuration changes

  1. # sudo service postfix reload


[SKIP: NOT WORKING] Add user for client to use

  1. adduser [client code]
    eg. adduser pjx

  2. Enter password for account


Configure Odoo

(Do not use any auth for now)

  1. Add outgoing email server to odoo

  2. restricted-relay.inspiredsoftware.com.au, pjx, [password]


CONNECT TO SERVER

SUDO SSH UBUNTU@EC2-52-65-73-167.AP-SOUTHEAST-2.COMPUTE.AMAZONAWS.COM -I IS.PEM 


Avatar
Discard