View previous topic :: View next topic |
Author |
Message |
The Shadow Surfer Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 08 Jun 2002 Posts: 102 Location: Denmark
|
Posted: Fri Dec 20, 2002 7:43 pm Post subject: postfix config |
|
|
I have just installed a mailsever for the first time... But I can seem to get it working!
I have a ADSL connection with a the IP: 213.237.25.201
The servers IP: 192.168.1.3
The servers Name: server
The router redirect the ports need for mail, ssh and web to 192.168.1.3
I have the domain shadowsite.net, the domain name is hosted by gandi.net.
At gandi.net the I have setup the host(a) shadowsite.net to 213.237.25.201 and mx to shadowsite.net
How do I setup postfix for sending and receiving mails?
/The shadow Surfer |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
splooge l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 30 Aug 2002 Posts: 636
|
Posted: Sat Dec 21, 2002 5:52 am Post subject: |
|
|
Code: | emerge postfix
nano -w /etc/postfix/main.cf
(edit hostname and mydestination)
/etc/init.d/postfix start
rc-update add postfix default
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
The Shadow Surfer Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 08 Jun 2002 Posts: 102 Location: Denmark
|
Posted: Sat Dec 21, 2002 5:33 pm Post subject: |
|
|
splooge wrote: | Code: | emerge postfix
nano -w /etc/postfix/main.cf
(edit hostname and mydestination)
/etc/init.d/postfix start
rc-update add postfix default
|
|
postfix is install, but what hostname and mydestination to set?
If I set it to shadowsite.net, I get:
Code: | postfix: fatal: parameter inet_interfaces: no local interface found for 213.237.25.201
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vicay Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_kif.gif)
Joined: 29 Apr 2002 Posts: 97 Location: Dresden, Germany
|
Posted: Sun Dec 22, 2002 11:15 pm Post subject: |
|
|
The Shadow Surfer wrote: |
postfix is install, but what hostname and mydestination to set?
If I set it to shadowsite.net, I get:
Code: | postfix: fatal: parameter inet_interfaces: no local interface found for 213.237.25.201
|
|
Hello,
please list your postconf -n
output
Best regards
vicay |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
The Shadow Surfer Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 08 Jun 2002 Posts: 102 Location: Denmark
|
Posted: Mon Dec 23, 2002 11:24 am Post subject: |
|
|
Quote: |
Hello,
please list your postconf -n
output
Best regards
vicay |
Code: |
#postconf -n
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
home_mailbox = .maildir/
inet_interfaces = $myhostname, localhost
local_destination_concurrency_limit = 2
mydestination = shadowsite.net
mydomain = shadowsite.net
myhostname = shadowsite.net
myorigin = shadowsite.net
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vicay Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_kif.gif)
Joined: 29 Apr 2002 Posts: 97 Location: Dresden, Germany
|
Posted: Mon Dec 23, 2002 4:25 pm Post subject: |
|
|
The Shadow Surfer wrote: | Quote: |
Hello,
please list your postconf -n
output
Best regards
vicay |
Code: |
#postconf -n
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
home_mailbox = .maildir/
inet_interfaces = $myhostname, localhost
local_destination_concurrency_limit = 2
mydestination = shadowsite.net
mydomain = shadowsite.net
myhostname = shadowsite.net
myorigin = shadowsite.net
|
|
Hello again,
with your setup postfix tries to bind to a specific IP
using the official name/IP, but you don't have the original shadowsite.net
IP configured for your ethernet interface.
The easiest way is to
set inet_interfaces=all
after that postfix should receive mail for $mydomain. Outgoing mail
is sent directly via MX-lookup. If this is not your wish, specify an outgoing relay (relayhost=)
Best regards
vicay |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
The Shadow Surfer Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 08 Jun 2002 Posts: 102 Location: Denmark
|
Posted: Mon Dec 23, 2002 7:32 pm Post subject: |
|
|
Thx
it works just perfect ![Wink ;-)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|