sendmail Flashcards

recognise and describe the main components of the sendmail MTA

1
Q

What is the name of the main executable that receives messages from local and remote users and determines how to delivery those messages?

A

sendmail

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The name of the main sendmail configuration file

A

sendmail.cf (Usually in /etc/mail/sendmil.cf)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Configuration file that contains a list of domains sendmail will receive messages for

A

sendmail.cw

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Configuration file that contains a list of trusted users of the sendmail service

A

sendmail.ct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Filename of a file that contains a list valid recipient names that can redirect to a user, program or file

A

aliases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

After editing the aliases file, what command should you run?

A

newaliases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What sendmail command can you run to check the mail queue

A

mailq

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In which directory does sendmail store message awaiting delivery?

A

mqueue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which file is used to allow overriding for specific domains?

A

mailertable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the domaintable file used for?

A

to map old domain names to new ones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of virtusertable

A

It is used to map users and domains to alternate addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is relay-domains used for?

A

To allow specific hosts to relay messages through the sendmail server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the access file used for?

A

To allow or deny access to sendmail from specific domains.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The sendmail.cf file consists of rule sets that parse messages and determine what action to take. These rules have helper functions, what are the 3 types of helper functions

A

Classes - common phrases that are used to identify message types.
Macros - long string values that are set to simplify typing
Options - defined to set parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is m4 processor?

A

It’s a helper program that allows you to create a sendmail.cf file from a simpler file of macros.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you create a sendmail config file from an m4 macro file name myserver.mc?

A

m4 < myserver.mc > /etc/mail.sendmail.cf

17
Q

What does this command do?

sendmail -bd -q5m

A

This command will start the sendmail server as a background daemon (-bd), that will check the mail queue every 5 minutes (-q5m)