102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 64


FILL BLANK -

Which file is processed by newaliases? (Specify the full name of the file, including path.)

Show Answer
Correct Answer:

The file processed by the 'newaliases' command is /etc/mail/aliases. When you run the 'newaliases' command, it updates the database used by your Mail Transfer Agent (MTA) to reference the entries in the /etc/mail/aliases file. It is important to note that while /etc/aliases might be used to edit alias configurations, the 'newaliases' command specifically processes the /etc/mail/aliases file to update the necessary database.

Discussion

12 comments
Sign in to comment
Thi_86
Aug 31, 2020

The correct answer is "/etc/aliases"

QuickVick1982
Oct 19, 2020

/etc/aliases is a symbolic link to /etc/mail/aliases

EnemyTurret
Jan 1, 2021

on my disto it isn't (kubuntu)

Jodelo
Jul 6, 2021

Yeah it's /etc/aliases on my ubuntu too. Not a symbolic link.

lucaverce
May 25, 2022

You didn't understand the question, they ask "Which file is processed by newaliases?" Not which alias file you can edit.

rmmichael95
Jul 30, 2023

In man pages; IF using database files, newaliases is equivalent to running makemap -t aliases /etc/mail/aliases

iwkno6
Aug 27, 2021

I agree looks like /etc/aliases is the correct answer

wvdw1962
Feb 25, 2022

according my studyguide LPIC-1, Breshnahan/Blum, page 381: "The /etc/aliases.db is a binary file. Thus you want to edit the text-based /etc/aliases file with your new aliases and run the newaliases command to update the binary file.

wvdw1962
Mar 7, 2022

but, according the man-page it should be /etc/mail/aliases

Lazylinux
Apr 26, 2022

As per LPIC-2 page 357 By default, the email accounts on a Linux system are associated with the standard system accounts. For example, If user Carol has the login name carol on the host lab2.campus then her email address will be <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5d3e3c2f32311d313c3f6f733e3c302d282e">[email protected]</a>. This one-to-one association between system accounts and mailboxes can be extended by standard methods provided by most Linux distributions, in particular the email routing mechanism provided by the /etc/aliases file. so answer would be /etc/aliases

MIU
Nov 28, 2020

I think this varies depending on your distribution. /etc/mail/aliases or /etc/aliases.

drliu1202
Aug 11, 2022

I agree with you. But the official guide says /etc/aliases . "After modifying the /etc/aliases file, the command newaliases should be executed to update the MTA’s aliases database and make the changes effective." https://learning.lpi.org/en/learning-materials/102-500/108/108.3/108.3_01/#:~:text=After%20modifying%20the%20/etc/aliases%20file%2C%20the%20command%20newaliases%20should%20be%20executed%20to%20update%20the%20MTA%E2%80%99s%20aliases%20database%20and%20make%20the%20changes%20effective.

AonDuine
Jun 4, 2021

According to the study guide, the /etc/aliases is the correct answer.

shiine
Dec 18, 2021

I think it's /etc/mail/aliases as described in the man page: "The newaliases utility makes changes to the mail aliases file visible to smtpd(8). It should be run every time the aliases(5) file is changed. The location of the alias file is defined in smtpd.conf(5), and defaults to /etc/mail/aliases." https://man7.org/linux/man-pages/man8/newaliases.8.html

lucaverce
May 19, 2022

They ask "Which file is processed by newaliases?", the correct answer is /etc/mail/aliases. You can edit the text-based /etc/aliases file with your new aliases , but only when you invoke the newaliases command it will update the binary file (newaliases update the /etc/mail/aliases db file). DESCRIPTION. newaliases rebuilds the random access data base for the mail aliases file /etc/mail/aliases. It is run automatically by sendmail(1M) (in the default configuration) whenever /etc/mail/aliases is newer than /etc/mail/aliases.

CuriousLinuxCat
Aug 7, 2021

The correct answer is "/etc/aliases". First you edit /etc/aliases, the run the newaliases command, which will update the aliases database called /etc/aliases.db! The aliases.db is a binary file so it is recommended to update the /etc/aliases file. Example: # grep ^hostmaster /etc/aliases hostmaster: root # # nano /etc/aliases # # grep ^hostmaster /etc/aliases hostmaster: christine,rich # # newaliases #

jegga
Nov 30, 2021

the correct answer is. /etc/aliases

petkov
Dec 11, 2021

/etc/aliases

Robert12
Feb 19, 2022

Throughout my studies i never come across /etc/mail/aliases it's always been /etc/aliases Therefore i would naturally choose /etc/aliases believing 100% that it is the correct answer