Pages

Showing posts with label Mails. Show all posts
Showing posts with label Mails. Show all posts

Saturday, October 10, 2026

Fix lỗi add tài khoản vào Outlook Classic báo lỗi.

  1. Đóng hoàn toàn Outlook Classic.
  2. Mở CMD bằng quyền User bình thường.
  3. Chạy 3 lệnh sau:

reg add "HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" /v ExcludeHttpsRootDomain /t REG_DWORD /d 1 /f

reg add "HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" /v ExcludeLastKnownGoodUrl /t REG_DWORD /d 1 /f

reg add "HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 0 /f

4. Sau đó mở lại Outlook Classic và thử tạo Profile mới.

Monday, October 24, 2022

Exchange updates step-by-step guide

Exchange updates step-by-step guide
https://setup.microsoft.com/wizard/exchangeupdatesguide

Tuesday, October 11, 2022

Kiểm tra các email gửi bị lỗi.

Start - Microsoft Exchange Server 2016 - Exchange Management Shell, type :
+ Get-TransportService
# Check service status + Get-TransportService | Get-MessageTrackingLog -Sender abc@dot.vn -MessageSubject "Test" # Check logs sent from HiepIT with subject Test + Get-TransportService | Get-MessageTrackingLog -Sender user@domain.vn -MessageSubject "Test" | Sort-Object Timestamp | ft -AutoSize # Sort time and fit column

Friday, December 4, 2020

Comparing Search-Mailbox and Compliance Search Actions

Comparing Search-Mailbox and Compliance Search Actions

Table 1 summarizes the functionality available in Search-Mailbox and purges executed with compliance search actions. Both have their unique characteristics: compliance searches are faster and can process more mailboxes in a single operation but are limited to what they can remove from a mailbox. Search-Mailbox can focus on Recoverable Items or ignore a mailbox’s archive, while compliance searches can focus on a single target folder. The biggest difference is that Search-Mailbox can copy items to a target mailbox when it removes them from other mailboxes. You can export items with a compliance search, but you must do this separately and before you remove anything.

Monday, August 10, 2020

Xóa Mailbox database bằng tay

Dùng khi không thể xóa Mailbox database trên ECP.

1. Kiểm tra trước khi xóa.

Get-MailboxRestoreRequest
Get-MoveRequest

Get-Mailbox -Database DBName1 -monitoring Get-Mailbox -Database DBName1 -Auditlong Get-Mailbox -Database DBName1 -Archive
- Chuyển All mailbox Dabase qua Mailbox khác

Get-Mailbox -Database “Source Database Name” -Arbitration | New-MoveRequest – TargetDatabase “Target Database Name”

Get-Mailbox -Database “Source Database Name” -Archive |

New-MoveRequest -TargetDatabase “Target Database Name”


- Xóa mailbox system Get-Mailbox -Database DBName1 -Archive | Disable-Mailbox - Xem tình trạng
Get-MoveRequestStatistics -MoveRequestQueue “Target Database Name”

Get-MoveRequest | where {$_.status -eq “Completed”} | Remove-MoveRequest


2. Mở ADSIedit và theo đường dẫn như bên dưới.

Configuration > Services > Microsoft Exchange > ExchOrganization > Mailbox Replication

Lưu ý: Kiểm tra chính xác Database cần xóa

[image%255B3%255D.png]

Gỡ bỏ Exchange 2016 bằng command


Mount file ISO Exchange 2016 và gõ lệnh như bên dưới.

X:\ Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms

X: là ổ đĩa đã mount file ISO

Friday, July 24, 2020

JET_errFileAccessDenied, Cannot access file, the file is locked or in use, Cannot see Active Directory, hr=0x80004005, ec=-501

When the Exchange mailbox database won't mount, you can't access the mailbox files, send or receive emails on Outlook or checking mailbox logs, etc. Don’t worry if you are unable to access the Exchange Server database. On this page, EaseUS software will analyze the causes of why the Exchange Server mailbox database fails to mount and offer reliable solutions to resolve this issue without losing database.

Causes of Exchange mailbox not mounting:


Monday, July 20, 2020

Exchange 2013/2016: HTTP redirection issues with ECP virtual directory – /owa/ecp


Exchange 2013: HTTP redirection issues with ECP virtual directory – /owa/ecp
When you try to access ECP on Exchange 2013, browser redirects to /owa/ecp and shows “Bad Request”
You will see this if HTTP redirection is applied on Default website and those settings got replicated to all Virtual directories underneath.
Let’s look at How to enable HTTP redirect on Exchange 2013.
To enable HTTP to HTTPS redirection on exchange 2013, on IIS VDir highlight Default website and click HTTP Redirect:

Sunday, July 12, 2020

Exchange 2016 Certificate Problem

Khi gặp lỗi như bên dưới, tiến hành kiểm tra Evenlog sẽ thấy lỗi mô tả như bên dưới.

A special Rpc error occurs on server S-XXXXXX: Could not grant Network Service access to the certificate with
thumbprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxx because a cryptographic exception was thrown.
    + CategoryInfo          : NotSpecified: (:) [Enable-ExchangeCertificate], InvalidOperationException
    + FullyQualifiedErrorId : [Server=S-XXXXXX,RequestId=0ce68699-de3e-4ac4-9c7a-094b538d302d,TimeStamp=01/06/2020 13:
   59:03] [FailureCategory=Cmdlet-InvalidOperationException] D9EA479C,Microsoft.Exchange.Management.SystemConfigurati
  onTasks.EnableExchangeCertificate
    + PSComputerName        : s-XXXXXX.xxxxxxxx.co.uk

1. Gỡ bỏ hoặc Disable Antivirus


2. Tiến hành import ssl lại, tham khảo như link bên dưới.


3. Trường hợp khi import ssl mới, vào Ecp, Exchange Console bị lỗi, tham khảo link bên dưới để fix

Thursday, June 18, 2020

Database Unable to Mount while Restoring the Microsoft Exchange Database

Database Unable to Mount while Restoring the Microsoft Exchange Database

Symptom
When I restore a Microsoft Exchange database, the database is unable to mount. The required logs are missing or the transaction logs are not contiguous. There are event errors such as 454, 455, and 2006 in the event log.

Monday, April 20, 2020

Reject emails without sending notice to sender

Reject emails without sending notice to sender


Increasing expiry period of moderated distribution list messages - Exchange 2010/2013/2016/2019/Exchange Online

Connect to Exchange Online Powershell

Get-RetentionPolicyTag ModeratedRecipients | fl AgeLimitForRetention
You will see it as 2 days.


Increase it to preferred date(Tested with max 5 days)
Set-RetentionPolicyTag ModeratedRecipients -AgeLimitForRetention 5.00:00:00





Saturday, December 7, 2019

Search-Mailbox

Cần tìm tất các email kuteo gửi ra từ ngày đến ngày, gửi đến ai, cc và bcc. Kết quả search lưu vào họp thư của Daica và folder được tạo là Search_Kuteo


Search-Mailbox Kuteo -SearchDumpster -SearchQuery "(Received:1/18/2012..12/28/2019) AND (To:abc@domain.com OR From:xyx@domain1.com OR CC:tmx@abc.com OR BCC:abc@tmc.com)" -targetmailbox Daica -loglevel full -targetfolder "Search_Kuteo"

Monday, December 3, 2018

How To Reset The Outlook Address Cache

How To Reset The Outlook Address Cache

If you are typing email addresses into your Outlook and they have gone wonky there are several things you can do but the easiest is likely just to flush the Outlook Address autocomplete cache.  In old versions of Outlook, that meant deleting the .NK2 file from %appdata%\Microsoft\Outlook however in Outlook 2016 (actually since Outlook 2010) your ‘nickname’ cache is stored in %localappdata%\Microsoft\Outlook\RoamCache

There are three easy ways to empty the Outlook Autocomplete Email Address Cache:

1. Flush The Outlook Email Address Cache Using File Manager:
Close Outlook
Using File Explorer, MY PC, THIS PC or whateva’, go to %localappdata%\Microsoft\Outlook\RoamCache
Delete Stream_Autocomplete_0_.dat 
Open Outlook
Have a nice day

2. Flush The Outlook Email Address Cache Using the Outlook GUI:clear-autocomplete-outlook-address-cache
Open Outlook
Click FILE
Click OPTIONS
Click MAIL
Scroll down about half way and select EMPTY AUTOCOMPLETE button
Have a nice day

3. Flush The Outlook Email Address Cache Using Command Line:
outlook.exe /cleanautocompletecache
Have a nice day
If you have any questions, post them here or read:

https://www.slipstick.com/outlook/email/understanding-outlooks-autocomplete-cache-nk2/
https://grok.lsu.edu/article.aspx?articleid=18029

Wednesday, November 14, 2018

Xóa log Mail Exchange và IIS


Dùng Exchange Management Shell chạy lệnh bên dưới để xóa log Exchange 2010/13/16 và IIS

gci `XXX:\LogExchange','XXX:\inetpub\logs' -Directory | gci -Include `*.log','*.blg' -Recurse | ? LastWriteTime -lt (Get-Date).AddDays(-7) | Remove-Item


-7: Điều chỉnh số ngày xóa log

XXX: Đường dẫn chưa file log

Monday, April 24, 2017

Admin Fix: X500 Address

Note: This document is intended for Exchange? Administrators.
When you send email to someone who has a working Exchange mailbox and get an error like the one below, it usually means that the "legacyExchangeDN" attribute on the mailbox has changed.

 IMCEAEX-_O=OREGON+20STATE+20UNIVERSITY_OU=EXCHANGE+20ADMINISTRATIVE+20
 GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=User@oregonstate.edu
 #550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found ##

There are several reasons that can happen, but the most common case is that the mailbox was deleted and a new one was created with the same email address.
Outlook clients will try to send to the mailbox using the old legacyExchangeDN in the following cases:
  • Sending to a local contact stored for that person
  • Sending to an entry in the Outlook Nickname cache
  • Replying to an old email the person sent
Although it is possible to solve this problem by clearing the nickname cache and removing old contacts for all the senders who are effected, that is not really practical and replies to old emails will still bounce. The better solution is to add an X500 address to the new mailbox, so that mail can be properly routed.

To get the right syntax for the X500 address, use the text from the bounce message.
  • Remove the leading text "IMCEAEX-"
  • Change underscores to forward slashes
  • Change +20 to a space
  • Change +28 to an open parenthesis
  • Change +29 to a close parenthesis
  • Change +2E to a period

In the example above, the error provides this text:
 IMCEAEX-_O=OREGON+20STATE+20UNIVERSITY_OU=EXCHANGE+20ADMINISTRATIVE+20
 GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=User@oregonstate.edu

The X500 address should be:
 /O=OREGON STATE UNIVERSITY/OU=EXCHANGE ADMINISTRATIVE GROUP
 (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=User@oregonstate.edu

To add the X500 address to the affected account:
  • Open properties for the user account in Active Directory Users & Computers.
  • Choose the "E-mail Addresses" tab.
  • Click on "Add" and choose "Custom Address".
  • Enter the X500 address with the correct syntax per the steps above.
  • Choose "X500" for the "E-mail type".
  • Click OK twice to save.
  • Have one of the affected senders test sending to this account.

Thursday, October 6, 2016

Exchange – Message Not Sent 'Because there are too many recipients'

When attempting to send an email to a large amount of recipients, you may see the following error;
   
This message wasn’t delivered to anyone because there are too many recipients, the limit is {number}. This message has {number} recipients
 
To check what the limit is set to launch the Exchange Management Shell, and ecxecute the following command;
 
Get-TranportConfig
   
To raise the limit (in this example to 2000) use the following command;
 
Set-TranportConfig -MaxRecipientEnvelopeLimit 2000