550 5.7.1 Client does not have permissions to send as this sender (office365)

混江龙づ霸主 提交于 2019-12-18 18:53:39

问题


i m trying to send email with following configuration

Host: smtp.office365.com

port: 587

user: "myemail@domain.com"

pass: "mypassword"

i m getting the following exception :

550 5.7.1 Client does not have permissions to send as this sender

i have gone through many forums that told me to set send as permission for mailboxe but i m not able to find any such configuration in oulook web app...or do i need to configure it somewhere else and if it so then where..???....i have only used above configuration for sending mails and have not done any config with outlook web app...what all i need to change and configure in my outlook web app ....


回答1:


Beware that this error might also occur when the from email does not match the username.

So, be sure to test the value myemail@domain.com is the same on user and from.

If it works when both fields have the same value and doesn't work when the from is different from the user, it means you should contact the company responsible for the email server and ask them to create a shared account and add SendAs priviledges for the account.




回答2:


go the the Exchange management console and select the user. Right Click, go to the send as permissions option.. check that User NT AUTHORITY\SELF is listed. If not add it.




回答3:


Answer provided by Luis Cruz is the right one.. However, I will try to be more descriptive though,

We were trying to send mail in Mantis Bug Tracker through Office 365 account and were facing the same issue. Below was the config,

$g_enable_email_notification = ON;
$g_phpMailer_method          = PHPMAILER_METHOD_SMTP;
$g_smtp_host                 = 'smtp.office365.com';
$g_smtp_username             = 'abc@acme.com';
$g_smtp_password             = '****';
$g_smtp_connection_mode      = 'tls';
$g_smtp_port                 = 587;

Clearly what we were missing was the 'from' property. Adding following properties resolved the issue,

$g_from_name               = 'Mantis Admin';
$g_from_email              = 'abc@acme.com';
$g_return_path_email       = 'abc@acme.com';



回答4:


In Exchange PowerShell, add the Send As permission so that Domain\jsmith can send as myemail@domain.com (example):

Add-ADPermission "myemail@domain.com" -User "Domain\jsmith" -Extendedrights "Send As"



回答5:


There can be many reason for this issue, One of this is which is most frequently comes because

Login name and From address is not same.

Login = 'abc@gmailcom' FROM = 'abc@gmailcom'

Now use these variables, It will work.



来源:https://stackoverflow.com/questions/25357440/550-5-7-1-client-does-not-have-permissions-to-send-as-this-sender-office365

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!