Mail and News (Topic 2.206)

Review Questions

  1. You wish to map mail from one local user account to another local user account. What file would you edit?

  2. You wish to map mail from remote hosts to your hosts to different accounts on the system. What file would you use?

  3. You wish to rewrite outgoing emails from the system mail.company1.com so that they appear to come from the mail.company2.com domain. What file would you use to create the proper mappings?

  4. What command is used to add or remove groups in innd?

  5. You have just installed Majordomo 2 on a system named listserv.company.com. The password is listserv1. What command would you issue to create a list named operations?

  6. You are reading the following Procmail recipe:

    * ^From: .*@sales.com
    /dev/null

    What is the result of the recipe?

Answers

  1. Use the /etc/aliases file.

  2. Use the virtusertable file.

  3. Use the genericstable file.

  4. Use the ctlinnd command.

  5. Enter:

    # create operations listserv1
  6. All email messages from sales.com will be redirected to the /dev/null file and thus be deleted.

Exercises

  1. Install and configure a simple Sendmail server. Configure the proper aliases according to RFC 821. Use the proper files, m4 macros, and commands to configure the system of your choice. Do not forget to configure the MX records for the domain so that emails sent to your domain will be properly mapped to your Sendmail server. Test your configuration and settings using the commands discussed in this book and at http://ww.sendmail.org.

  2. Once you have configured Sendmail to work ...

Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.