Source string Read only

(itstool) path: step/para
151/1510
Context English State
<personname> <firstname>James</firstname> <surname>Gorham</surname> </personname> <contrib>Written by </contrib>
Configuring <acronym>SMTP</acronym> authentication on the <acronym>MTA</acronym> provides a number of benefits. <acronym>SMTP</acronym> authentication adds a layer of security to <application>Sendmail</application>, and provides mobile users who switch hosts the ability to use the same <acronym>MTA</acronym> without the need to reconfigure their mail client's settings each time.
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>

Loading…

No matching activity found.

Browse all component changes

Glossary

English English
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: step/para
Flags
read-only
Source string location
book.translate.xml:54353
String age
a year ago
Source string age
a year ago
Translation file
books/handbook.pot, string 8867