Exchange Q&A: Mail Flow (9)

1.How to set the maximum size of a message sent through the Foreign connector using Exchange Management Shell?

Cmdlet: Set-ForeignConnector

Parameter: MaxMessageSize

2.How to see the values of connector limits?

Get-ReceiveConnector | Format-Table Name,Max*Size,MaxRecipientsPerMessage; Get-SendConnector | Format-Table Name,MaxMessageSize; Get-AdSiteLink | Format-Table Name,MaxMessageSize; Get-DeliveryAgentConnector | Format-Table Name,MaxMessageSize; Get-ForeignConnector | Format-Table Name,MaxMessageSize

3.How to set the maximum size of a message that can be sent to the specific recipient using Exchange Management Shell?

Cmdlets:

  • Set-DistributionGroup
  • Set-DynamicDistributionGroup
  • Set-Mailbox
  • Set-MailContact
  • Set-MailUser
  • Set-MailPublicFolder
  • New-SiteMailboxProvisioningPolicy
  • Set-SiteMailboxProvisioningPolicy

Parameter: MaxReceiveSize

4.How to set the maximum size of a message that can be sent by the specific sender using Exchange Management Shell?

Cmdlets:

  • Set-DistributionGroup
  • Set-DynamicDistributionGroup
  • Set-Mailbox
  • Set-MailContact
  • Set-MailUser
  • Set-MailPublicFolder

Parameter: MaxSendSize

5.How to set the maximum number of recipients in a message that’s sent by the specific sender using Exchange Management Shell?

Cmdlets:

  • Set-Mailbox
  • Set-MailUser

Parameter: RecipientLimits

6.How to see the recipient limits that are configured on a specific mailbox?

Run the following command:

Get-Mailbox <MailboxIdentity> | Format-List MaxReceiveSize,MaxSendSize,RecipientLimits

7.How to see the recipient limitsthat are configured on all user mailboxes?

Run the following command:

$mb= Get-Mailbox -ResultSize unlimited; $mb | where {$_.RecipientTypeDetails -eq ‘UserMailbox’} | Format-Table Name,MaxReceiveSize,MaxSendSize,RecipientLimits

8.What type of messages exempt from size limits?

  • System messages;
  • Agent-generated message;
  • Delivery status notification (DSN) messages;
  • Journal report messages;
  • Quarantined messages.

9.How SMTP servers respond to commands?

SMTP servers respond to commands with a variety of numerical reply codes in the format of x.y.z where:

  • X indicates whether the command was good, bad, or incomplete;
  • Y indicates the kind of response that was sent;
  • Z provides additional information about the command.

10.What are the possible values of SMTP servers responds and their meaning?

2.y.z:

The command that was sent was successfully completed on the remote server. The remote server is ready for the next command.

3.y.z:

The command was accepted but the remote server needs more information before the operation can be completed. The sending server needs to send a new command with the needed information.

4.y.z:

The command wasn’t accepted by the remote server for a reason that might be temporary. The sending server should try to connect again later to see if the remote server can successfully accept the command. The sending server will continue to retry the connection until either a successful connection is completed (indicated by a 2.y.z code) or fails permanently (indicated by a 5.y.z code).

5.y.z:

The command wasn’t accepted by the remote server for a reason that is isn’t recoverable. The sending server won’t retry the connection and will send a non-delivery report back to the user who sent the message.

11.What are the possible reasons for OPEN command failure response?

  • The destination SMTP service is unavailable;
  • Restrictions on the destination firewall;
  • Restrictions on the source firewall;
  • Incorrect FQDN or IP address for the destination SMTP server;
  • Incorrect port number.

12.What are the possible reasons for EHLO command failure response?

  • Invalid characters in the domain name;
  • Connection restrictions on the destination SMTP server.

13.What are the possible reasons for MAILFROM command failure response?

550 5.1.7 Invalid address:

A syntax error in the sender’s e-mail address.

530 5.7.1 Client was not authenticated:

The destination server doesn’t accept anonymous message submissions. We receive this error if we try to use Telnet to submit a message directly to a Mailbox server that doesn’t have a Receive connector that’s configured to accept anonymous connections.

14.What are the possible reasons for RCPT TO command failure response?

The specified recipient doesn’t exist.

Still have questions? Click here to view Microsoft’s official documentation on Exchange.

发表评论

电子邮件地址不会被公开。 必填项已用*标注