102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 33


FILL BLANK -

Which command, available with all sendmail-compatible MTAs, is used to list the contents of the MTA's mail queue? (Specify only the command without any path or parameters.)

Show Answer
Correct Answer:

The command used to list the contents of the mail queue in sendmail-compatible MTAs is 'mailq'. This command is commonly provided by MTAs to ensure backward compatibility and displays the queue's contents by default, without requiring additional parameters.

Discussion

8 comments
Sign in to comment
lanc
May 26, 2020

mailq Behave as if the option -bp were present before any other options. The -bp option requests a listing of the contents of the mail queue on the standard output

brrbrr
Jul 24, 2020

mailq is the right answer

Cybersec1989
Nov 5, 2022

mailq ist the answer according to lpic study guide

Lazylinux
Apr 20, 2022

SENDMAIL - Yes it does meet the requirements to be the answer - as question clearly said DO NOT include any parameters meaning they know the required command does require parameters otherwise would not state it and would rather state Just write the command..so correct answer is SENDMAIL but i believe if either SENDMAIL or mailq were answered you still get the credit for it as both answers are correct Question with answer from LPIC study guide Which command can the root user execute to list the undelivered messages that originated on the local system? The command mailq or sendmail -bp. from page 372 Also the following comments The command mailq is equivalent to sendmail -bp, and they should be present regardless of the MTA installed in the system. To ensure backward compatibility, most MTAs provide these traditional mail administration commands.

Boqon1234
May 3, 2020

answer is wrong, correct is " sendmail -bp"

biggydanny
Jul 29, 2020

they both do the same thing

Timfdklfajlksdjlakf
Jul 17, 2021

Brah. They asked about a command, not a command with options. You are wrong! Yeah mailq and sendmail -bp both work. The latter one includes options though and they asked about a command.

Dolus
Aug 26, 2020

Think the answer is wrong, it should be sendmail (without the parameters -bp) see this site: https://learning.lpi.org/en/learning-materials/102-500/108/108.3/108.3_01/

MIU
Nov 23, 2020

if it is without the parameter, it doesn't meet the requirement, and this question is asking no options. So the answer is mailq.

Lazylinux
Apr 20, 2022

Yes it does meet the requirements - as question clearly said DO NOT include any parameters meaning they know the required command does require parameters otherwise would not state it and would rather state Just write the command..so correct answer is SENDMAIL but i believe if either SENDMAIL or mailq were answered you still get the credit for it as both answers are correct

drliu1202
Aug 1, 2022

mailq According to Japanese LPI official guide.

Wellison
Oct 22, 2022

The command mailq is equivalent to sendmail -bp, and they should be present regardless of the MTA installed in the system. https://learning.lpi.org/en/learning-materials/102-500/108/108.3/108.3_01/