LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2010, 04:06 AM   #1
tendaimagore
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Rep: Reputation: 0
Question Fedora13-How do I add subdomains and add users to them


Hi, I'm new to linux, just wanted to know how to add subdomains, how to add users to those subdomains to send and receive mail in fedora 13.
 
Old 10-20-2010, 11:45 PM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
I think your question should be more clear, which mail server you are using ?

Thanks
 
Old 10-22-2010, 03:21 AM   #3
tendaimagore
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry, i'm using postfix...I've already configured it for the main domain, but dont know what to do wit the subs, Your help would be greatly appreciated...

Last edited by tendaimagore; 10-22-2010 at 03:24 AM.
 
Old 11-21-2010, 05:17 AM   #4
tendaimagore
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Ok,I still dont know how to add subdomains using postfix, but I managed to do so using sendmail, So here's how i did it. It might work differently for you.

1. Assuming that everything else is working fine on your server e.g. (DNS settings, N.I.C, Internet-not necessary) etc.

i) Configure sendmail.cf (located in /etc/mail), this, however is how I configure sendmail.cf for my mail, whether there are
subdomains or not.

- here all I did was
change: # "Smart" relay host (may be null)
DS
to: # "Smart" relay host (may be null)
DS(whatever your relay host is, without the brackets of course) (maybe ISP's relay server address)

- change: # SMTP daemon options
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
to: # SMTP daemon options
O DaemonPortOptions=Name=MTA (somehow my outlook xpress wasnt working until i changed this)
- save the file.



ii) Configure access (located in /etc/mail) to look like below, however it should already come like that.
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
- save the file.



iii) Configure local-host-names (located in /etc/mail) to look like below
# local-host-names - include all aliases for your machine here.
linuxquestions.com (this would be your main domain)
subdomain1.com (whatever your subdomain is)
subdomain2.com (whatever your subdomain is)
- save the file.



iv) Configure virtusertable (located in /etc/mail) as follows: assume email is mee@subdomain1.com and my user a/c is mee
mee@subdomain1.com mee (in this file you list each email with its user a/c on its line)
(but this file is only meant for the subdomains)
- save file



v) Create a file with the name relay-domains in (/etc/mail), if already there then configure it to look like below:
192.168.1. (whatever your network IP is)
(note, however, the exact same way I wrote it is how its done the last part is left out)
(meaning if your network is in the range 192.168.1.0/24 or 172.18.1.0/24 or whatever)
(then it should be 192.168.1. or 172.18.1.)
- save file


vi) While in the /etc/mail/ directory run the command make


vii) restart sendmail and you are done

Although I would really love to know how to do it in postfix as well, and by the way, no special configuration is needed for the pop3 server i.e. dovecot and ipop3, for the subdomains, if they are already working then its fine like that.

Last edited by tendaimagore; 11-21-2010 at 05:20 AM. Reason: i had left out a word...
 
  


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
Script to Auto-add Domain Users to Workstation Power Users Group doesn't work avinash.rao Ubuntu 0 08-22-2009 05:57 AM
Script to add a secondary group to all users except system default users Tekken Linux - Server 5 06-29-2009 05:02 PM
How to add users as authorised users in Ftp server zerocool3008 Linux - Newbie 3 07-16-2008 05:01 PM
cant add users...?? Help AmdMhz Linux - Software 9 02-01-2004 01:25 PM
how to add users? linux_chap Fedora 2 11-28-2003 12:33 PM


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