aboutsummaryrefslogtreecommitdiff
path: root/documentation/content/en/books/handbook/mail/_index.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/content/en/books/handbook/mail/_index.adoc')
-rw-r--r--documentation/content/en/books/handbook/mail/_index.adoc36
1 files changed, 18 insertions, 18 deletions
diff --git a/documentation/content/en/books/handbook/mail/_index.adoc b/documentation/content/en/books/handbook/mail/_index.adoc
index 310b5df7a0..d603424c36 100644
--- a/documentation/content/en/books/handbook/mail/_index.adoc
+++ b/documentation/content/en/books/handbook/mail/_index.adoc
@@ -98,7 +98,7 @@ In addition to mapping hostnames to IP addresses, DNS is responsible for storing
+
To view the MX records for a domain, specify the type of record. Refer to man:host[1], for more details about this command:
+
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled by 10 mx1.FreeBSD.org
@@ -142,7 +142,7 @@ To configure the access database, use the format shown in the sample to make ent
+
Whenever this file is updated, update its database and restart Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
@@ -184,7 +184,7 @@ postmaster@example.com postmaster@noc.example.net
+
This file is processed in a first match order. When an email address matches the address on the left, it is mapped to the local mailbox listed on the right. The format of the first entry in this example maps a specific email address to a local mailbox, whereas the format of the second entry maps a specific email address to a remote mailbox. Finally, any email address from `example.com` which has not matched any of the previous entries will match the last mapping and be sent to the local mailbox `joe`. When creating custom entries, use this format and add them to [.filename]#/etc/mail/virtusertable#. Whenever this file is edited, update its database and restart Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
# service sendmail restart
@@ -248,7 +248,7 @@ More information on Sendmail's startup options is available in man:rc.sendmail[8
When a new MTA is installed using the Ports Collection, its startup script is also installed and startup instructions are mentioned in its package message. Before starting the new MTA, stop the running Sendmail processes. This example stops all of these services, then starts the Postfix service:
-[source,bash]
+[source,shell]
....
# service sendmail stop
# service postfix start
@@ -428,7 +428,7 @@ Either of the above will allow mail to be received directly at the host.
Try this:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -440,7 +440,7 @@ In this example, mail sent directly to mailto:yourlogin@example.FreeBSD.org[your
For this example:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -512,7 +512,7 @@ Additionally, a typical Internet access service agreement may forbid one from ru
The easiest way to fulfill those needs is to install the package:mail/ssmtp[] port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -616,7 +616,7 @@ saslauthd_enable="YES"
+
Finally, start the saslauthd daemon:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -633,7 +633,7 @@ SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
These lines provide Sendmail the proper configuration options for linking to package:cyrus-sasl2[] at compile time. Make sure that package:cyrus-sasl2[] has been installed before recompiling Sendmail.
. Recompile Sendmail by executing the following commands:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -674,14 +674,14 @@ Although `mail` does not natively support interaction with POP or IMAP servers,
In order to send and receive email, run `mail`:
-[source,bash]
+[source,shell]
....
% mail
....
The contents of the user's mailbox in [.filename]#/var/mail# are automatically read by `mail`. Should the mailbox be empty, the utility exits with a message indicating that no mail could be found. If mail exists, the application interface starts, and a list of messages will be displayed. Messages are automatically numbered, as can be seen in the following example:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -692,7 +692,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Messages can now be read by typing kbd:[t] followed by the message number. This example reads the first email:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -711,7 +711,7 @@ As seen in this example, the message will be displayed with full headers. To dis
If the email requires a reply, press either kbd:[R] or kbd:[r] `mail` keys. kbd:[R] instructs `mail` to reply only to the sender of the email, while kbd:[r] replies to all other recipients of the message. These commands can be suffixed with the mail number of the message to reply to. After typing the response, the end of the message should be marked by a single kbd:[.] on its own line. An example can be seen below:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -724,7 +724,7 @@ EOT
In order to send a new email, press kbd:[m], followed by the recipient email address. Multiple recipients may be specified by separating each address with the kbd:[,] delimiter. The subject of the message may then be entered, followed by the message contents. The end of the message should be specified by putting a single kbd:[.] on its own line.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -756,7 +756,7 @@ Refer to http://www.mutt.org[http://www.mutt.org] for more information on mutt.
mutt may be installed using the package:mail/mutt[] port. After the port has been installed, mutt can be started by issuing the following command:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -795,7 +795,7 @@ alpine has had several remote vulnerabilities discovered in the past, which allo
The current version of alpine may be installed using the package:mail/alpine[] port. Once the port has installed, alpine can be started by issuing the following command:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -836,7 +836,7 @@ fetchmail is a full-featured IMAP and POP client. It allows users to automatical
This section explains some of the basic features of fetchmail. This utility requires a [.filename]#.fetchmailrc# configuration in the user's home directory in order to run correctly. This file includes server information as well as login credentials. Due to the sensitive nature of the contents of this file, it is advisable to make it readable only by the user, with the following command:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -861,7 +861,7 @@ user "john", with password "XXXXX", is "myth" here;
fetchmail can be run in daemon mode by running it with `-d`, followed by the interval (in seconds) that fetchmail should poll servers listed in [.filename]#.fetchmailrc#. The following example configures fetchmail to poll every 600 seconds:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....