Postfix setup

Gavin McCullagh gmccullagh at gmail.com
Tue Aug 14 09:33:35 BST 2007


Hi Tom,

On Mon, 13 Aug 2007, Jim Kronebusch wrote:

> On Mon, 13 Aug 2007 16:01:16 -0400, Tom Misilo wrote
> > Okay I have found out that I cannot telnet port 25 on the server from
> > inside/outside of the network. Any ideas?

It depends what error you get.  If you get "connection refused" postfix is
probably either not running or not listening on that interface/port.  If
you get "no route to host", you probably have a firewall of some sort in
the way.  Telnetting to postfix on the local computer looks like this:

gavinmc at boing:~$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 boing.hamilton.local ESMTP Postfix (Ubuntu)

Try it on the local machine first.

> > On 8/13/07, Tom Misilo <tmisilo at gmail.com> wrote:
> > > I followed all the directions here:
> > > https://help.ubuntu.com/7.04/server/C/postfix.html
> > >
> > > However when I try and send an email using alpine I am gettng a relay
> > > access denied message when trying to send to my email address. Any
> > > ideas? Also what ports would I need to forward through the router to
> > > be able to send/receive mail from the outside world. As I would like
> > > to be able to use it while out with my laptop.

"relay access denied message" suggests to me that postfix is refusing to
relay your email as you are not one of the trusted hosts which it will
relay for.  At a guess, I'd say that might be down to you answering
"127.0.0.0/8" to the seventh question in the howto which I guess is who
should the server relay mail for.  

You don't say if you're sending mail from the local computer or not.  If
you are, you'd need to use "localhost" or "127.0.0.1" as your outgoing mail
server (not the machine's name).  If it's from another computer, you
probably need to add that computer's ip address or a range of ip addresses
to the relay allowed list by reconfiguring again.

Gavin




More information about the edubuntu-users mailing list