LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 06: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 08:29 AM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:04 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
Open Source Consulting | Domain Registration