LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-26-2011, 10:35 AM   #1
noony123
Member
 
Registered: Oct 2010
Posts: 167

Rep: Reputation: 0
Sendmail query !


Hi all.

I have asked this before and the answer was to look at virtual hosts. Let me explain the query again

In lotus notes or MS exchange, we create users in lotus or exchange, not on the underlying OS. But in sendmail, so far what i have read, i need to create users on the linux system, in order for them to fetch their emails etc. Now my query is simple

1) I dont want to create users on my OS
2) I want to create users in sendmail with a specific quota, lets say 200 Mb for each user.

Can this be done ?
 
Old 02-26-2011, 11:31 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by noony123 View Post
Hi all.
I have asked this before and the answer was to look at virtual hosts. Let me explain the query again

In lotus notes or MS exchange, we create users in lotus or exchange, not on the underlying OS. But in sendmail, so far what i have read, i need to create users on the linux system, in order for them to fetch their emails etc. Now my query is simple

1) I dont want to create users on my OS
2) I want to create users in sendmail with a specific quota, lets say 200 Mb for each user.
Can this be done ?
Yes...and as you were told before, virtual users is the way to do it. Did you do any research on that before posting the same question again, or checking the sendmail documentation???
http://www.sendmail.org/tips/virtualHosting
 
Old 02-26-2011, 12:06 PM   #3
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

My apologies, but when i read about it, i understand it to be creating some sort of aliases. Ok let me read it again, if you are saying then i am sure i misunderstood it.
 
Old 02-26-2011, 12:17 PM   #4
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

Its strange

i am reading the following link

http://www.faqs.org/docs/linux_network/x15291.html

It never describes anywhere that virtual host shall be doing what i want it to do. Its still giving me the impression that virtual host is like aliasing.

Can you forward me a link where it describes how can i define virtualusers with their own respective quotas
 
Old 02-26-2011, 12:41 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by noony123 View Post
Dear Sir,
Its strange i am reading the following link

http://www.faqs.org/docs/linux_network/x15291.html

It never describes anywhere that virtual host shall be doing what i want it to do. Its still giving me the impression that virtual host is like aliasing.
Can you forward me a link where it describes how can i define virtualusers with their own respective quotas
Can you read the link I posted, in my previous post?? The one where it tells you about virtual users, how to set them up, etc???? Even has examples, and tells you how to compile the virtual users table.
 
Old 02-26-2011, 01:06 PM   #6
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

I have read it. If you are referring to this part

Create the virtual user table. This is explained in detail in the sendmail book: § 19.6.28 of the 2nd edition, or § 4.8.51 of the 3rd edition; an overview is given here. The table is a database that maps virtual addresses into real addresses. You create a text file where each line has a key/value pair, separated by a TAB. For example:

Sir i have read it, and it no where describes how to create virtual users without creating the local users :-(
 
Old 02-26-2011, 04:41 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by noony123 View Post
Dear Sir,
I have read it. If you are referring to this part

Create the virtual user table. This is explained in detail in the sendmail book: § 19.6.28 of the 2nd edition, or § 4.8.51 of the 3rd edition; an overview is given here. The table is a database that maps virtual addresses into real addresses. You create a text file where each line has a key/value pair, separated by a TAB. For example:

Sir i have read it, and it no where describes how to create virtual users without creating the local users :-(
If you read it, then you need to think about it for a second.

Create the virtual user table, as explained in that link.
Instead of it being <local-user>@domain.com, CHANGE IT to be something else, such as <Gmail User ID>@gmail.com, etc. Your box then accepts mail for <user-name>@domain.com, and actually delivers it to <Gmail User ID>@gmail.com. The user is then 'virtual', since it doesn't have an email box/address on the local system. Since the sendmail system is treating users LIKE they were local users, whatever rules you have will apply to them.
 
Old 02-27-2011, 02:17 AM   #8
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

So lets say my internal domain is abc.int

I want to create the following users

User1.abc.int
user2.abc.int
user3.abc.int

Each of them having the quota of 200 MB. Now where will these users be created ? (i dont want to create them in OS), isnt there anything like a database, that sendmail can refer to for getting the names of users for abc.int ?
 
Old 02-27-2011, 10:47 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by noony123 View Post
Dear Sir,

So lets say my internal domain is abc.int
I want to create the following users

User1.abc.int
user2.abc.int
user3.abc.int

Each of them having the quota of 200 MB. Now where will these users be created ? (i dont want to create them in OS), isnt there anything like a database, that sendmail can refer to for getting the names of users for abc.int ?
Yes, that's call the VIRTUAL USERS TABLE which we have told you about four times now. Again, read the link I sent you in my very first post, and it explains how to set it up. Can't make it more plain than that.
 
Old 02-27-2011, 12:08 PM   #10
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Ok sir, if you insist. Let me check it more thoroughly, perhaps i was rushing it :-)
 
Old 02-27-2011, 12:20 PM   #11
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Sir, i have googled again and still the answer that i am getting is, virtual user is like aliasing, doesnt serve my purpose at all. I think i am really being dumb here or am not able to explain what i am after.

Thanks for your time though. Sorry if i bugged you. I will ask this query elsewhere
 
Old 02-27-2011, 02:02 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by noony123 View Post
Sir, i have googled again and still the answer that i am getting is, virtual user is like aliasing, doesnt serve my purpose at all. I think i am really being dumb here or am not able to explain what i am after.

Thanks for your time though. Sorry if i bugged you. I will ask this query elsewhere
You are not paying attention to the information that you've been given. Re-read not only the link provided to you, but the explanation posted the second time the same question was asked.

We'll try one more time. In the virtual users table, you define a user, such as user1@abc.int. That user POINTS TO, user1-emailaddress@somedomain.com. That is what a virtual user is...the user doesn't exist on the OS, but the mailing address ACTS LIKE IT DOES. For the question you posted, that's the answer.
 
Old 02-27-2011, 02:04 PM   #13
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
So can you kindly tell me where this user user1-emailaddress@somedomain.com resides ?
 
Old 02-27-2011, 04:14 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by noony123 View Post
So can you kindly tell me where this user user1-emailaddress@somedomain.com resides ?
Wherever the "somedomain.com" is. Again, it is a VIRTUAL USER on your box....the user doesn't exist, except to sendmail. Whatever mail it receives, it processes according to the sendmail rules, for quotas, etc...whatever you tell it. The mail is received on your domain (user1@abc.int), and is passed along to whatever address you tell it. It can be on another mail system (Gmail, yahoo, whatever), or on a 'virtual' domain (again, see Sendmail docs on setting up virtual domains).
 
  


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
Sendmail query comeatmanish Linux - Newbie 3 01-20-2010 04:04 AM
sendmail server related query bharatlalgupta Red Hat 1 11-23-2009 02:32 AM
Sendmail Query - PHP script tech_paul Linux - Server 2 09-02-2009 12:38 AM
Query related to sendmail problem. rajeshkerala Linux - Newbie 1 01-14-2009 11:17 PM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 06:36 PM

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

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