LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-2011, 02:46 PM   #1
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
Posfix config - 1st timer with the server


ok this is my 1st attempt at setting up a postfix server, and things are running ok with the 101's I have read. But I am looking for a little more help. I don't want to create local users for each person, and for now there is only 1 domain but that may change and I would rather be ready.

So for one domain (or knowing there will be more) and wanting virtual users, I assume I will switch to a database type setup. I am well versed in mysql over postgres so I would go that route.

X is not installed, but I do have ssh access, so was wondering both on advice for setting up as well as any front end (web based) tools people use. I have the webmin module installed and can send mail from there, as well as recieve so I know DNS, MX, etc are all good, so really looking for both a good web based tool people use and is DB the only way (or preferred way) of having virtual users.

Thanks
 
Old 02-11-2011, 07:56 PM   #2
binary_pearl
Member
 
Registered: Jul 2007
Location: Chicago Illinois
Distribution: SLES 10 SP2/SP3, SLES 11 SP1, OpenSUSE, Sabayon, Gentoo, Fedora 14, RHEL 3/4/5/6
Posts: 98
Blog Entries: 3

Rep: Reputation: 23
I can't so much help with users, but I think I can help with the different domains.

virtual_alias_domains I think is what you want to look at.

We created a file called /etc/postfix/virtual_alias_domains
This file looks like:

Code:
domain1 02112011
subdomain.domain2 02112011
The date's are kind of odd. I remember needing just some string there to indicate that you made a change. The important lines are your domains/sub-domains.

Once your have the virtual_alias_domains file saved, run the command:
Code:
`postmap /etc/postfix/virtual_alias_domains`
Then in your /etc/postfix/main.cf (or wherever your main.cf file is located at):
Code:
...
virtual_alias_domains = hash:/etc/postfix/virtual_alialis_domains
mydestination = $myhostname, localhost.$mydomain
...
Restart postfix, and that should work. There may be other easier ways, but when I was getting it setup a couple years back, that's just what I happened to get working. Hope this helps!

--Shaun

Last edited by binary_pearl; 02-11-2011 at 07:57 PM. Reason: typo
 
  


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
1st Timer wants to set up LAMP on SuSe Mikeybabyflip SUSE / openSUSE 1 07-19-2007 05:54 PM
1st timer - Installing RHES 4 from CDs clue_less Red Hat 11 04-21-2007 10:06 AM
DHCP- 1st timer aquaboot Linux - Networking 4 09-11-2005 08:21 PM
1st timer, preparing to install mandrake 10 canetoad Linux - Newbie 1 11-13-2004 05:28 PM
RedHat9.0 1st-timer mbe Linux - Newbie 5 08-12-2004 11:09 PM

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

All times are GMT -5. The time now is 08:16 AM.

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