Dear all,
First of all, please forgive me as I come from a Microsoft server support background so my understanding is based on the general practise over at the dark side. However, I have used linux in a desktop environment at home for some time.
I have a Centos 6.3 server running in my home network serving files at the moment. It is also doing its own DNS.
It's just a Dell R200 with a couple of 1TB SATA disks in RAID 1 and 4GB of RAM. Nothing that special. Centos installation is the minimal one as I didn't want a GUI to hog all the CPU and memory.
However I would like to utilise it for my email serving too.
Currently its hostname is "file1.domain.lan" but I will probably change it to "server.domain.lan".
Now having a static IP with my ISP and using a Sonicwall as the HW Firewall and for NAT Policies, I wish to have the server receive email for, initially, *@differentdomain.co.uk
Now, all the tutorials I have seen so far, are based on setting the server up within an external domain but I am used to having an internal domain and an external domain (having used MS servers for a long time with Exchange Server handling emails).
I have so far unsuccessfully set up Postfix as all my test emails from external to internal have bounced with either the details that "DNS has no data" or that it is an "unroutable address".
But I can externally telnet on port 25 to the server. It just won't send email to the end user.
Sendmail has been removed from the server.
So, hostname is currently: file1.domain.lan
Email domain to receive: @differentdomain.co.uk
My main.cf file for postfix has the following uncommented lines (I have been playing around with the hostname and domain lines in case they needed to be the external ones as below):
Code:
mail_owner = postfix
myhostname = mail.differentdomain.co.uk
mydomain = differentdomain.co.uk
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192.168.199.0/24, 127.0.0.0/8, 192.168.0.2
relay_domains =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
home_mailbox = Maildir/
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $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.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
resolv.conf is as follows
Code:
# Generated by NetworkManager
nameserver 192.168.199.1 # server IP
nameserver 192.168.0.1
nameserver 8.8.8.8
Is there anything I would need to add to my main.cf file or change in it?
I tried the following at the beginning but to no avail either.
myhostname = file1.domain.lan
mydomain = domain.lan