postfix-users June 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: dyndns adsl port forward

Re: dyndns adsl port forward

From: mouss <mouss_at_nospam>
Date: Mon Jun 28 2010 - 22:54:54 GMT
To: postfix-users@postfix.org

Basanta shrestha a écrit :
> Dear All,
>
> CentOS 5.2
>
> Followed http://wiki.centos.org/HowTos/postfix and installed
> postfix dovecot system-switch-mail system-switch-mail-gnome
>

please note that centos docs are under centos responsibility. here, the
docs are on www.postfix.org. anything else is unsupported (aka: use at
your own risk).

> Local delivery and local receipt works ok. Couldn't send email to
> external mail using 127.0.0.1 as smtp server.

I don't understand this. do you mean you can't send mail to external
domains when you use a local (127.0.0.1) postfix? if so, show the error
message and logs.

>
> Now trying to make my computer a full fledged mail server. I am behind ADSL NAT
>
> got a dyndns address lal.homelinux.org.
> In adsl router, configured the above address, port forward tcp port
> 110 to 192.168.0.x ( x being ip address of my computer)
> can resolve lal.homelinux.org to ADSL WAN IP address.

110? that's not smtp. please take the time to learn about smtp, pop3 and
imap. these are completely different things. postfix only implements smtp.

>
> hostname of the computer set to lal.homelinux.org
>
> /etc/postfix/main.cf
>
> myhostname = lal.homelinux.org
> mydomain = homelinux.org
> myorigin = $mydomain
> inet_interfaces = all
> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
> mynetworks = 192.168.0.0/24, 127.0.0.0/8
> relay_domains =
> home_mailbox = Maildir/
>

I see nothing wrong here.

>
> nmaping lal.homelinux.org
>
> 22/tcp open ssh
> 25/tcp open smtp
> 110/tcp open pop3
> 111/tcp open rpcbind
> 143/tcp open imap
> 735/tcp open unknown
> 993/tcp open imaps
> 995/tcp open pop3s
>
> Can't get to send mail outside the system nor receive from external
> mail like gmail.com using smtp/pop3 as lal.homelinux.org
>

in this list, the protocol is smtp. as long as you have problems with
other protocols, we can't help you. since pop3 is easier, you should
find a solution for that first. maybe it's your firewall(s) or your ISP
filtering.

anyway, if you think you have a postfix related problem (I doubt that.
your config looks correct), then please show relevant logs.