LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sendmail query ! (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-query-865165/)

noony123 02-26-2011 10:35 AM

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 ?

TB0ne 02-26-2011 11:31 AM

Quote:

Originally Posted by noony123 (Post 4271966)
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

noony123 02-26-2011 12:06 PM

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.

noony123 02-26-2011 12:17 PM

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

TB0ne 02-26-2011 12:41 PM

Quote:

Originally Posted by noony123 (Post 4272054)
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.

noony123 02-26-2011 01:06 PM

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 :-(

TB0ne 02-26-2011 04:41 PM

Quote:

Originally Posted by noony123 (Post 4272095)
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.

noony123 02-27-2011 02:17 AM

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 ?

TB0ne 02-27-2011 10:47 AM

Quote:

Originally Posted by noony123 (Post 4272669)
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.

noony123 02-27-2011 12:08 PM

Ok sir, if you insist. Let me check it more thoroughly, perhaps i was rushing it :-)

noony123 02-27-2011 12:20 PM

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

TB0ne 02-27-2011 02:02 PM

Quote:

Originally Posted by noony123 (Post 4273026)
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.

noony123 02-27-2011 02:04 PM

So can you kindly tell me where this user user1-emailaddress@somedomain.com resides ?

TB0ne 02-27-2011 04:14 PM

Quote:

Originally Posted by noony123 (Post 4273109)
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).


All times are GMT -5. The time now is 01:37 AM.