Date: Tue, 19 Jul 2011 11:57:38 -0700 (PDT) From: Bill Tillman <btillman99@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: Sendmail not accepting connections on port 25 Message-ID: <1311101858.99372.YahooMailRC@web36507.mail.mud.yahoo.com> In-Reply-To: <201107191631.p6JGVu6V034273@mail.r-bonomi.com> References: <201107191631.p6JGVu6V034273@mail.r-bonomi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
=0A=0A=0A________________________________=0AFrom: Robert Bonomi <bonomi@mai= l.r-bonomi.com>=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 <ssgriffonuser@gmail.com>=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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1311101858.99372.YahooMailRC>