LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-18-2005, 04:11 AM   #1
toraghun
Member
 
Registered: Mar 2004
Location: Hyderabad
Distribution: Redhat Linux 9.0,Redhat Linux EL 3.0, 4.0 5.0 SLES 10 SLES10(OES)
Posts: 43

Rep: Reputation: 15
Sendmail with virtual hosting


I think there are many people knows the solution for my problem.
I googled a lot to find solution for this, but i am unable to find right and full information on "exctly how to configure?" the following Scenario.

Suppose i have two domains as

domain1.com
domain2.com

in single server.

i want to have mail account with the same username in both domains like,

xyz@domain1.com
xyz@domain2.com

Most of the docs are saying like, we have to configure virtusertable. But not giving exactly how we should configure. I even checked in sendmail.org, but it creating a bit of confusion.

Can any one help me out in this regard. (I am using redhat ES 3.0 ).

Thank you in advance.
Raghu Ni.
 
Old 08-23-2005, 09:25 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Perhaps this will get you started: http://www.faqs.org/docs/Linux-mini/....html#SENDMAIL
 
Old 08-24-2005, 12:48 AM   #3
toraghun
Member
 
Registered: Mar 2004
Location: Hyderabad
Distribution: Redhat Linux 9.0,Redhat Linux EL 3.0, 4.0 5.0 SLES 10 SLES10(OES)
Posts: 43

Original Poster
Rep: Reputation: 15
Thank you for your information.

I gone through that url:, but it seems its not giving the information what i need (If i am not wrong).
Suppose two different domains are hosted in one server
like ex:

domain1.com
domain2.com

How can we maintain user accounts with same name in both domains using sendmail ?

i.e i should have a setup like

xyz@domain1.com
and
xyz@domain2.com

Here both domain1 and domain2 to should have a mail account with the name "xyz".
 
Old 08-25-2005, 03:58 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by toraghun
Thank you for your information.

I gone through that url:, but it seems its not giving the information what i need (If i am not wrong).
Suppose two different domains are hosted in one server
like ex:

domain1.com
domain2.com

How can we maintain user accounts with same name in both domains using sendmail ?

i.e i should have a setup like

xyz@domain1.com
and
xyz@domain2.com

Here both domain1 and domain2 to should have a mail account with the name "xyz".
I believe step 2 in that link I provided actually covers this..

You can also set this up in your aliases file as well, etc.
 
Old 11-14-2005, 08:58 AM   #5
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Sendmail on web interface?

I have a question related to sendmail and I am not sure wether I should start a new thread.

Anyway, assume sendmail is working fine. How can remote users check and send emails on web browser? (open sendmail on web browser and login then access their emails)

Could you suggest some ways to implement this?
 
Old 11-14-2005, 10:46 PM   #6
toraghun
Member
 
Registered: Mar 2004
Location: Hyderabad
Distribution: Redhat Linux 9.0,Redhat Linux EL 3.0, 4.0 5.0 SLES 10 SLES10(OES)
Posts: 43

Original Poster
Rep: Reputation: 15
You should install and configur webmail clinet like squirrelmail or hord or neomail..... like this we have so many.

http://www.squirrelmail.org/
http://www.horde.org/
http://neocodesolutions.com/software/neomail/


You can ues either of the one.

RaghuNi
 
Old 12-02-2005, 02:15 PM   #7
XOR007
Member
 
Registered: May 2005
Location: Africa
Distribution: Ubuntu, Redhat 6.2 to 9, Centos 4, Suse 8 Ent.,Suse 9 Ent.
Posts: 51

Rep: Reputation: 15
Re: Sendmail with virtual hosting

Quote:
Originally posted by toraghun

Suppose i have two domains as

domain1.com
domain2.com

in single server.

i want to have mail account with the same username in both domains like,

xyz@domain1.com
xyz@domain2.com
Raghu Ni.
I also didn't check the url proposed by trickykid but a simple answer is
assuming domain1.com is the canonical name attached to the public IP address of the server,
in sendmail.mc make sure the feature for using cw file is on FEATURE(use_cw_file)dnl, and that sendmail doesn't listen only to localhost: comment out DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl.

configure access restrictions in /etc/mail/access

in /etc/mail/local-host-names add
domain1.com
domain2.com

in /etc/mail/virtusertable
@domain2.com %1@domain1.com

#make -C /etc/mail

and make sure the MXes for both domain1.com and domain2.com point back to the server. Best if your server is the only MX for domain2.com. Actually, RHEL makes sendmail very easy as long as you understand DNS. Good luck!

P.S.: I just checked the url and being a RHEL user, I know that all sendmail guides that are distribution agnostic tend to confuse us.

Last edited by XOR007; 12-02-2005 at 02:26 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
Virtual hosting with sendmail gauge73 Linux - Networking 5 08-26-2005 01:40 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 - Distributions > Red Hat

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