1825719 Members
3196 Online
109686 Solutions
New Discussion

Sendmail

 
Domenico_5
Respected Contributor

Sendmail

Hi guys

I'm tryng to configure a mail server on hpux 11.00 with sendmail. My question is: can i have 2 mail server on the same domain that they work in this way:
ServerA with user test1@domain.com test2@domai.com

ServerB with user test3@domain.com and test4@domain.com.

On sendmail site i have found that i can configure a mail server with user and bkup server for relay.

someone know how is possible??

tnx
2 REPLIES 2
benoit Bruckert
Honored Contributor

Re: Sendmail

Hi,
You have to activate the virtusertable option, in config.m4 or by hand in sendmail.cf,
Then in the text file (virtusertable), just use this syntax :
test1@domain.com test1@serverA.domain.com

test2@domain.com test2@serverA.domain.com

test3@domain.com test2@serverB.domain.com

and so on...
It's not easy because you have to define all the users but it works...

To redirect a whole domain (multi domain relay) you can use %1 :
example
@domain1.com %1@serverA.domain.com
@domain2.com %1@serverB.domain.com

remap your file or start/stop sendmail, and it should be OK !
hth
Benoit
_____
L'art d'??crire pr??c??de la pens??e.
Emile Chartier, dit Alain, Propos de litt??rature
Une application mal pansée aboutit à une usine à gaze (GHG)
U.SivaKumar_2
Honored Contributor

Re: Sendmail

Hi,

Install Sendmail in two servers.

Server A:

Edit /etc/mail/local-host-names
Put this entries
domain.com
ServerA.domain.com

Edit /etc/mail/virtualusertable

Put this entries and save

test1@domain.com test1@serverA.domain.com
test2@domain.com test2@serverA.domain.com
test3@domain.com test2@serverB.domain.com
......
......

Then Run this command

#makemap dbm /etc/mail/virtusertable < /etc/mail/virtusertable

Start Sendmail .

Server B:

Edit /etc/mail/local-host-names
Put this entries
domain.com
ServerB.domain.com

Repeat other steps as Server A

Start Sendmail .

Edit your DNS server's Zone file and add this records.

domain.com. IN MX 10 ServerA.yourdomain.com.
domain.com. IN MX 10 ServerB.otherdomain.com.

regards,
U.SivaKumar








Innovations are made when conventions are broken