LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2006, 02:29 PM   #1
LuneeTunes
LQ Newbie
 
Registered: Mar 2006
Location: Milky Way
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
Postfix and local domain.


Hi all, still kinda new to running my own mail server and was wondering if it's possible to setup my local network to where I only need 1 mail server running to use local ( domain ) delivery between 2 machines. Or does each machine need its own instance running in order for them to communicate? Anyone know a specific section in the documentation I should be looking at? Url's are helpful. I appreciate any help anyone gives me. Until then I'll be googlging and reading through postfix.org.
 
Old 03-18-2006, 12:55 PM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
You need postfix running on each machine if you want smtp service on those machines. An alternative is to pop mail from a central server running postfix.

I've done exactly what you're trying to do, that is, set up my internal Linux machines with postfix to email logs and such to my primary workstation.

You'll need to modify postfix's main.cf file so that it doesn't do dns lookups, doesn't append a domain name to hostnames, and so forth. Here are the relevant options and their settings in my main.cf.
Code:
[root@osprey postfix]# grep -v "#" main.cf
disable_dns_lookups = yes
append_dot_mydomain = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = osprey
append_dot_mydomain = no
append_at_myorigin = no
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 192.168.1.0/24
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.2/samples
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POstfix domain mapping, how? kuplo SUSE / openSUSE 1 12-14-2005 09:56 PM
Setting up local DNS domain name Corxscrew Linux - Newbie 1 01-20-2005 07:49 AM
Postfix virtual domain eyt Linux - Newbie 0 02-23-2004 05:07 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM
some domain users can not own local files foehlinger Linux - Networking 1 02-18-2003 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration