senamil with two domains

lasa lasantha2linux at gmail.com
Fri Oct 28 19:14:39 UTC 2005


I am having two domains mydomain.com <http://mydomain.com> and
mydomain1.com<http://mydomain1.com>
.
 My sendmail server sendmail.mc <http://sendmail.mc> file have following

define(`confDOMAIN_NAME',`mydomain.com')

define(`SMART_HOST',`lgw.mydomain.com')

MASQUERADE_AS(`mydomain.com')

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1 <http://127.0.0.1>, Name=MTA')

DAEMON_OPTIONS(`Port=smtp,Addr=192.168.10.1 <http://192.168.10.1>,
Name=MTA')

DAEMON_OPTIONS(`Port=smtp,Addr=10.0.0.1 <http://10.0.0.1>, Name=MTA')

and local-host-name file added the mydomain.com <http://mydomain.com> entry.
I created the sendmail.cf <http://sendmail.cf> with this file.
For 2 domains I have added line
Cw mydomain.com <http://mydomain.com> mydomain1.com <http://mydomain1.com>to
sendmail.cf <http://sendmail.cf> file manully after that.
 I have created 2 domains in dns and they resolved by client computer.
 but I cant send/receive email with secound domain account.
 Pls help me...\
 Lasantha
 On 10/26/05, A.Fadyushin at it-centre.ru <A.Fadyushin at it-centre.ru> wrote:
>
> If your sendmail configuration file includes feature 'use_cw_file', then
> just put the list of your domains in the file /etc/mail/local-host-names
> (one domain name per line).
> Or, alternatively, when you do not want to use feature 'use_cw_file' or
> you need only few domain names you can specify domain names directly on
> the 'Cw' line in sendmail configuration file.
>
> Alexey Fadyushin
> Brainbench MVP for Linux
> http://www.brainbench.com
>
> > -----Original Message-----
> > From: redhat-list-bounces at redhat.com [mailto:redhat-list-
> > bounces at redhat.com] On Behalf Of lasanthaindika
> > Sent: Tuesday, October 25, 2005 11:20 PM
> > To: redhat-list at redhat.com
> > Subject: senamil with two domains
> >
> > Can I configure sendmail for two domains. As example my sendmail
> > configured to abc.com <http://abc.com>,and I need to config this for
> xyz.lk <http://xyz.lk> too. How
> can I
> > do this. I am having DNS and can config DNS for two domains.
> >
> > Lasantha Amarasinghe
> >
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



--
Lasantha Amarasinghe
Sri Lanka



More information about the redhat-list mailing list