View | Details | Raw Unified | Return to bug 60186
Collapse All | Expand All

(-)chapter.sgml (+76 lines)
Lines 1278-1283 Link Here
1278
<prompt>&gt;</prompt> <userinput>^D</userinput></screen>
1278
<prompt>&gt;</prompt> <userinput>^D</userinput></screen>
1279
  </sect1>
1279
  </sect1>
1280
1280
1281
  <sect1 id="outgoing-only">
1282
    <sect1info>
1283
      <authorgroup>
1284
        <author>
1285
          <firstname>Bill</firstname>
1286
          <surname>Moran</surname>
1287
          <contrib>Contributed by </contrib>
1288
        </author>
1289
      </authorgroup>
1290
    </sect1info>
1291
    <title>Setting up to send only</title>
1292
    
1293
    <para>There are many instances where you may only want to send
1294
      mail through a relay. Some examples are:</para>
1295
      
1296
    <itemizedlist>
1297
      <listitem>
1298
    <para>Your computer is a desktop machine, but you'll want to use FreeBSD
1299
      programs such as &man.send-pr.1;.  To do so, you should use your ISP's
1300
      mail relay.</para>
1301
      </listitem>
1302
      
1303
      <listitem>
1304
    <para>The computer is a server that does not handle mail locally, but needs
1305
      to pass off all mail to a relay for processing.</para>
1306
      </listitem>
1307
    </itemizedlist>
1308
    
1309
    <para>Just about any MTA is capable of filling this particular niche.
1310
      Unfortunately, it can be very difficult to properly configure a full-
1311
      featured MTA to properly handle just offloading mail.  Programs such
1312
      as <application>sendmail</application> and
1313
      <application>postfix</application> are largely overkill for this use.
1314
    </para>
1315
    
1316
    <para>Additionally, if you're using a typical Internet access service, your
1317
      agreement may forbid you from running a "mail server".</para>
1318
      
1319
    <para>The easiest way to fulfill these needs is to install the
1320
      <filename role="package">mail/ssmtp</filename> port.  Execute the
1321
      following commands as root:</para>
1322
      
1323
    <screen>&prompt.root; <userinput>cd /usr/ports/mail/ssmtp
1324
&prompt.root; make install && make replace && make clean</userinput></screen>
1325
1326
    <para>Once installed, <filename role="package">mail/ssmtp</filename> can
1327
      be configured with a four-line file in
1328
      <filename>/usr/local/etc/ssmtp/ssmtp.conf</filename></para>
1329
        
1330
    <programlisting>
1331
root=yourrealeamil@yourisp.com
1332
mailhub=mail.yourisp.com
1333
rewriteDomain=yourisp.com
1334
hostname=_HOSTNAME_</programlisting>
1335
1336
    <para>Make sure you use your real email address for
1337
      <literal>root=</literal>.  Enter your ISP's outgoing mail relay in place
1338
      of <literal>mail.yourisp.com</literal> (some ISPs call this the
1339
      "outgoing mail server" or "smtp server").</para>
1340
        
1341
    <para>Make sure you disable <application>sendmail</application> by entering
1342
      <programlisting>sendmail_enable="NONE"</programlisting> in
1343
      <filename>/etc/rc.conf</filename>.</para>
1344
        
1345
    <para><filename role="package">mail/ssmtp</filename> has some other
1346
      options available.  See the example config file in
1347
      <filename>/usr/local/etc/ssmtp</filename> or the manual page for
1348
      <application>ssmtp</application>.</para>
1349
      
1350
    <para>Setting up <application>ssmtp</application> in this manner will allow any
1351
      software on your computer that needs to send mail to function properly,
1352
      while not violating your ISP's usage policy or allowing your computer to
1353
      be hijacked for spamming.</para>
1354
        
1355
  </sect1>
1356
1281
  <sect1 id="SMTP-dialup">
1357
  <sect1 id="SMTP-dialup">
1282
    <title>Using Mail with a Dialup Connection</title> 
1358
    <title>Using Mail with a Dialup Connection</title> 

Return to bug 60186