Re: configuring sendmails domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Title: Re: configuring sendmails domain

Look at submit.mc for email sent from localhost.

-Ross


-----Original Message-----
From: centos-bounces@xxxxxxxxxx <centos-bounces@xxxxxxxxxx>
To: centos@xxxxxxxxxx <centos@xxxxxxxxxx>
Sent: Tue Nov 13 21:31:28 2007
Subject: configuring sendmails domain

>
> ----- Original Message -----
> From: "Jerry Geis" <geisj at pagestation.com <http://lists.centos.org/mailman/listinfo/centos>>
> To: "CentOS ML" <centos at centos.org <http://lists.centos.org/mailman/listinfo/centos>>
> Sent: Wednesday, November 14, 2007 12:11:02 PM (GMT+1000) Australia/Brisbane
> Subject: configuring sendmails domain
>
> I tried editing sendmail.cf and changing the Dj line to X.com
> so any email originating from my machine would be X.com not m.X.com
> where m is machine name.
>
> I typed make in the /etc/mail directory and did service sendmail restart.
>
> This did not work. email still shows as m.X.com
>
> What am I missing so as to NOT have the machine name in the email address.
> I just want the domain.
>
> Thanks,
>
> Jerry
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org <http://lists.centos.org/mailman/listinfo/centos>
> http://lists.centos.org/mailman/listinfo/centos
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
>
> Editing the .cf file is not the way to do this sort of thing. Ensure you have the sendmail-cf package installed and make your changes to the /etc/mail/sendmail.mc file and then type 'make' to build the new .cf. Then restart sendmail.
>
>
> Incidentally, the .mc file has the necessary parameters in it that you may be looking for;
>
>
> dnl MASQUERADE_AS(`mydomain.com')dnl
> dnl #
> dnl # masquerade not just the headers, but the envelope as well
> dnl #
> dnl FEATURE(masquerade_envelope)dnl
> dnl #
> dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
> dnl #
> dnl FEATURE(masquerade_entire_domain)dnl
> dnl #
> dnl MASQUERADE_DOMAIN(localhost)dnl
> dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
> dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
> dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
>
>
>  
I changed all the above to my X.com domain removed the dnl's on the line
did a make in the /etc/mail directory, did service sendmail restart
and I still get m.X.com and not just X.com

What am I still missing something? Thanks,

Jerry

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux