Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2001 17:39:04 -0800
From:      darklogik@pittgoth.com
To:        freebsd-doc@FreeBSD.ORG
Subject:   [PATCH] handbook mail section- addon
Message-ID:  <3C0672B8.26231.A55CA1E@localhost>

next in thread | raw e-mail | index | archive | help
Regarding a recent sendmail setup I did on my server, clean install of 
FreeBSD but slight problem.  I can't relay, no problems with DNS nor 
Sendmail/network setup.  I finally found out the information I needed at 
sendmail.org and wrote a quick section describing the problem I had and a 
quick fix/work around so others don't need to hunt it.  Patch included below 
as a diff, and also online at

http://www.pittgoth.com/~darklogik/chapter.diff

Please double check my work as this was my first sgml format job ;)


Tom Rhodes
http://www.pittgoth.com


*** oldchapter.sgml	Thu Nov 29 16:53:07 2001
--- chapter.sgml	Thu Nov 29 16:48:54 2001
***************
*** 643,649 ****
  the DNS for 
<quote>customer.com</quote>.</programlisting>
          </answer>
        </qandaentry>
!     </qandaset>
    </sect1>
    
    <sect1 id="mail-advanced">
--- 643,677 ----
  the DNS for 
<quote>customer.com</quote>.</programlisting>
          </answer>
        </qandaentry>
!  <qandaentry>
! <question>
! <para>Why do I keep getting <errorname>Relaying 
Denied<errorname> errors when sending mail from other 
hosts?</question>
! 
! <answer>
! <para>In many default installs, 
<application>Sendmail</application> sets itself up to 
treat mail from the host its running on.  Some users 
will often notice that after they install a POP3 
server, they can check mail from school, work, etc. 
but cannot send from that remote location. Most likly, 
moments later you will obtain an email from 
<application>MAILER-DEAMON</application> or whatever 
name you gave in your <filename>sendmail.cf</filename> 
file with the error of <errorname>5.7 Relaying 
Denied</errorname>.</para>
! 
! 
! 
! <para>At this point you have a few options for a 
fix. First would be to put your ISP's address in a 
relay-domains file under <filename>/etc/relay-
domains</filename>.  A quick way of doing this would 
be to:</para>
! 
! <command>#echo "your.isp.com" &gt; /etc/mail/relay-
domains</command>
! 
! <para>and then restart 
<application>sendmail</application>.  This works great 
if your a server admin and don't wish to send mail 
locally, or would like to use a point and click 
client/system on another machine or even another ISP.  
It is also very useful if you only have one or two 
email accounts setup.  If this is a large amount of 
addresses, most likly a server system with many users 
who will be checking thier mail remotely it would be 
best to manually edit the file. Just open this file 
with your favorite text editor, such as 
<application>vi</application> and add them one per 
line, over and over, hence:</para>
! 
! <programlisting>
! your.isp.com
! other.isp.net
! users-isp.org
! www.example.org
! </programlisting>
! 
! <para>Now any mail sent through your system, by any 
host in this list, providing the user has an account 
on your system, will have no 
<errorname>Relaying Denied</errorname> This is a very nice way to keep people 
from spamming through your system.</para>
! </answer>
! </qandaentry>   
! 
! 
! 
! </qandaset>
    </sect1>
    
    <sect1 id="mail-advanced">


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C0672B8.26231.A55CA1E>