Error while sending email using symfony4.4 - mailer

i try to send an email using symfony 4.4 from Microsoft Exchange Serve 2010
i get the following error :
Failed to find an authenticator supported by the SMTP server.
....
if (!$authNames) {
throw new TransportException('Failed to find an authenticator supported by the SMTP server.'); }
this is my configuration in .env
MAILER_DSN=smtp://helpdesk#amdl.gov.ma:mypassword#192.168.30.20:25
192.168.30.20 is the ip of Microsoft Exchange Serve 2010 MV.

Related

Office (JS) Outlook addin and Exchange token authentication

My Office add-in (which runs in Outlook) uses the OfficeJS library to get a callback token for authentication against Exchange:
Office.context.mailbox.getCallbackTokenAsync(...);
The token is sent to our server together with some message/attachment IDs and the server will attempt to connect to Exchange to retrieve said mail attachment. I use the EWS java API library for this. I am getting an Unauthorized 401 HTTP error back from Exchange when trying to bind to an EmailMessage:
ExchangeService exchangeService = new ExchangeService();
exchangeService.getHttpHeaders().put("Authorization", "Bearer " + callbackToken);
exchangeService.setUrl(new URI(ewsUrl));
EmailMessage mailMessage = EmailMessage.bind(exchangeService, new ItemId(mailMessageId));
When tested against Office 365 it all works flawlessly. However, when running this at a client I get the HTTP 401 response. The client runs Exchange 2013 on-premise. Does Exchange 2013 on-premise even support token authentication? Is there anything that needs to be done to enable this on that version of Exchange?

Sending test mail fails in confluence

I need to evaluate notification functionality in confluence.
I have installed confluence locally on my PC.
I have configured mail server in it by going to General Configuration->Mail Servers->Add a new SMTP mail server
I have provided smtp.office365.com as Server Host Name and 587 as Server port.
I have used my company user id as User name and corresponding password.
However when I try to send a test mail, it fails with below exception
"Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587" and also we have tried to configure our smtp server and getting error as "Caused by: java.net.SocketException: Permission denied: connect"
I have seen accepted answers for this question at post https://answers.atlassian.com/questions/139025/error-while-configuring-mail-server
However that is related to a bug Java1.7 whereas I am using Java1.8.
Can someone please suggest any idea what thing can be wrong?
Looking at the hostname it seems that the mail server is in the internet. If you are behind a proxy you will need to configure this in the java options as described here
https://confluence.atlassian.com/doc/configuring-web-proxy-support-for-confluence-117068.html

Test mail not sending in drupal 7 SMTP configuration in windows 2012 server

I installed and configured SMTP module with proper details in Drupal 7. I tried to send test the mail in Windows 2012 server but am getting the below error.
SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. (0)
SMTP Error: Could not connect to SMTP host.
Unable to send e-mail. Contact the site administrator if the problem persists.
The same build is working fine in Windows XP, 07, and Ubuntu environments. What is causing this problem?
Correct the TLS port for gmail SMTP configuration. It should be 587. You can refer to below link -
https://support.google.com/a/answer/176600?hl=en

SENDING MAIL USING SSIS Send Mail Task

I want to send email with and attachment using SSIS, and the below error occurs.
[Send Mail Task] Error: An error occurred with the following error
message: "The SMTP server requires a secure connection or the client
was not authenticated. The server response was: 5.5.1 Authentication
Required. Learn more at".
Below is my SMTP connection Manager and Send Mail Task, and the above error occurs..
Any help..
You need to provide authentication, GMail doesn't work as an open relay.
Also, you can't connect to GMail with Windows authentication, so you'll have to use a script component and do this in .Net if that has to be your mail server for this.
Here's someone who found & solved this already, even including the GMail part: http://kalyan-coldfusion.blogspot.co.uk/2012/04/send-email-with-ssisdatabase-from-gmail.html
Better luck with your Googling in future :)

Exception 401 during export to Microsoft Exchange 2007

I have a vb.net application that communicates with Exchange 2000 & 2003 using WebDAV, but it does not work with Exchange 2007 SP2
Test Environment and configuration
Windows 2003, AD and domain controller, Exchange 2007 SP2
With Public Folders
OWA can be accessed with a browser
https://myserver.com/public/Contacts can be access through browser
The credential used by the vb.net application is NetworkCredential
Using administrator credentials
When I run my code it throws exception 401 unathorized. Using EWS, it works. At this stage, I don't want to convert the code to EWS. Has anyone got a solution?
are you using the correct URL for SoapUI?
Point it to https://server/ews/exchange.asmx. Replace server with the dns name of your Exchange server.