Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-20-2010, 03:06 AM   #1
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, 10:45 PM   #2
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 ?

Old 10-22-2010, 02:21 AM   #3
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 02:24 AM.
Old 11-21-2010, 04:17 AM   #4
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 (located in /etc/mail), this, however is how I configure for my mail, whether there are
subdomains or not.

- here all I did was
change: # "Smart" relay host (may be null)
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=, 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 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. (this would be your main domain) (whatever your subdomain is) (whatever your subdomain is)
- save the file.

iv) Configure virtusertable (located in /etc/mail) as follows: assume email is and my user a/c is mee 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 or 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 04:20 AM. Reason: i had left out a word...


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 04:57 AM
Script to add a secondary group to all users except system default users Tekken Linux - Server 5 06-29-2009 04:02 PM
How to add users as authorised users in Ftp server zerocool3008 Linux - Newbie 3 07-16-2008 04:01 PM
cant add users...?? Help AmdMhz Linux - Software 9 02-01-2004 12:25 PM
how to add users? linux_chap Fedora 2 11-28-2003 11:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration