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
Set up new server
Set up ubuntu vm
# sudo apt-get update
# sudo hostname mail-relay-01.inspiredsoftware.com.au
# sudo apt-get install dovecot-core
# sudo apt-get install postfix
Select internet site
Enter in fqdn
eg. restricted-relay.inspiredsoftware.com.au
# 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
sudo nano /etc/postfix/master.cf
change "smtp inet n – n – – smtpd" to a new port number if needed "2509 inet n – n – – smtpd"
Set up ubuntu vm
# sudo apt-get update
# sudo hostname mail-relay-01.inspiredsoftware.com.au
# sudo apt-get install dovecot-core
# sudo apt-get install postfix
Select internet site
Enter in fqdn
eg. restricted-relay.inspiredsoftware.com.au
# 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
sudo nano /etc/postfix/master.cf
change "smtp inet n – n – – smtpd" to a new port number if needed "2509 inet n – n – – smtpd"
Add allowed recipients
# sudo nano /etc/postfix/transport
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
# sudo postmap /etc/postfix/transport
# sudo nano /etc/postfix/transport
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
# sudo postmap /etc/postfix/transport
Set up upstream relay authentication
# sudo nano /etc/postfix/sasl_passwd
Add in entries for smtp username:password
eg.
mailtrap.io 49afac65d2905e:d2465d33441bf4
# sudo postmap /etc/postfix/sasl_passwd
# sudo nano /etc/postfix/sasl_passwd
Add in entries for smtp username:password
eg.
mailtrap.io 49afac65d2905e:d2465d33441bf4
# sudo postmap /etc/postfix/sasl_passwd
Apply configuration changes
# sudo service postfix reload
# sudo service postfix reload
[SKIP: NOT WORKING] Add user for client to use
adduser [client code]
eg. adduser pjx
Enter password for account
adduser [client code]
eg. adduser pjx
Enter password for account
Configure Odoo
(Do not use any auth for now)
Add outgoing email server to odoo
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up