Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix and dynamic DNS and cable router -- Help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Harpalus
n00b
n00b


Joined: 16 Oct 2002
Posts: 26

PostPosted: Thu Dec 19, 2002 4:08 am    Post subject: Postfix and dynamic DNS and cable router -- Help Reply with quote

Hi all,

I am trying to install postfix to receive mail using dynamic dns on a server that is behind a firewall. Any help? Please.

Bert
Back to top
View user's profile Send private message
DarkAurora
n00b
n00b


Joined: 05 Dec 2002
Posts: 15
Location: Orlando, FL

PostPosted: Thu Dec 19, 2002 4:30 am    Post subject: Reply with quote

What kind of firewall? A computer with two network adapters or one of those firewall-in-a-box setups?
Back to top
View user's profile Send private message
phunkphorce
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2002
Posts: 145

PostPosted: Thu Dec 19, 2002 9:19 am    Post subject: Reply with quote

Postfix won't have any problem receiving mail even if it's a dynamic ip, as long as you have a fixed domain name. That is, if your domain is whatever.net, then simply configure postix to accept mails going to whatever.net. There are two parameters in the file /etc/postfix/main.cf: myhostname and mydestination. If you have a look at the file, both have a few lines of help:
Code:
# The myhostname parameter specifies the internet hostname of this
# from gethostname(). $myhostname is used as a default value for many
myhostname = host.whatever.org

Code:
# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for. That does not
# include domains that are hosted on this machine.
...
# The default is $myhostname + localhost.$mydomain.  On a mail domain
# gateway, you should also include $mydomain.

So, simply configure Postfix so that it knows your host name and that should be enough.

If you don't have a fixed domain name, then you can still tell Postfix what the ip of your machine is and it'll also accept the messages going to that machine.

If you still have problems, try asking again or reading Postfix's documentation. It's really good! :)
_________________
O God, Thou art in Heaven...
...please stay there!
Back to top
View user's profile Send private message
Harpalus
n00b
n00b


Joined: 16 Oct 2002
Posts: 26

PostPosted: Thu Dec 19, 2002 2:25 pm    Post subject: Reply with quote

The router/firewall is one of those netgear cable/dsl routers all in one.
As far as having fixed domain name, I am not sure.
I could set up domain names on the private part of the network. But the only thing visible from the internet at large is the routers IP (I use dyndns.org to point a url to it). I have anable port forwarding for ssh and http and can easily open a port for mail.
My problem is with the configuration of postfix in terms of domain names, domains etc.....

Gentoo Box IP: 192.168.0.49 No domain name
Router: IP (some external IP asigned by the ISP) and domain updated on dyndns. org.

THanks for all the help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum