I can't get emails to work :(
Hello i have been trying all day to get emails to work and I am totally lost.
PLEASE PLEASE PLEASE could some one help me.
I have set up a domain which is my own name rickyspires.co.uk and i would like to have an email address for that domain like mail@ or info@.
I have set up the domain and that all works.
My droplet is called spangler1 and my login name has changed from root to rickyspires.
This is what i have tried.
I have followed this tutorial http://www.youtube.com/watch?v=kdio_MMNqUE
First login to the server
sudo apt-get update
sudo apt-get install postfix
config the main.cf file
sudo nano main.cf
myhostname = rickyspires.co.uk
virtualaliasmaps = hash:/etc/postfix/virtual
aliasdatabase = hash:/etc/aliases
mydestination = rickyspires.co.uk, spangler1, ricky-spiress-MacBook-Pro.local, localhost
mynetworks = 127.0.0.0/8 10.0.0.0/8
mailboxsizelimit = 0
recipientdelimiter = +
inet_interfaces = all
sudo service postfix restart
- try sending a test email
rickyspires@spangler1:/etc/postfix$ telnet 127.0.0.1 25
Connected to 127.0.0.1.
Escape character is ’^]’.
220 rickyspires.co.uk ESMTP Postfix (Ubuntu)
mail to: email@example.com
501 5.5.4 Syntax: MAIL FROM:<address>
!!!!! I GET AN ERROR HERE - the error wasnt there before ? But even when i didnt get the error at this point the emails would not send.
I get this..... for example
From MAILER-DAEMON Sun Oct 21 07:17:27 2012
Date: Sun, 21 Oct 2012 07:17:27 +0100 (BST)
From: MAILER-DAEMON@ricky-spiress-MacBook-Pro.local (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
Content-Type: multipart/report; report-type=delivery-status;
ANY IDEAS ?