View previous topic :: View next topic |
Author |
Message |
Harpalus n00b
Joined: 16 Oct 2002 Posts: 26
|
Posted: Thu Dec 19, 2002 4:08 am Post subject: Postfix and dynamic DNS and cable router -- Help |
|
|
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 |
|
|
DarkAurora n00b
Joined: 05 Dec 2002 Posts: 15 Location: Orlando, FL
|
Posted: Thu Dec 19, 2002 4:30 am Post subject: |
|
|
What kind of firewall? A computer with two network adapters or one of those firewall-in-a-box setups? |
|
Back to top |
|
|
phunkphorce Tux's lil' helper
Joined: 22 Nov 2002 Posts: 145
|
Posted: Thu Dec 19, 2002 9:19 am Post subject: |
|
|
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 |
|
|
Harpalus n00b
Joined: 16 Oct 2002 Posts: 26
|
Posted: Thu Dec 19, 2002 2:25 pm Post subject: |
|
|
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 |
|
|
|