Hey everyone. I want to install and configure Postfix to relay off of a mail server that already exists in my datacenter. The relay does not require authentication and all the guides that I have fo... [by ykket]
I'm trying to set up a simple SMTP relay on 14.04 LTS. I've found hundreds of tutorials with using postfix, dovecot, etc. and have had little success because most are explaining setting up mail servers, not a simple relay.
Here is my situation... I am setting up the SMTP Relay server in an Amazon VPC.
I'm trying to configure my postfix (2.9.6) mail server to initially try deliver messages directly to the recipient MX, then fall back to relaying through my ISP's mail server if it recieves a 5xx status code. My mail server is on the end of a home broadband connection so it falls foul of spamhaus filtering.
I'm trying to configure sendmail as a relay server for a variety of external systems that require an external smtp server. We have setup the access file to look for specific items such as:
From:[email protected] REJECT
To: adomain.com RELAY
Connect: server.domain.com RELAY
From: anotherdomain.com RELAY
I installed postfix on a bare bones Ubuntu Server 12.04 by typing the following in the terminal.
sudo apt-get install postfix
When asked to choose a mail server configuration type, I chose Satellite system. For the System mail name, I entered ww1.example.com and for the SMTP relay host, I selected mail.example.com. Note that I replaced example.com with my own domain.