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.