How to access ymail in gmail completely? - email

I am following the details provided here (http://email.about.com/od/gmailtips/qt/How-To-Access-Yahoo-Mail-In-Gmail.htm) to access my ymail in gmail.
But in the step “Send mail through your SMTP server”
I ma getting the following error.
Authentication failed. Please check your username/password.
[Server response: DNS Error: 4476320 DNS type 'aaaa' lookup of http://smtp.yahoo.in (http://smtp.yahoo.in) responded with code NXDOMAIN 4476320 DNS type 'a' lookup of http://smtp.yahoo.in (http://smtp.yahoo.in) responded with code NXDOMAIN code(0) ]
How to get rid off this.
PS: I have already turned on “Allow apps that use less secure sign-in”

I was having the same problem when I was trying to configure the same.
Change the SMTP server settings to: smtp.mail.yahoo.com
rest is ok. now you don't face any problem. happy forwarding

Related

SSL for mail server

I don't know if I am asking this in the right place.
I have an SSL cert for my website, and I am trying to setup a mail server (same domain) using the same cert.
I am using Postfix and Dovecot. When I try logging in from Evolution mail client, I get an error "Peer failed to perform TLS handshake". When I try an online service to verify I get "Recipient address rejected: User unknown in local recipient table."
I guess my actual question is, can I actually use the same SSL cert for my website and my email server?
What do I do to debug next?
You can use a certificate you have for the web server also for your mail server as long as it matches the hostname you use to access your mail server. Of course the certificate need to properly setup at the mail server, i.e. include the necessary intermediate certificates similar to how it is (hopefully) setup on the web server.
I am using Postfix and Dovecot.
This means you need to take care of multiple configurations, both for SMTP in Postfix and IMAP/POP3 (whatever you use) in Dovecot. And in all cases the certificates subject/SAN must match the hostname you use to connect to the server.
When I try logging in from Evolution mail client, I get an error "Peer failed to perform TLS handshake".
There are not enough information about this setup to find out what exactly is causing the TLS error. It is not even clear if the error is caused when retrieving mail (IMAP/POP3, i.e. Dovecot) or while sending (Postfix).
When I try an online service to verify I get "Recipient address rejected: User unknown in local recipient table."
This has nothing to do with TLS at all. The test server simply tried to use a recipient which your mail server (Postfix) will not accept.
What do I do to debug next?
The next steps would probably be to check if the certificate matches the names you use in the first place and to look into log files for error messages or warnings. Following steps depend on what the result of these steps is.

jmeter mail reader sampler connection issues

I am trying to check my gmail with a mail reader sampler in jmeter and enabled both imap and pop3 in my gmail account.
Everytime I try to connect to gmail, I keep getting this error:
Response message: javax.mail.MessagingException: Connect failed;
nested exception is: java.net.ConnectException: Connection refused: connect
This is my query:
Click me
I tried both SSL and TLS option at the bottom. I tried adding and leaving out the port. Also experimented with leaving out "#gmail.com" portion in my email address. And also wrote the protocol as pop3 and as pop3s. Not sure why it won't work.
I am on a corporate wifi, I don't know if that could be the thing causing the issue.
First of all, make sure JMeter can connect the Internet. To validate it add HTTP Request sampler and insert any Internet IP address or hostname in the relevant input, i.e. example.com
If the request succeeds - double check Mail Reader Sampler settings. If request is failing - most likely you're sitting behind corporate proxy and need to configure JMeter to use it.
In regards to the Mail Reader Sampler configuration for POP3 protocol should look as follows:
Protocol: pop3s
Host: pop.googlemail.com
Port: 995
Username: username#gmail.com
Password: your account password
Security Settings: Use SSL
You may also need to turn on access for less secure apps in your Google Account settings
See Load Testing Your Email Server: How to Send and Receive E-mails with JMeter
Thanks for your response! It was a wifi issue so I had to use the public wifi offerred by the company to make it work.
Also, note that I got it to work with imap instead. Here are the configs I used:
Protocol: imaps
Host: imap.gmail.com
Port: 993
Username: username (don't include #gmail.com)
Password: your account password
Security Settings: Use SSL

Authentication failed. Please check your username/password. [Server response: DNS Error: Domain name not found code(0) ]

i am trying to configure my host mail to gmail. POP3 is working. But while trying to configure it shows following error. DNS working perfectly and i can able to receive mails via POP3 in gmail. Only i cannot able to reply from this same mail id, which is receiving.
PORTs are tried is : 587 and 465
both are not working. Please help me out
Authentication failed. Please check your username/password.[Server response: DNS Error: Domain name not found code(0) can]
what will i have to do?
It was happen because the service was down at the time. Later , I have configured again in 587 port with Secured connection using TLS (recommended) method.

use smtp.mydomain.com to forward to smtp.gmail.com?

I am using google apps for email. I can send email out through c# code fine with smtp.gmail.com.
I would like to be able to use the name smtp.mydomain.com instead, but still have it go to smtp.gmail.com. I tried just seeing a CNAME in my DNS settings, but I get this error:
"The remote certificate is invalid according to the validation procedure."
Any ideas?
Thanks.
Yes, you can't, the TLS certificate used to communicate privately with the remote SMTP server is signed with smtp.gmail.com. The only solution is to create a SMTP relay with sendmail for example on your own server.

Using authsmtp from a Grails server

This is quite a specific question, and I have had no luck on the grails nabble forum, so I thought I would post here. I am using the grails mail plug-in, but I think my question is a general one about using authsmtp as an email gateway from my server.
I am having trouble sending mail from my app using authsmtp. I have installed and configured the mail plugin and was originally using my ISP's SMTP server to send mails. However when I deployed to AWS EC2 this failed because my elastic IP was blocked by the SMTP host. So I bought myself an authsmtp account and set up my server email address as an accepted one at authsmtp.
I then changed my configuration in SecurityConfig.groovy to point to the authsmtp server that I had been designated...
mailHost = "mail.authsmtp.com"
mailUsername = "myusername"
mailPassword = "mypassword"
mailProtocol = "smtp"
mailFrom = "valid-authsmtp-address#mydomain.com"
mailPort = 2525
...and I'm just trying to get this to work locally before I deploy back up to AWS. Sending mail fails and in my log I have this exception:
2010-02-13 10:59:44,218 [http-8080-1] ERROR service.EmailerService - Failed to send emails: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 513 5.0.0 Your email system must authenticate before sending mail.
org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 513 5.0.0 Your email system must authenticate before sending mail. at
com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
I'm a bit lost since the username and password I provide in the
configuration are definitely correct.
A terse and not very helpful conversation with authsmtp support suggests
that I need to MD5 and/or base64 encode my credentials before sending, so my
question is in three parts...
1) any idea what's going on with the failure and why that message is
appearing?
2) how would I encode the credentials to pass to authsmtp and how would I
configure that for the mail plugin
3) has anyone successfully connected and sent mail through authsmtp from the
mail plugin and specifically from AWS EC2?
When sending Email using the Acegi plugin, under the hood a Spring JavaMailSenderImpl is used. Looking at its docs:
Note that the underlying JavaMail Session has to be configured with the property "mail.smtp.auth" set to true, else the specified password will not be sent to the mail server by the JavaMail runtime. If you are not explicitly passing in a Session to use, simply specify this setting via setJavaMailProperties(java.util.Properties).
So append to your SecurityConfig.groovy the following:
javaMailProperties = [ "mail.smtp.auth": true]
I didn't find a solution to this using the Grails mail plugin, so I'm still interested in an answer, however I did find a workround. It may be useful in case anyone else follows me down this lonely path.