Email Configure accordingly with the help of community expert: Still Stuck

0

These are the steps instructed by Community experts which I followed except the Step 3: Because unable to create dns as it mentioned you already had dns with this domain.

**My question here how would I access to the emails that I get inbox and how would I sent emails? How would I forward my domain web email to my gmail account.

**last step I have successfully created the password according to the instruction mentioned by community expert, Please provide the consise steps with commands line.
**

Secondly, Why my website access with IP ? I don't want to access my website with Ip ? Provide solution for that as well. or commands to fix this issue

Step 1: Launch an Amazon Lightsail Instance

Log in to the Amazon Lightsail console (console.aws.amazon.com/lightsail). Click on "Create instance" to launch a new instance. Choose an instance image (such as Ubuntu, Debian, etc.) and select an appropriate instance plan. Follow the prompts to create and launch the instance. Step 2: Connect to the Instance

Once the instance is running, click on the instance name in the Lightsail console. On the instance detail page, click on the "Connect using SSH" button to connect to your instance via SSH. You can use an SSH client like PuTTY (for Windows) or the built-in Terminal (for macOS/Linux) to establish an SSH connection to your instance.

Step 3: Configure DNS Records

In the Lightsail console, go to the "Networking" tab and click on the "Create DNS zone" button. Enter your domain name and follow the prompts to create a new DNS zone. Once the DNS zone is created, you'll see the list of DNS records. Add a new "A" record for your domain and point it to the IP address of your Lightsail instance. Step 4: Install and Configure Mail Server (Postfix)

**Except this steps. **

Connect to your Lightsail instance using SSH. Update the package repository by running the command: sudo apt update Install the Postfix mail server by running: sudo apt install postfix During the installation, you'll be prompted to configure Postfix. Select "Internet Site" as the configuration type and enter your domain name when asked. Complete the Postfix configuration by following the prompts. Step 5: Set Up Email Accounts

Install the mail server software package by running the command: sudo apt install mailutils Create email accounts for your domain using the following command: sudo useradd -m -s /sbin/nologin -c "Mail User" -d /home/username username Replace "username" with the desired username for your email account. Set a password for the email account by running: sudo passwd username Replace "username" with the actual username you created. Step 6: Test Email Configuration

Send a test email to your newly created email account to verify that the setup is working correctly.


That's it! You have now set up a web domain email on Amazon Lightsail. Remember to configure your email client (such as Outlook or Thunderbird) to connect to your Lightsail instance to send and receive emails.

1 Answer
0

Could you start with what you are trying to accomplish? Also, a link to the instructions that you are following?

From what you have provided, it sounds like you are trying to create your own email server on a LightSail instance. Just a word of warning, this is not likely to go well for a number of reasons but primarily because the random public IPs that you get are not maintained to ensure that they are clean from an email perspective (not on Spam lists, etc). Ensuring that a mail server maintains a clean reputation and is able to send mail to other servers is a constant ongoing job.

profile pictureAWS
EXPERT
iBehr
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions