Source string Read only

(itstool) path: step/programlisting
144/1440
Context English State
Install <package>security/cyrus-sasl2</package> from the Ports Collection. This port supports a number of compile-time options. For the SMTP authentication method demonstrated in this example, make sure that <option>LOGIN</option> is not disabled.
After installing <package>security/cyrus-sasl2</package>, edit <filename>/usr/local/lib/sasl2/Sendmail.conf</filename>, or create it if it does not exist, and add the following line:
pwcheck_method: saslauthd
Next, install <package>security/cyrus-sasl2-saslauthd</package> and add the following line to <filename>/etc/rc.conf</filename>:
saslauthd_enable="YES"
Finally, start the saslauthd daemon:
<prompt>#</prompt> <userinput>service saslauthd start</userinput>
This daemon serves as a broker for <application>Sendmail</application> to authenticate against the FreeBSD <citerefentry><refentrytitle>passwd</refentrytitle><manvolnum>5</manvolnum></citerefentry> database. This saves the trouble of creating a new set of usernames and passwords for each user that needs to use <acronym>SMTP</acronym> authentication, and keeps the login and mail password the same.
Next, edit <filename>/etc/make.conf</filename> and add the following lines:
SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
These lines provide <application>Sendmail</application> the proper configuration options for linking to <package>cyrus-sasl2</package> at compile time. Make sure that <package>cyrus-sasl2</package> has been installed before recompiling <application>Sendmail</application>.
Recompile <application>Sendmail</application> by executing the following commands:
<prompt>#</prompt> <userinput>cd /usr/src/lib/libsmutil</userinput>
<prompt>#</prompt> <userinput>make cleandir &amp;&amp; make obj &amp;&amp; make</userinput>
<prompt>#</prompt> <userinput>cd /usr/src/lib/libsm</userinput>
<prompt>#</prompt> <userinput>make cleandir &amp;&amp; make obj &amp;&amp; make</userinput>
<prompt>#</prompt> <userinput>cd /usr/src/usr.sbin/sendmail</userinput>
<prompt>#</prompt> <userinput>make cleandir &amp;&amp; make obj &amp;&amp; make &amp;&amp; make install</userinput>
This compile should not have any problems if <filename>/usr/src</filename> has not changed extensively and the shared libraries it needs are available.
After <application>Sendmail</application> has been compiled and reinstalled, edit <filename>/etc/mail/freebsd.mc</filename> or the local <filename>.mc</filename>. Many administrators choose to use the output from <citerefentry><refentrytitle>hostname</refentrytitle><manvolnum>1</manvolnum></citerefentry> as the name of <filename>.mc</filename> for uniqueness. Add these lines:
dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
These options configure the different methods available to <application>Sendmail</application> for authenticating users. To use a method other than <application>pwcheck</application>, refer to the <application>Sendmail</application> documentation.
Finally, run <citerefentry><refentrytitle>make</refentrytitle><manvolnum>1</manvolnum></citerefentry> while in <filename>/etc/mail</filename>. That will run the new <filename>.mc</filename> and create a <filename>.cf</filename> named either <filename>freebsd.cf</filename> or the name used for the local <filename>.mc</filename>. Then, run <command>make install restart</command>, which will copy the file to <filename>sendmail.cf</filename>, and properly restart <application>Sendmail</application>. For more information about this process, refer to <filename>/etc/mail/Makefile</filename>.
To test the configuration, use a <acronym>MUA</acronym> to send a test message. For further investigation, set the <option>LogLevel</option> of <application>Sendmail</application> to <literal>13</literal> and watch <filename>/var/log/maillog</filename> for any errors.
For more information, refer to <link xlink:href="http://www.sendmail.org/~ca/email/auth.html"> <acronym>SMTP</acronym> authentication</link>.
Mail User Agents
<personname> <firstname>Marc</firstname> <surname>Silver</surname> </personname> <contrib>Contributed by </contrib>
<primary>Mail User Agents</primary>
A <acronym>MUA</acronym> is an application that is used to send and receive email. As email <quote>evolves</quote> and becomes more complex, <acronym>MUA</acronym>s are becoming increasingly powerful and provide users increased functionality and flexibility. The <literal>mail</literal> category of the FreeBSD Ports Collection contains numerous <acronym>MUA</acronym>s. These include graphical email clients such as <application>Evolution</application> or <application>Balsa</application> and console based clients such as <application>mutt</application> or <application>alpine</application>.
<command>mail</command>
<citerefentry><refentrytitle>mail</refentrytitle><manvolnum>1</manvolnum></citerefentry> is the default <acronym>MUA</acronym> installed with FreeBSD. It is a console based <acronym>MUA</acronym> that offers the basic functionality required to send and receive text-based email. It provides limited attachment support and can only access local mailboxes.
Although <command>mail</command> does not natively support interaction with <acronym>POP</acronym> or <acronym>IMAP</acronym> servers, these mailboxes may be downloaded to a local <filename>mbox</filename> using an application such as <application>fetchmail</application>.
In order to send and receive email, run <command>mail</command>:
<prompt>%</prompt> <userinput>mail</userinput>
The contents of the user's mailbox in <filename>/var/mail</filename> are automatically read by <command>mail</command>. 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:
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
&gt;N 1 root@localhost Mon Mar 8 14:05 14/510 "test"
N 2 root@localhost Mon Mar 8 14:05 14/509 "user account"
N 3 root@localhost Mon Mar 8 14:05 14/509 "sample"

Loading…

No matching activity found.

Browse all component changes

Things to check

Multiple failing checks

The translations in several languages have failing checks

Reset

Glossary

English English
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: step/programlisting
Flags
no-wrap, read-only
Source string location
book.translate.xml:54367
String age
a year ago
Source string age
a year ago
Translation file
books/handbook.pot, string 8869