202-450 practice question 11 of 25

Which Postfix command can be used to rebuild all of the alias database files with a single invocation and without the need for any command line arguments?

Full set: 119 questions
Answer options
A: makealiases
B: newaliases Correct answer
C: postalias
D: postmapbuild
Correct Answer:
B. newaliases
Explanation

The newaliases command is the standard Postfix utility for rebuilding the alias database. It is a user-friendly wrapper for the postalias command. When invoked without any arguments, newaliases automatically reads the source alias file (typically /etc/aliases, as defined by the aliasmaps parameter in main.cf) and creates or updates the corresponding database file (e.g., /etc/aliases.db). This behavior perfectly matches the requirement for a single, argument-free command to update all alias databases defined in aliasdatabase.

Why Incorrect

A. makealiases is not a standard command within the Postfix mail system suite.
C. postalias is the underlying tool but requires the alias source filename as a command-line argument, which the question disallows.
D. postmapbuild is not a standard command within the Postfix mail system suite.

References

1. Postfix Official Documentation. newaliases(1) man page. "The newaliases command rebuilds the Postfix alias database from the text file that is specified with the aliasdatabase configuration parameter in the Postfix main.cf file." Available at: https://www.postfix.org/newaliases.1.html

2. Postfix Official Documentation. postalias(1) man page. The synopsis shows postalias [options] filetype filename ..., indicating a filename argument is required. Available at: https://www.postfix.org/postalias.1.html

Scroll to Top