LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Sendmail with virtual hosting (https://www.linuxquestions.org/questions/red-hat-31/sendmail-with-virtual-hosting-354479/)

toraghun 08-18-2005 04:11 AM

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.

trickykid 08-23-2005 09:25 AM

Perhaps this will get you started: http://www.faqs.org/docs/Linux-mini/....html#SENDMAIL

toraghun 08-24-2005 12:48 AM

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".

trickykid 08-25-2005 03:58 PM

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.. :confused:

You can also set this up in your aliases file as well, etc.

fhleung 11-14-2005 08:58 AM

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? :study:

toraghun 11-14-2005 10:46 PM

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

XOR007 12-02-2005 02:15 PM

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.


All times are GMT -5. The time now is 09:38 AM.