Postfix setup

Jim Kronebusch jim at winonacotter.org
Tue Aug 14 04:42:42 BST 2007


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?
> 
> 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.
> >
> > Thanks in advance,

I have set up a few email servers in the past using this tutorial:

http://www.howtoforge.com/perfect_setup_ubuntu_6.06

It isn't direct from Ubuntu but is very full featured and is a snap to follow (barring
no problems should have and ISP style solution within 30 minutes).  It is also based off
of the 6.06 LTS which should give you good support and stability (mail servers don't
need cutting edge stuff).

If nothing else the portions for troubleshooting and testing should help you track down
your SMTP issues.  You probably need to modify your main.cf.

I just looked at the tutorial you reference quickly, the line:

postconf -e 'smtpd_recipient_restrictions =
permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'

sets up /etc/postfix/main.cf to permit only connections from your mynetworks setting
(which the tutorial has you set as 127.0.0.1) and sets sasl authentication to be an
exception to this.  Did you configure your client to use sasl authentication?  If not
this will give you a relay access denied error such as what you state.  If so this is an
easy fix, configure sasl authentication and your laptop will work perfectly on the road
(provided you don't try and access from a providers network that blocks all port 25
activity except that to their server, then you'll have to use their outgoing mail
server, barring they allow relay).  Your firewall will need port forwarding for port 25
for smtp, port 110 for pop3, port 80 if you use webmail, port 143 if you use IMAP.

My suggestion for on the road stuff and to eliminate any provider headaches, install
Squirrel Mail or another Webmail product on your mail server and use that.  Then you
don't have to worry about sasl authentication and blocked port 25's by ISPs as all mail
will be sent from the localhost.

Jim

-- 
This message has been scanned for viruses and
dangerous content by the Cotter Technology 
Department, and is believed to be clean.




More information about the edubuntu-users mailing list