Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix config
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
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Fri Dec 20, 2002 7:43 pm    Post subject: postfix config Reply with quote

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
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Dec 21, 2002 5:52 am    Post subject: Reply with quote

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
View user's profile Send private message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Sat Dec 21, 2002 5:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
vicay
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2002
Posts: 97
Location: Dresden, Germany

PostPosted: Sun Dec 22, 2002 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Mon Dec 23, 2002 11:24 am    Post subject: Reply with quote

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
View user's profile Send private message
vicay
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2002
Posts: 97
Location: Dresden, Germany

PostPosted: Mon Dec 23, 2002 4:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Mon Dec 23, 2002 7:32 pm    Post subject: Reply with quote

Thx

it works just perfect ;-)
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