LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-25-2005, 05:11 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Virtual hosting with sendmail


I have a mail server that currently answers to one domain. I think I can make it work for two quite easily by adding another domain name in the /etc/mail/local-host-names directory. However, there is one thing that I can't figure out how to do...

My username on my mail server is gauge. My domain is ash-can.com. Clearly, my email address is gauge@ash-can.com. However, I don't want an address on this new domain that I'm adding to my server (which we'll call newdomain.com). So, I want gauge@ash-can.com to exist without being the same as gauge@newdomain.com. How can I make this happen? How can I keep the accounts for these domains separate, but on the same machine?
 
Old 08-25-2005, 08:37 PM   #2
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
See the sendmail documentation on "virtusertable" to map parts of e-mail addresses to accounts, aliases, other e-mail addresses etc.

sendmail.mc...
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')
e.g. virtusertable...
user1@example1.com localuser1
user1@example2.com localuser2
user2@example1.com user@somewhere.else
 
Old 08-25-2005, 09:35 PM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
EDIT: Nevermind, I understand now. Thanks for the advice!

Last edited by gauge73; 08-25-2005 at 09:41 PM.
 
Old 08-26-2005, 11:34 AM   #4
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
Pardon my jumping in on this, but I have a related dumb question:

Say I have a user "pat" on my machine, and can get email just fine at "pat@domain". Now, say I don't want my various email clients to login to my IMAP server using this user's username/password (since I may be logging in from my work machine, from a friend's machine, etc. and don't want to risk someone picking up that password via keylogger software or something), and instead want to set up an "email only" user, say "patmail", whose sole reason for existence would be to have an email account on my machine, so that I would login to THAT user with my email clients to check email. In order to have email to "pat@domain" be deposited in the "patmail" inbox, would I need to set up an alias or virtuser or something in Sendmail to do that?

If there's a different/better way to do what I'm trying to do (or some documentation addressing this scenario), please let me know. I've done several searches along the lines of "email only user", etc. but haven't seen anything that seems to be related to this.

Thanks,
 
Old 08-26-2005, 01:15 PM   #5
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
It still won't get round the key-logging, but separating your e-mail and login accounts might be worth doing. At worst, your e-mail could be accessed.

There are a numbr of ways to set up e-mail only accounts from simple, dummy, nologin users and an alias thru to Cyrus IMAP. You might want to take a look at squirrelmail for web-based e-mail. Or, check to see what authentication methods your IMAP server supports - may be able to use a differnet password database for IMAP connections based on DIGEST etc. which is much more secure.
 
Old 08-26-2005, 01:40 PM   #6
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
Ok. My next step IS squirrelmail now that I've got my IMAP/POP up and running (I've had Apache/PHP/MySQL running for quite some time), so I'll definitely be looking into options there.

Thanks for the info
 
  


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 with virtual hosting toraghun Red Hat 6 12-02-2005 02:15 PM
Sendmail and Virtual Hosting dineshbabub Linux - Networking 6 07-07-2005 12:57 PM
Sendmail Virtual Hosting vinhdt Linux - Software 1 05-02-2005 11:24 AM
about sendmail configuration with virtual hosting dingzihang Linux - Networking 0 03-09-2004 10:56 PM
about sendmail configuration with virtual hosting dingzihang Linux - Networking 2 03-08-2004 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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