From owner-freebsd-questions@FreeBSD.ORG Tue Jul 19 18:57:39 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A43F01065674 for ; Tue, 19 Jul 2011 18:57:39 +0000 (UTC) (envelope-from btillman99@yahoo.com) Received: from nm1-vm0.bullet.mail.ac4.yahoo.com (nm1-vm0.bullet.mail.ac4.yahoo.com [98.139.53.202]) by mx1.freebsd.org (Postfix) with SMTP id 398268FC24 for ; Tue, 19 Jul 2011 18:57:39 +0000 (UTC) Received: from [98.139.52.195] by nm1.bullet.mail.ac4.yahoo.com with NNFMP; 19 Jul 2011 18:57:38 -0000 Received: from [98.139.52.156] by tm8.bullet.mail.ac4.yahoo.com with NNFMP; 19 Jul 2011 18:57:38 -0000 Received: from [127.0.0.1] by omp1039.mail.ac4.yahoo.com with NNFMP; 19 Jul 2011 18:57:38 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 715430.64154.bm@omp1039.mail.ac4.yahoo.com Received: (qmail 32317 invoked by uid 60001); 19 Jul 2011 18:57:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1311101858; bh=Rq1AnrgFVI/25Sb/za4W/YmD+TbwtZzlIxpeJWBY1B8=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=QdslIYj+dHIiSxPpDGwPJLpwB8G4MQ2zF+Xtoo/woPc9a04LEGSpSeoXQoAKJC3rF2iIRxY8ZtkVtEnT56CK7swYbN7txbalynpsVn2CbuJ7rfDn103SNJCXJ72bmVnynZ+T34QtyethSnuRFcoNVVa9pRxAZ7O/r4c/jL27Hv0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=JZ3Eq9G1VaD0EIYYJpmwQNP4VMvjcpWKcq7U07wWwWPNTQhFAYdOOb7+eODqJh0lOYoYalAHTSKl1HBHgufCchoML/cFDEwD8l/VA7zvaCIp6iwMOjNDWMcexH5HTUad0iIsnk8HKtPfCFNskkQOcjj4KBWkyuA70kjVT+3W8zM=; X-YMail-OSG: LBfJlLwVM1koOj6S6oIj6nDQU.wqNInyjEdYCgYrsHNPW_3 IonbzLEo8MJ16yeMj0JMOWZaVgu_Tlg0QOAnMGSK1SEy.nvZmcFGHrqMQEbY hlEcAlgNTGr63L4I2ElAYcr1OJlgUP7e0KWQOJZoPtYVz44h2Qrbenr9XxPa LFk0J1nzdrS2KU8EsO99yi08lkBak_sNjvpabsm8HODlP.7pUcQt.N3ZIGLx V9FtkAo5SR.Jr35UkzDSA7Os3hPFfbbIpIbMp34vxeSb0B_AW88c0pm.VTxW Du0L9FAnJhfYjJzT69mP7HdL1JLOh6kPvEITx.kkmhymq_wlN6DnpAofmT8p jEX0DcX3198Z5LybD1cSFHndIJi.zLx_3ttdrHqMGHN4O6XzsaNXyeM10LGd AT7Y7.p0wxxTyr69UMoZePcfn8UB_4OKYwPO0LlozJcNtAtkpQg-- Received: from [50.58.207.5] by web36507.mail.mud.yahoo.com via HTTP; Tue, 19 Jul 2011 11:57:38 PDT X-Mailer: YahooMailRC/572 YahooMailWebService/0.8.112.307740 References: <201107191631.p6JGVu6V034273@mail.r-bonomi.com> Message-ID: <1311101858.99372.YahooMailRC@web36507.mail.mud.yahoo.com> Date: Tue, 19 Jul 2011 11:57:38 -0700 (PDT) From: Bill Tillman To: freebsd-questions@freebsd.org In-Reply-To: <201107191631.p6JGVu6V034273@mail.r-bonomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Sendmail not accepting connections on port 25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2011 18:57:39 -0000 =0A=0A=0A________________________________=0AFrom: Robert Bonomi =0ATo: freebsd-questions@freebsd.org; ssgriffonuser@gmail.co= m=0ASent: Tue, July 19, 2011 12:31:56 PM=0ASubject: Re: Sendmail not accept= ing connections on port 25=0A=0A=0A> Date: Tue, 19 Jul 2011 00:03:58 -0700= =0A> From: ssgriffonuser =0A> Subject: Sendmail no= t accepting connections on port 25=0A>=0A> Hi all,=0A>=0A> I'm having diffi= culty getting sendmail set up on my server.=A0 I can send =0A> and receive = to localhost and I can send to external networks but I can =0A> not receive= from external networks (I receive a 550: Address rejected).=A0 =0A=0AWhat = does the sendmail LOG FILE show?=0A=0A> Netstat says sendmail is listening = on port 25 but I cannot telnet to it.=0A=0ANetstat just says "something" ha= s port 25 open on 'any' address -- this may,=0Aor may *not* be the sendmail= instance you think is running.=A0 It probably =0A*IS*, but you need to be = sure.=0A=0A> When I do a port scan of the server, nmap does not show anythi= ng on port =0A> 25 but does show smtp on 587.=0A=0AMay I recommend 'lsof'?= =0A=0AThe command-line=A0 "lsof -n -P |grep IPv"=A0 will show exactly what = processes=0Ahave have what ports, on what addresses, open.=0A=0A>=0A> As fa= r as configuration goes, I added my hostname to =0A> /etc/mail/local-host-n= ames and created a /etc/host/virtusertable that =0A> looks like:=0A>=0A> ad= min@host.com=A0 =A0 shane=0A> shane@host.com=A0 =A0 shane=0A>=0A> then I ra= n 'make all install restart' .=0A=0A*Unless* you modified the .mc=A0 file, = I believe 'virtusertable' should be in=0A/etc/mail, not /etc/host.=0A=0Awha= t does 'grep Kvirtuser /etc/mail/sendmail.cf' show?=0A=0ALastly, you need t= o run 'makemap hash virtusertable' in the directory where=0Athe virtusertab= le file lives.=0A=0A=0A_______________________________________________=0Afr= eebsd-questions@freebsd.org mailing list=0Ahttp://lists.freebsd.org/mailman= /listinfo/freebsd-questions=0ATo unsubscribe, send any mail to "freebsd-que= stions-unsubscribe@freebsd.org"=0A=0A=0AIt's been ages since I configured a= n e-mail server but I do recall that sendmail =0Alikes to have the makemap = hash command run as well as a few config file =0Aadjustments. If you get in= to the m4 stuff with sendmail it can become quite =0Acomplex which is why l= ots of people stay away from sendmail these days in favor =0Aof postfix or = qmail.=0A=0AI am surprised that your able to send mail but not receive it. = It's usually the =0Aother way around because ISP's block e-mail being sent = from their subscribers =0Adue to spammers and because they have found they = can charge you extra if you =0Awant to run an e-mail server other than the = one they provide. Also, receiving =0Amail usually runs with with a pop3 or = imap deamon, your setup may be different =0Aand those programs usually defa= ult to port 110, not 25. Port 25 would be the =0Atypical outgoing port.