LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-26-2013, 01:23 AM   #16
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643

Looks like you didn't create the vmail user with uid 5000.
 
Old 08-26-2013, 01:42 AM   #17
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
yeah "vmail" user has this id in postfix to be setup, i was trying to recall it.. thanks for reminding.
 
Old 08-26-2013, 01:56 AM   #18
FortressMvelez
Member
 
Registered: May 2013
Location: Bronx, New York
Posts: 40

Original Poster
Rep: Reputation: Disabled
Hey,

I ran the command as you stated in your previous reply but it did not show anything as you can see below:

Quote:
root@server.aevtech.com [~]: awk -v val=5000 -F ":" '$3==val{print $1}' /etc/passwd
root@server.aevtech.com [~]:
If this user name is not on the server, where did it find the information for this user which is in the error?
 
Old 08-26-2013, 02:11 AM   #19
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Presumably because you have set your postfix virtual transport to use uid=5000:gid=5000
 
Old 08-26-2013, 02:13 AM   #20
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
refering your comment "you followed what is sent"

from here it would have came::

Code:
sudo groupadd -g 5000 vmail

To create a virtual mailbox owner:

sudo useradd -m -u 5000 -g 5000 -s /bin/bash vmail   ##### YOU forgot to execute this

Edit main.cf

sudo vi /etc/postfix/main.cf

Set up Postfix to use virtual mailboxes

Add the following code segment to main.cf

virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
 
Old 08-27-2013, 12:11 PM   #21
FortressMvelez
Member
 
Registered: May 2013
Location: Bronx, New York
Posts: 40

Original Poster
Rep: Reputation: Disabled
Hello,

I have tried to run the missing command and got the following:

root@server.aevtech.com [~]: sudo useradd -m -u 5000 -g 5000 -s /bin/bash vmail
useradd: group '5000' does not exist
root@server.aevtech.com [~]: groupadd 5000
groupadd: group '5000' already exists

I checked everything else and that was done and good to go. But, how come it is telling me the group is not there in one error and it tells me it is in another?

Last edited by FortressMvelez; 08-27-2013 at 12:15 PM.
 
Old 08-27-2013, 08:42 PM   #22
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Quote:
root@server.aevtech.com [~]: sudo useradd -m -u 5000 -g 5000 -s /bin/bash vmail
useradd: group '5000' does not exist
root@server.aevtech.com [~]: groupadd 5000
groupadd: group '5000' already exists
The above is wrong execution.

Now try to understand what the command is doing:

Code:
sudo groupadd -g 5000 vmail          # add a group with gid 5000 and name vmail

sudo useradd -m -u 5000 -g 5000 -s /bin/bash vmail             #Add a user with uid 5000 gid 5000, a default home directory and name vmail.
See above and compare what mistake you were doing since the start on this procedure.
Go ahead delete the existing group you created incorrectly and create again with above commands.
 
Old 08-27-2013, 09:58 PM   #23
FortressMvelez
Member
 
Registered: May 2013
Location: Bronx, New York
Posts: 40

Original Poster
Rep: Reputation: Disabled
Hello,

YES!!!!!! It is working!!!!!

I MY SELF messed up before but you helped me see the errors I have done and I thank you guys so much for the help!!!!

I sent a test e-mail to support@aevtech.com and it went through with no errors or anything and created the directories and no email with no errors.

I used roundcube to log in. I want to log in with support@aevtech.com and a password for it.

How to do I assign it a password so I can log into round cube with the email address (full email address) and its password?
 
Old 08-27-2013, 10:24 PM   #24
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
well thats great....

For now i dont know much about roundcube, so its better to mark this thread as SOLVED and open a new thread to figure out how to assign password to these email addresses and access them in Roundcube.. someone should have info on that.
meanwhile i will try configuring roundcube on my test machine and will do some R&D on your requirement.
 
Old 08-27-2013, 10:27 PM   #25
FortressMvelez
Member
 
Registered: May 2013
Location: Bronx, New York
Posts: 40

Original Poster
Rep: Reputation: Disabled
Hello,

My GOD I am so thankful for you and your help!!! THANK YOU SO MUCH!!!!!! Amazing work!!!!
 
Old 08-27-2013, 10:29 PM   #26
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Dovecot is what your webmail will be logging into, so see the documentation at dovecot.org on the various auth methods available.
 
Old 08-27-2013, 10:32 PM   #27
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Yeah i thought you have already set it up for dovecot as the link i shared has the info of setting the users and password using dovecot too and the same can be used in Roundcube ...after what i have searched so far about roundcube.


So follow the documentation again for dovecot and you are all set to go to use it for roundcube.
@descendant_command: Thanks for the hint

Last edited by SAbhi; 08-27-2013 at 10:34 PM.
 
  


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
[SOLVED] Dovecot and Postfix restrict users zasavage Slackware 1 02-27-2012 01:35 PM
Postfix + Dovecot + virtual users without a database? MheAd Linux - Server 6 10-18-2011 08:45 AM
how to configure dovecot&sendmail&postfix to accept other domain email? hocheetiong Linux - Server 3 12-24-2007 03:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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