Find the answer to your Linux question:
Results 1 to 7 of 7
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    6

    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.

  2. #2
    Just Joined!
    Join Date
    Aug 2004
    Location
    Hong Kong, China
    Posts
    7
    Me too, I also have the same problems like you, and don't know how to do like this.

    It is look like very hard to do so, apache is easy to make vhost, but sendmail ... hard la, and don't know how to...

    anyone can help us? thx for your time

  3. #3
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,934
    The fix should just be as simple as configuring your system for 'domain1.com', then adding

    domain2.com = domain1.com

    into your /etc/mail/domaintable file, and running make in the /etc/mail directory.

    You'll want to put both domains in your 'relay-domains' file too (I know I've done this).
    Linux user #126863 - see http://linuxcounter.net/

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2005
    Posts
    26

    Re: sendmail with virtual hosting

    Quote Originally Posted by raghuni
    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.
    1. useradd xyz - create user xyz
    2. passwd zyx - create password
    3.mcedit /etc/mail/virtusertable - here you enter username zyx@domain.com and then with tab leave blank space and enter zyx- (the inbox foder)
    4./etc/mail/make all
    5. service sendmail restart
    7. thats all

  6. #5
    Just Joined!
    Join Date
    Feb 2005
    Posts
    6
    Hi, Roxoff

    Thank you for your reply, But it seems the setup you shown, is not working with me.
    I am using sendmail version 8.12.11-3
    Actually i don't have relay-domains file in /etc/mail folder. So i created it manually and included both domain names in the same file

    [root@pbas6 mail]# pwd
    /etc/mail

    [root@pbas6 mail]# cat domaintable
    domain2.com = domain1.com

    [root@pbas6 mail]# cat relay-domains
    domain2.com
    domain1.com

    Actually when i am try to send mail to xyz@domain1.com, its working fine. But when i try to send mail to xyz@domain2.com, i am getting following error
    [root@pbas6 mail]# mailq
    /var/spool/mqueue (1 request)
    -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
    j7O8cUxC018394 13 Wed Aug 24 14:08 <root@domain1.comt>
    (Deferred: Connection refused by domain2.com.)
    <xyzdomain2.com>

  7. #6
    Just Joined!
    Join Date
    Feb 2005
    Posts
    6
    hi, ice9
    I tyied to execute the steps what you have given, but i am not finding a command, but i am unsuccessful.

    I am not getting what exactly i need to do in step3, can you be please more clear on this.
    >>
    >>1. useradd xyz - create user xyz
    >>2. passwd zyx - create password
    >>3.mcedit /etc/mail/virtusertable - here you enter username zyx@domain.com and then >>with tab leave blank space and enter zyx- (the inbox foder)
    >>4./etc/mail/make all
    >>5. service sendmail restart
    >>7. thats all
    >>

    Actually i want to maintain, two different mail boxes to both user accounts (xyz@domain1.com and xyz@domain2.com) and domain1.com and domain2.com are hosted in single server and having same IP.

  8. #7
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,934
    Quote Originally Posted by raghuni
    Hi, Roxoff

    Thank you for your reply, But it seems the setup you shown, is not working with me.
    I am using sendmail version 8.12.11-3
    Actually i don't have relay-domains file in /etc/mail folder. So i created it manually and included both domain names in the same file

    [root@pbas6 mail]# pwd
    /etc/mail

    [root@pbas6 mail]# cat domaintable
    domain2.com = domain1.com

    [root@pbas6 mail]# cat relay-domains
    domain2.com
    domain1.com

    Actually when i am try to send mail to xyz@domain1.com, its working fine. But when i try to send mail to xyz@domain2.com, i am getting following error
    [root@pbas6 mail]# mailq
    /var/spool/mqueue (1 request)
    -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
    j7O8cUxC018394 13 Wed Aug 24 14:08 <root@domain1.comt>
    (Deferred: Connection refused by domain2.com.)
    <xyzdomain2.com>
    You have set up the DNS for the domains so that the primary MX record for each points right at your server, haven't you? How is it that domain2.com is rejected by someone else's mail server?
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •