LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Postfix and local domain. (https://www.linuxquestions.org/questions/linux-networking-3/postfix-and-local-domain-425815/)

LuneeTunes 03-17-2006 02:29 PM

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.

jcliburn 03-18-2006 12:55 PM

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



All times are GMT -5. The time now is 12:33 AM.