I've been asked to set up SMTP using office 365. I've created a generic email account, given it a licence for exchange. I've enabled "Authenticated SMTP" in the user settings as well.
I've sent over:
E-Mail Address
SMTP Host: SMTP.Office365.com
SMTP Port: 587
SMTP Username: which is the email address
SMTP Password:
I've tested it on smtper.net and I keep getting:
"SMTP send error. The operation has timed out."
If I untick "Use Secured Connection", then I get an error message:
"SMTP send error
Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail \[YT3PR01CA0019.CANPRD01.PROD.OUTLOOK.COM\]"
I'm sure I'm either missing something or I've not done something correctly.
This is the information I was sent from the original email:
\*\*SMTP Email Account Information
We would like to set up your email account details so that you are ready to go with our email notifications. Please can you set up a generic email account (e.g. portal#partner.co.uk) that we can use to enter the details into our system? We will need the following information:
Email Address
SMTP Host
SMTP Port
SMTP Username
SMTP Password\*\*
E-Mail Address
SMTP Host: SMTP.Office365.com
SMTP Port: 587
SMTP Username: which is the email address
SMTP Password:
You could narrow down the issue to find whether the issue is with the MS end or your application end. Let's try to send an email via PowerShell. Here are the steps and commands.
Step 1: Connect with Microsoft Exchange
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName 'admin email'
Step 2: Send test email
$cred = Get-Credential –UserName 'which is the email address'
Send-MailMessage -To "Any email address" -From "which is the email address" -Subject "Test Email" -BodyAsHtml "Successfull !!" -SmtpServer "smtp.office365.com" -Port 587 -Credential $cred –UseSsl
Step 1 will download the Exchange module and connect you with the Exchange admin
Reference MS docs
Send-MailMessage , Connect to Exchange Online PowerShell
If it is not successful please contact Microsoft to check your Tenant authentication status.
Related
I installed Redmine 2.6.1.1 using Bitnami on Win 7, but couldn't figure out why redmine cannot send any email. I edited the configuration.yml file under \redmine-2.6.1-1\apps\redmine\htdocs\config and tried to send a test mail via both Gmail and our own e-mail server, but it didn't work.
My configuration.yml file is just like below:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: smtp.gmail.com
port: 587
domain: smtp.gmail.com
authentication: :plain
user_name: "someusername#gmail.com"
password: "somepassword"
In this configuration the error is:
an error occurred while sending mail (a socket operation was attempted to an unreachable network. - connect (2))
If I change the address and domain values with IP addresses then the error becomes:
an error occurred while sending mail (Permission denied - connect(2))
If I try to configure it with the values of our own mail server, then I still get the second error (permission denied).
I tried it in another PC and it worked. However, the same configuration in the old PC, it does not work. 2 PCs are in the same network and the only difference between 2 installations is that I did not configure mail settings during the Bitnami installtion in the old machine. After the installation was completed, I modified configuration.yml. However, in the new PC, I configured it during the installation.
I could solve the problem finally. The reason is McAfee security. When I disable McAfee's "Access Protection" task, it worked without any problem.
My company just installed Blue Coat's Web Security Service and put the Unified Agent on all our computers. It filters our HTTPS traffic w/ a CA that was added to all the computers. We added the certificate to the cacerts.pem file.
We can no longer push/pull from our mercurial host (Kiln). We get the message abort: authorization failed. We have verified the credentials and verified that we can access the site from a web browser. I have even tried doing a push with --insecure in case it was a certificate error. What else can I do?
We have a mix of Windows 7 an Windows 8 computers.
Output of -v --debug
C:\Users\me\Documents\Development\Client Name>hg pull -v --debug https://mycompany.kilnhg.com/Code/Client/Group/New-Development
using https://mycompany.kilnhg.com/Code/Client/Group/New-Development
sending capabilities command
using auth.mycompany.kilnhg.com.* for authentication
mycompany.kilnhg.com certificate successfully verified
using auth.mycompany.kilnhg.com.* for authentication
http authorization required for https://mycompany.kilnhg.com/Code/Client/Group/New-Development
realm: kiln
http auth: user me#domain.com, password ************************
using auth.mycompany.kilnhg.com.* for authentication
mycompany.kilnhg.com certificate successfully verified
http auth: user me#domain.com, password ************************
using auth.mycompany.kilnhg.com.* for authentication
mycompany.kilnhg.com certificate successfully verified
http auth: user me#domain.com, password ************************
using auth.mycompany.kilnhg.com.* for authentication
mycompany.kilnhg.com certificate successfully verified
http auth: user me#domain.com, password ************************
using auth.mycompany.kilnhg.com.* for authentication
mycompany.kilnhg.com certificate successfully verified
http auth: user me#domain.com, password ************************
using auth.mycompany.kilnhg.com.* for authentication
mycompany.kilnhg.com certificate successfully verified
http auth: user me#domain.com, password ************************
using auth.mycompany.kilnhg.com.* for authentication
mycompany.kilnhg.com certificate successfully verified
abort: authorization failed
I changed my Bitbucket password based on 1Pass's watchtower recommendation. Ever since, I can't pull / push any of my repos, although I can login via a browser. I've tried both HTTP and SSH, and neither work.
Here is a sample output.
hg pull --debug https://caliChander#bitbucket.org/caliChander/cs1
using https://bitbucket.org/caliChander/cs1
http auth: user caliChander, password not set
sending capabilities command
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
using auth.bitbucket.* for authentication
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
abort: authorization failed
I'm curious as to why it says "password not set" when my ~/.hgrc looks something like this:
[ui]
username = First Last <some.email#random.com>
[auth]
bitbucket.prefix = bitbucket.org
bitbucket.username = caliChander
bitbucket.password = some_very_long_password_here
bitbucket.schemes = http https
[web]
cacerts = /etc/hg-dummy-cert.pem
My gut feeling is that certain characters aren't allowed in the password field? This was randomly generated via 1Pass. Is this so?
Just in case it's needed, the .hg/hgrc in the cs1 repo looks like this:
[paths]
default = https://caliChander#bitbucket.org/caliChander/cs1
I'm on OS X Mavericks. Thanks for the help!
I'm curious as to why it says "password not set"
Because URL may contain both username and password, your https://caliChander#bitbucket.org/ have only username part
[ui] section is irrelevant in auth-stage (it's just informative data, used for defining userdata, shown in log for local commits), only username-password from [auth] used for authentication. You can temporary disable password in hgrc and enter it by hand
I have an older PHP system that uses SMTP commands for mail. We are switching over to gmail and I need to authenticate. I can connect to the server. Unfortunately, I get a 530-5.5.1 Authentication Required. Learn more at" message when I send the MAIL FROM command in my PHP code.
if (fputs($this->Socket, "MAIL FROM: \"admin\" <admin#yourdomain.com>\r\n")<0){
I cannot find a clear example of adding authentication. I read at http://www.faqs.org/rfcs/rfc2554.html that I must add AUTH= to my MAIL FROM command. I am having troubles interpretting what to put in the AUTH=
Examples:
C: MAIL FROM:<e=mc2#example.com> AUTH=e+3Dmc2#example.com
S: 250 OK
Do you know the format of authentication?
There are several ways to do SMTP authentication, but one of them is to use the SMTP AUTH LOGIN command. The transcript of the session would look like this:
host: 220 banner_here
client: EHLO StephaniePC
host: 250-name.of.host hello [clientip], pleased to meet you
host: 250-AUTH LOGIN PLAIN
host: 250 OK
client: AUTH LOGIN
host: 334 VXNlcm5hbWU6
client: am9lc21pdGg=
host: 334 UGFzc3dvcmQ6
client: bGV0bWVpbg0K
host: 235 2.7.0 Authentication successful
client: MAIL FROM: <sender#senderdomain.tld>
host: 250 2.1.0 Ok
client: RCPT TO: <recipient#recipientdomain.tld>
host: 250 2.1.0 Ok
client: DATA
host: 354 End data with <CR><LF>.<CR><LF>
....
The encoded strings that you see above are base64 encoded. If you have a mail client that is capable of logging, you can try sending a message through gmail, and the transcript of the session should look like the transcript above.
FYI, instead of writing code yourself to do SMTP authentication, you might want to use phpmailer. phpmailer can do SMTP authentication, and it's very lightweight and easy to use.
Please i want to know how to configure the SMTP for Swiftmailer in Symfony2.
I use FOSUserBundle, and i enabled the activation by email after registration, but after registration i get the message that says the activation email has been sent, without receiving any mail.
i use Servage.net hosting, and i have tried this configuration :
app/config/config.yml
# Swiftmailer Configuration
swiftmailer:
transport: smtp
host: smtp1.servage.net
auth_mode: login
username: webmaster#myEmailAtServage.com
password: mypassword
port : 25
Thanks.
Thanks, now the Swiftmailer works with this configuration:
# Swiftmailer Configuration
swiftmailer:
transport: %mailer_transport%
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%
port : %mailer_port%
encryption: ssl
auth_mode: login
parameters.ini
mailer_transport="smtp"
mailer_host="smtp2.servage.net"
mailer_user="me#mywebsite.com"
mailer_password="myPassword"
mailer_port=465
You can try smtp2 with ssl/tls
From the servage wiki: https://www.servage.net/wiki/SMTP_server
The mail server smtp2.servage.net has support for TLS and SSL, using standard SSL port 465