Facebook X (Twitter) Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook X (Twitter) Instagram
    TecAdmin
    You are at:Home»Linux Tutorials»What is the /etc/aliases file

    What is the /etc/aliases file

    By RahulJune 29, 20222 Mins Read

    What is /etc/aliases?

    /etc/aliases is a text file used to store email aliases on a Linux system. Email aliases are basically nicknames for email addresses. They allow you to send emails to a group of people using a single address, or to redirect emails from one address to another.

    /etc/aliases are typically used to store aliases for the system’s mail server. However, it can also be used to store aliases for any other purpose.

    For example, you could use /etc/aliases to create an alias for your own email address. This file is stored in the /etc directory, which is the standard location for system-wide configuration files. /etc/aliases are usually managed by the system administrator. However, you can also edit /etc/aliases yourself if you need to add or change an alias.

    Adding entry to /etc/aliases

    To add a new alias to /etc/aliases, simply open the file in a text editor and add a new line with the following format:

    alias_name: [email protected]
    

    Replace the alias_name with the desired alias, and [email protected] with the actual email address you wish to forward messages to. You can also forward one user’s email to another user.

    Once you have saved your changes, run the newaliases command to update the aliases database.

    newaliases
    

    Your new alias will now be active and forward messages as expected.

    Hope this tutorial helps you to understand the uses of /etc/aliases file.

    aliases
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Understanding the LD_LIBRARY_PATH Environment Variable

    The Beginner’s Guide to Building Your First RPM Package

    The Beginner’s Guide to Building Your First Debian Package

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Difference Between Full Virtualization vs Paravirtualization
    • Virtualization vs. Containerization: A Comparative Analysis
    • Using .env Files in Django
    • Using .env File in FastAPI
    • Setting Up Email Notifications for Django Error Reporting
    Facebook X (Twitter) Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.