LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 02-11-2007, 05:19 PM   #1
okidokie
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
postfix main.cf file


Hello all.

i'm trying to setup a small test inside an internal network to get a linux email server working.

i just have two computers and all i want to do is send a test email between them using my linux box as an email server. so far i've installed postfix and i've setup the main.cf file to reflect a fake domain name called mytestdomain.com

now what i'm trying to figure out is what i should edit into my main.cf file to get the whole thing started??

do i have to specify my domain name in main.cf and a subdomain as well??

this is what i've cooked up so far, however i keep getting errors when i attempt to start the postfix service.

mydomain = mytestdomain.com
myorigin = $mydomain
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
home_mailbox = Maildir/


its telling me that its unreasonable macro calls in localhost?
have i missed something?

can anyone give me any advice to steer me in the right direction? i'm completely lost on this subject.


thank you so much for any help.
 
Old 02-12-2007, 07:04 AM   #2
mvp
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 52

Rep: Reputation: 15
been trying to set up my own mail server for a few days now. finaly got postfix working, so i can show you my main.cf file, perhaps that will help you.

myhostname = mail.myhostname.dk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.myhostname.dk, localhost.localdomain, localhost.localdomain, localhost, myhostname.dk
relayhost =
mynetworks = 127.0.0.0/8 10.0.0.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/

Last edited by mvp; 02-12-2007 at 09:29 AM.
 
  


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
Main use of rc.local file winxandlinx Linux - Newbie 1 11-18-2006 04:54 AM
postfix - main.cf & config varun_saa Mandriva 1 09-12-2005 12:15 PM
It that possible to use the default "main.cf" setup the Postfix? goonfui_wong Linux - Networking 3 06-22-2005 08:32 AM
postfix main.cf illtbagu Linux - Software 8 07-22-2003 12:35 AM
POSTFIX main.cf question tuantran Linux - Networking 2 06-16-2002 06:41 PM


All times are GMT -5. The time now is 06:28 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration