/etc/mail/aliases is never referenced in LPI-Learning-Material-102-500
However, /etc/aliases is; page 347: After modifying the /etc/aliases file, the command newaliases should be executed to update the MTA's aliases database and make the change effective.
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.
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 [email protected]. 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
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.
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
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
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
#
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.
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Thi_86
Highly Voted 3 years, 6 months agoQuickVick1982
3 years, 4 months agoEnemyTurret
3 years, 2 months agoJodelo
2 years, 8 months agolucaverce
1 year, 9 months agormmichael95
7 months, 2 weeks agolucaverce
Most Recent 1 year, 9 months agoLazylinux
1 year, 10 months agowvdw1962
2 years agowvdw1962
2 years agoRobert12
2 years agoshiine
2 years, 2 months agopetkov
2 years, 3 months agojegga
2 years, 3 months agoiwkno6
2 years, 6 months agoCuriousLinuxCat
2 years, 7 months agoAonDuine
2 years, 9 months agoMIU
3 years, 3 months agodrliu1202
1 year, 7 months ago