From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 17:28:47 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCAF237B401 for ; Fri, 25 Jul 2003 17:28:47 -0700 (PDT) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14C7F43F75 for ; Fri, 25 Jul 2003 17:28:47 -0700 (PDT) (envelope-from cnst@rbcmail.ru) Received: from user158.net276.nc.sprint-hsd.net ([205.240.33.158] helo=rbcmail.ru) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19gCvR-0006CJ-00; Fri, 25 Jul 2003 17:28:41 -0700 Message-ID: <3F21CB2C.1020801@rbcmail.ru> Date: Fri, 25 Jul 2003 20:28:28 -0400 From: Constantine User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.4) Gecko/20030624 X-Accept-Language: en-gb, ru, en-us, en MIME-Version: 1.0 To: Olaf Hoyer , freebsd-questions@freebsd.org References: <20030726020050.A53373-100000@gaff.hhhr.ision.net> In-Reply-To: <20030726020050.A53373-100000@gaff.hhhr.ision.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Host name for sendmail. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2003 00:28:48 -0000 Olaf Hoyer wrote: >On Fri, 25 Jul 2003, Constantine wrote: > > > >>Olaf Hoyer wrote: >> >> >> >>>On Fri, 25 Jul 2003, Constantine wrote: >>> >>> >>>Hi! >>> >>>Well, do the following: >>> >>>in /etc/hosts, enter your domain name. >>> >>>then, edit the file: /etc/mail/service.switch (or the corresponding file >>>location defined in sendmail.cf) with the values : >>>files dns >>> >>>to make sendmail first look in /etc/hosts and then try to resolve via >>>DNS. >>> >>>Alternatively, in sendmail.cf there is the option to specify the own >>>host name in case sendmail cannot determine it automagically. >>> >>>BTW: sendmail wants some FQDN, like cnts.local or something. Missing >>>dots are iritating to sendmail. >>> >>>HTH >>>Olaf >>> >>> >>> >>> >>> >>Well, thank you. And the other problem I got, is that when I tried to >>use my sendmail to send the previous message to this FreeBSD.org postal >>list, I got these errors in my maillog: >>Jul 24 17:18:11 cnst sm-mta[1101]: h6OImYZI000711: >>to=, delay=02:29:36, xdelay=00:00:11, >>mailer=esmtp, pri=510414, relay=mx1.freebsd.org. [216.136.204.125], >>dsn=4.2.0, stat=Deferred: 450 : Helo command rejected: Host not found >> >> > >Hi! > >Well, thats clear: Your box comes with the fake FQDN of cnst in the HELO >command, which cannot be resolved by the remote host, in this case >mx1.freebsd.org, so it rejects the mail. >(Basic SPAM protection) > >Solutions: > >- The box gets the hostname corresponding to the IP that is >assigned at dialup. > >So, if you get 1.2.3.4 as IP, which resolves to: >1-2-3-4.dial.provider.com you would take care that this appears in the >HELO message. > >- you use your providers MTA as smarthost. >In sendmail.cf it shall be the DS macro, IIRC. >Is the better way, because Dial-up-IP-ranges are often blocked due to >spammers and often misconfigured MTA... > > > >I also use a 4.8 box as DSL Router via PPPoE, and there is a sendmail on >it. Ok, I'd have to check whether he can relay directly, and what IP in >the HELO appears, but the box itself can identify its IP without probs. >I'm also using the tunnel interface to connect... > >But I'd recommend using a smarthost. Is better and cleaner. > >Olaf > I have a cable modem with nat, so the FreeBSD box itself does not has any routable ip-address (the ip, that is connects the box to the internet is 192.168.1.2). What can I do in this case? And actually, I started up my own SMTP-server, because the one that was provided by my ISP was in some spam-blocking programmes, so I was unable to send some messages through it. So, as I understood, smarthost will not work for me. Cheers, Constantine.