Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set postfix to send/receive only locally?
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
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Thu Apr 22, 2004 2:40 am    Post subject: How to set postfix to send/receive only locally? Reply with quote

Hello all!

I'm still trying to figure out how postfix works. I actually got the virtual host howto accomplished for my own domain. It works fine.

However, I've got a box I'm setting up for another compay, hooked to my lan, and need to figure how at first, to only send and receive emails locally. I have it set up with the other companies domain name...but, I need to keep postfix from trying to go out and find its MX record.

Eventually, this box will be moved to the other site..where is will only sit and recieve emails relayed to it from their main email server.

I'm just starting, and trying to send email on the box locally only between two local users to test my initial setup. My next step will be to set it to recieve email from my local working email server to a local user which will actually be a perl script to process the email it receives.

I thought I had a small clue how to get started on this, but, I'm lost.

Could someone give me some pointers on the postfix settings I need to look at? I've got some books in front of me and will study it and other info...but, I'm just kinda lost on where to begin.

At this point, I have tried setting :
myorigin = $myhostname
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain $mydomain

(I even tried it by removing the final "$mydomain" on the mydestination setting)

mynetworks = 127.0.0.0/8

I put the users into the /etc/mail/aliases file and ran newaliases

I think I'm just missing a central concept here on smtp....and could maybe use some pointers on what I really need to be looking at in the process.

Thanks in advance!!

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sun Apr 25, 2004 11:37 am    Post subject: Anyone? Reply with quote

Anyone?
Anyone?
Bueller?
:-)
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
lorenb
Apprentice
Apprentice


Joined: 24 Aug 2002
Posts: 207
Location: Toronto, ON

PostPosted: Sun Apr 25, 2004 12:21 pm    Post subject: Reply with quote

Try adding this to your main.cf:

Code:

relayhost = [$mydomain]


The [] tell Postfix to turn off MX lookups.
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