Exchange Online signature rule places signatures beneath eachother

Mohammed Hamada
Mohammed Hamada used Ask the Experts™
on
Hello,

I have configured Hybrid integration for a client where they have exchange 2010 on-premises and they are using Exclaimer signature manager for their on-premises but their intention is to migrate all their mailboxes to the cloud as they have enough licenses however when I tried to create a disclaimer rule with a signature on it ... it works but when any person reply to the first sent e-mail the signatures come under eachother not after each reply.

for instance if A sends an e-mail to B .. A's signature shows in his message and then when B replies to A .. the signature of B comes on top of A's email not under B's reply.

I am attaching a picture of this and hope someone could direct me toward any possible work around as I have tried to open a ticket with Microsoft support and they were not useful at all.

Thanks
signatures.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
It's how transport rule based disclaimers work - it will either append or prepend it. You should really avoid using disclaimers as signatures. Instead, distribute the signatures to Outlook clients via GPO, and/or use the Set-MailboxMessageConfiguration to configure the OWA signature.
Mohammed HamadaSenior IT Consultant

Author

Commented:
Hi Vasil,

Thanks a lot for your answer, I have found a link that tells how to configure users on O365 using the set-mailboxmessageconfiguration command but when testing it it actually stops at the messaging of connecting to Exchange online at  "WARNING: Your connection has been redirected to the following URI:"

This is the original lik

https://4sysops.com/archives/add-a-signature-to-office-365-emails-with-powershell/

I have tried to configure my own html code and put it in a folder .. the html file name is the UPN of the intended user for the signature on the cloud..


I am pasting the powershell command after I have altered the domain name here

#set folder location for files, the folder must allready exist
$save_location = 'file_location'
$email_domain = '@domain.com'
 
#connect to O365 tenant
$Cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic –AllowRedirection
Import-PSSession $Session
 
#Get a list of all the filenames in the target folder
$sig_files = Get-ChildItem -Path $save_location
 
#Now push the html to the users signature
foreach ($item in $sig_files) {
 
  $user_name = $($item.Basename) + $email_domain
  $filename = $save_location + $($item.Basename) + ".htm"
 
  Write-Host "Now attempting to set signature for " $user_name
  set-mailboxmessageconfiguration -identity $user_name -signaturehtml (get-content $filename) -autoaddsignature $true 
}
 
#disconnect O365 connection
get-PSSession | remove-PSSession

Open in new window


I am also uploading the signature file as well in here too.
<html>
<head>
                <STYLE type="text/css">
                               P.ImprintUniqueID {
                       MARGIN: 0cm 0cm 0pt
                               }
                               LI.ImprintUniqueID {
                       MARGIN: 0cm 0cm 0pt
                               }
                               DIV.ImprintUniqueID {
                       MARGIN: 0cm 0cm 0pt
                               }
                               TABLE.ImprintUniqueIDTable {
                                               MARGIN: 0cm 0cm 0pt
                               }
                               DIV.Section1 {
                                               page: Section1
                               }
                </STYLE>

</head>
<BODY>

<table class="ImprintUniqueIDTable" style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="0" border="0">
                <tr>
                               <td valign="top">
                                               <img src="http://i.imgur.com/RINVsj5.png">
                               </td>
                               <td valign="top" style="WHITE-SPACE: nowrap; PADDING-TOP: 21px; PADDING-LEFT: 20px">
                                               <p class="ImprintUniqueID" style="font-size:11pt; font-family:Tahoma; color:#1f4e79; LINE-HEIGHT: 11px"">
                                                               Mohammed Hamada
															   
                                               </p>
											   									    
                                               <p style="FONT-SIZE: 9pt; FONT-WEIGHT: normal" size=+0>
                                                               IT Consultant
                                               </p>
											  
                                               <p class="ImprintUniqueID" style="font-size:7pt; font-family:tahoma; color:#1f4e79; LINE-HEIGHT: 12px">
                                                               <span style="display:block">P: +90 531 930 9663</span>
                                                               <span style="display:block">F: +90 531 930 9663</span>
                                                               <a href="http://www.cardtek.com/" style="display:block; text-decoration:none; color:#1f4e79; font-size:8pt; font-family:arial">www.cardtek.com</span>
                                               </p>
                               </td>
                </tr>
</table>


</BODY>

</HTML>

Open in new window

Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
Yup, it looks at the file name, but it also appends the @domain.com (line 16). So I guess you should name the file like "JohnSmith" and not "JohnSmith@domain.com". In any case, you can edit the relevant part of the script accordingly.

Remember that this will only affect OWA though, you still have to push signatures via GPO or direct copy for Outlook to use.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Hi Mohammed,

There is a workaround that would achieve what you want, but only for Outlook - a centrally deployed VBS script that sets personalized Outlook signatures. Here is how to do it: http://www.codetwo.com/admins-blog/active-directory-outlook-signature-vbs-script/

Hope this helps,
Adam
Mohammed HamadaSenior IT Consultant

Author

Commented:
Hi Adam, Thanks a lot this article seems very useful however the client doesn't want any of his employees to be able to play with the signature or change it.... I told them this can only be done through a centralized application.

The weird thing is that if you prepend the disclaimer rule so the signature comes on top and the text beneath it this would work fine without an issue.

before starting the project the client have had a meeting with Microsoft sales guy that told him whatever Exclaimer can do Microsoft O365 exchange online can do...
Hi Mohammed,

Let's put it this way (since I can't advertise any products here): there are things 3rd party products (CodeTwo, I'm guessing Exclaimer is similar) can do and Exchange Online cannot, and vice versa. Major Exchange Online advantages: one central setting for all types of email clients including mobile; employees can't play with the signatures. Major disadvantage: inability to insert signatures directly beneath the latest email.

Adam
Mohammed HamadaSenior IT Consultant

Author

Commented:
Hi Adam, yes I understand your point and honestly I told them from the beginning it's not possible to do it the way they want it with Exchange online but Microsoft sales person have told them otherwise ... so I have forwarded the case to this person to handle it ... otherwise the customer is going to give up on Office 365 since they already have 400 client licenses on Exclaimer for exchange on-premises.

I will wait until next monday and let you know what happens.

Thanks a lot
Mohammed HamadaSenior IT Consultant

Author

Commented:
Hello everyone,

It seems there's more than a company is planning on providing a solution for centralized signatures for Exchange online and some of them are already working for some people as I have checked.

The main problem with this client is they are requesting that signatures needs to be also included for communications between employees inside the company (Either for on-premises users or on-cloud users). and since as a temporarily solution I have told them we can leave Exclaimer on-premises to sign every outgoing email either from on-premises or O365 which seems to work fine for outgoing emails to external mail servers. but If a user from Office 365 sends an e-mail to a colleague on Office 365 the Exclaimer can't sign the e-mails as it's internal although we created a connector for that purpose.

Have anyone had this kind of request before?

Thanks
Mohammed HamadaSenior IT Consultant

Author

Commented:
It ended up by the customer getting the new cloud solution from Exclaimer which basically places their own server on Azure and on Exchange online you'll have to only configure a connector to change the mail flow settings of your organizations to it places the signature and then send it back to Exchange online to send it wherever the destination is.
Mohammed HamadaSenior IT Consultant

Author

Commented:
Customer decided to get the new cloud solution by Exclaimer but I will assign points based on the suggestions which are close to the solution

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial