LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-22-2005, 05:46 AM   #1
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Rep: Reputation: 15
It that possible to use the default "main.cf" setup the Postfix?


Hi,

After decide to have a Postfix as MailServer in RedHat 2.4 platform.
I did study hard how to Postfix configuration

However, it is quite complicated to specify configuration parameter in
"main.cf" file.

It that the possible to use a default config file - "main.cf" that works instead of configuring it from the scratch?

Is that the command "postconf -n" for debugging in main.cf file?

------------------------------------------------------------------------------

But as I know cannot escape,
I still need to specify some configuration parameter in
"main.cf" file. This is the painful

That say I've "GFdomain.com" domain name and
the hostname is "MailSrv"

example user, say "james@GFdomain.com"

So that I can set

1) For the domain name use in outbound mail
myorigin = $mydomain
mydomain = GFdomain.com OR (output from "postconf -d")?

2) For the domains to receive mail
mydestination = $myhostname localhost.$mydomain localhost
myhostname = MailSrv.GFdomain.com

3) For the clients to relay mail from
mynetworks_style = subnet
mynetworks_style = host
mynetworks = IP address OR (output from "postconf -d")?

Is that the command "postconf -d" should to find the default
value setting in "main.cf" file.

Kindly advise.

Thanks you very much.

Regards,
Goon Fui
 
Old 06-22-2005, 06:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
i'd never suggest NOT using the default, just take the time to configure the individual options that matter to you. mydomains, mynetworks etc... it's really up to you the exact settings for mynetworks etc.. depends how you wish your mailserver to run. it's probably more transparent to simply declare your standard subnet in there.
 
Old 06-22-2005, 06:48 AM   #3
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

Thank you for you reply.

Is that the command "postconf -n" for debugging in main.cf file,
in case any setting conflict?

Or any other alternative solution for debugging.

And is that the "postconf -d" command line,
I can easy to find out the suitable parameter value for setting up?

Please correct me if I am wrong.

I'm sorry to ask this, as I don't have the user login for me try it now.

Thank you very much.

 
Old 06-22-2005, 07:32 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
postconf -n will list non-default options, basically what you'd apply to the main.conf to make it into your server. This isn't "debugging" by any means, that's just getting the relevant bits of config out of it.
 
  


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
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
(2) Main Menu's? Isn't it, "there can be only one?" for the term "Main"? t3gah LQ Suggestions & Feedback 1 04-09-2005 09:30 AM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 11:45 AM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM
Quesiton about "FIREWALL setting" in "SETUP"--please help out yuzuohong Linux - Networking 1 05-14-2002 11:42 PM

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

All times are GMT -5. The time now is 09:21 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