We help IT Professionals succeed at work.

Send Mail to Remote Domain always as Text

strivoli
strivoli asked
on
Despite the method used (client, OWA, whatever) I need to set Exchange 2013 to send mail to a specific domain, always as text (not HTML, not RTF, not whatever - only text). I can't find the way to set it. Please help. Thanks.
Comment
Watch Question

Top Expert 2015

Commented:
Hi Strivoli,

You need to use message encoding options to enforce this. You can enforce this for a specific remote domain...

https://technet.microsoft.com/en-us/library/bb310794(v=exchg.150).aspx

Regards

Guy
Top Expert 2015

Commented:
More specifically...

Have a google of this command

Set-RemoteDomain Contoso -ByteEncoderTypeFor7BitCharsets UseBase64

Open in new window

Author

Commented:
If I run the command I get:

The operation couldn't be performed because object 'Contoso' couldn't be found on 'SRV-A001.domain.com'.
    + CategoryInfo          : NotSpecified: (:) [Set-RemoteDomain], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=SRV-A006,RequestId=dfa42209-bf87-4621-8acf-b7279dbcfa75,TimeStamp=18/03/2015 10:
   54:23] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] EA8BD0C8,Microsoft.Exchange.Management.SystemCon
  figurationTasks.SetRemoteDomain
    + PSComputerName        : srv-a006.domain.com
Top Expert 2015

Commented:
Contoso is a standard microsoft example domain name... you need to replace it with the domain you need to send the plain text mail to...

Author

Commented:
I know Contoso :-) It's used by MS since the 80's :-))

Anyway... Contoso, gmail or gmail.com... I'll always get the same error back. As a result there's something else missing.
Top Expert 2015
Commented:
I've been doing some looking into this... the solution to the error above is to create the remote domain first which I neglected to mention.

New-RemoteDomain -DomainName Contoso.com -Name Contoso

Open in new window


But irrespective of this, apparently an outlook client will always override the remote domain settings... which  I think is kinda rubbish.

I believed the solution would then be to set the content type of the remote domain to MimeText, disable TNEF and set the ByteEncoder to use 7bit, but in testing I couldn't get this to work. There are articles stating this then only works from OWA and not Outlook...

I'm digging a bit further now.
Top Expert 2015

Commented:
p.s... I've had 2 people actually  typing in contoso recently... so, sorry for putting you in that bag of tricks too...
Hi,

Please run below command to get details about remote domain:
Get-RemoteDomain | FL Identity,ByteEncoderTypeFor7BitCharsets

For your question, I want to double confirm whether all external mail flow experience this question.
It it only occur for special domain, this issue may be caused by the configuration of destination domain, then you can contact this domain's administrator to double check.

Thanks,

Author

Commented:
Hi Guy, thanks for helping. I was missing the...

New-RemoteDomain -DomainName Contoso.com -Name Contoso

After running the above command, I could run the command...

Set-RemoteDomain Contoso -ContentType MimeText

Now, every mail sent to the Contoso.com domain is sent as Text.

By the way... I wouldn't work for Contoso... too much mail to manage :-)

Author

Commented:
Guy gave me the required command. Thanks.