From owner-freebsd-doc Thu Nov 29 14:32:30 2001 Delivered-To: freebsd-doc@freebsd.org Received: from pittgoth.com (14.zlnp1.xdsl.nauticom.net [209.195.149.111]) by hub.freebsd.org (Postfix) with ESMTP id 6357B37B419 for ; Thu, 29 Nov 2001 14:32:18 -0800 (PST) Received: from oemcomputer (lcl234.zbzoom.net [208.236.36.234]) by pittgoth.com (8.11.6/8.11.6) with ESMTP id fATMWLM80048 for ; Thu, 29 Nov 2001 17:32:23 -0500 (EST) (envelope-from darklogik@pittgoth.com) From: darklogik@pittgoth.com To: freebsd-doc@FreeBSD.ORG Date: Thu, 29 Nov 2001 17:39:04 -0800 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: [PATCH] handbook mail section- addon Message-ID: <3C0672B8.26231.A55CA1E@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 customer.com. ! --- 643,677 ---- the DNS for customer.com. ! ! ! Why do I keep getting Relaying Denied errors when sending mail from other hosts? ! ! ! In many default installs, Sendmail 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 MAILER-DEAMON or whatever name you gave in your sendmail.cf file with the error of 5.7 Relaying Denied. ! ! ! ! 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 /etc/relay- domains. A quick way of doing this would be to: ! ! #echo "your.isp.com" > /etc/mail/relay- domains ! ! and then restart sendmail. 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 vi and add them one per line, over and over, hence: ! ! ! your.isp.com ! other.isp.net ! users-isp.org ! www.example.org ! ! ! 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 Relaying Denied This is a very nice way to keep people from spamming through your system. ! ! ! ! ! ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message