Hi i am implementing IMAP mail client. does gmail or yahoo mail server does support IMAP NOTIFY command or how to check a particular mail server does support IMAP NOTIFY command.
I tried to get capabilities.
Capabilities for Gmail/Yahoo
Gmail :
CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN
Yahoo :
[CAPABILITY IMAP4rev1 ID NAMESPACE X-ID-ACLID UIDPLUS LITERAL+ CHILDREN XAPPLEPUSHSERVICE XYMHIGHESTMODSEQ AUTH=PLAIN AUTH=LOGIN AUTH=XYMCOOKIE AUTH=XYMECOOKIE AUTH=XYMCOOKIEB64 AUTH=XYMPKI]
one more question is i could not able to able to see IDLE in yahoo CAPABILITIES. its mean yahoo does not support IDLE? and i could not able to NOTIFY command from both. pls help me out....
The correct way to check is to list the capabilities, so your conclusions are correct: Gmail supports IDLE only, yahoo supports neither NOTIFY nor IDLE.
Related
Hi I am trying to fetch email from gmail accout by using load runner. I have tried ,IMAP, POP3 protocol.
Using Vugen 2020
IMAP Protocol
I used below code:
imap_logon("GmailLogin","URL=imaps://{UserEmailID}:{Password}#imap.gmail.com:993","STARTTLS",LAST);
imap_select("SelectInbox","Mailbox=INBOX",LAST);
getting below error:
Action.c(5): Error (-205597): Failed to receive IMap welcome message from imap.gmail.com:993.
I have used gmail app password and also enabled IMAP setting in gmail.
POP3 PROTOCOL
pop3_logon("Login", "URL=pop3s://{UserEmailID}:{Password}#pop.gmail.com:995","STARTTLS", LAST);
getting below error:
Action.c(6): Error (-205685): Failed to establish a secure POP3 session.
"I have used gmail app password and also enabled IMAP setting in gmail."
Please read both the license agreements for Google regarding the use of automation against their services outside of published API interfaces, and the LoadRunner license agreement on the use of their tool against systems you do not own, manage, control or have written permission from those that do have those characteristics.
By my reading you are in violation of both Google and Microfocus end user agreements and should not be supported in your efforts.
our team needs somehow to detect from our python code messages that got bounced (permanently) and add them to our bounce list in order to not send them in the future anymore. So for example when we send a notification to a non-existent mailbox expected behavior is to receive a bounce mail from the message system which will provide some info for the user and admin diagnostic info. In order to detect permanently bounced messages we tried to use the python library which is called flufl.bounce and during the investigation I was able to detect bounce messages when I scanned my personal Gmail account via IMAP and the library worked perfectly. However, it’s not possible to use IMAP in our use case for our shared mailbox in azure Since basic authentication is not supported anymore and OAuth client credential flow hasn’t been implemented yet for IMAP. Therefore instead of IMAP, we are using Microsoft graph API which supports client credential flow and we are able to get messages from our mailbox. However, the DSN detector is flufl.bounce library does not recognize such messages as bounced even though from admin diagnostic information it’s clear that message is bounced. I've made some investigation and found out that the message does not include the following headers which should present in response in order to recognize it as a bounce. For example:
Content-Type: message/delivery-status
Reporting-MTA: dns; googlemail.com
Arrival-Date: Tue, 26 Oct 2021 02:35:28 -0700 (PDT)
X-Original-Message-ID: <****>
Final-Recipient: rfc822; ********************
Action: failed
Status: 5.1.1
Diagnostic-Code: SMTP; 550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 https://support.google.com/mail/?p=NoSuchUser
Last-Attempt-Date: Tue, 26 Oct 2021 02:35:28 -0700 (PDT)
When I check bounce messages via outlook view source I can find this header, however, graph api response does not contain them. I tried to fetch the eml version of mail via graph api however I didn't find these headers. Is it possible to add them to the response somehow? or should we wait till client credential flow for IMAP will be released?
Thanks for reaching out. To my knowledge, fetching these headers is not currently supported by MS Graph, would you consider filing a feature request on the Microsoft developer platform so this can be looked into?
In the meantime, you might look into using Microsoft Outlook Messaging API (MAPI) to detect bounced messages.
Let me know whether this helps and if you have further questions.
I'd like to get the details of messages that was sent across by some User X. I am able to get the messages that were received by this User X using Graph API and the environment is well set up.
I am looking for some endpoint (Graph API) that gets me the details of "Sent Items" for this User X. Is there any endpoint provided or any workaround for the same?
Thanks in Advance !
You can get messages from the SentItems folder of a Mailbox using
https://graph.microsoft.com/v1.0/users('user#domain.com')/mailfolders('sentitems')/messages
I'm having issue with https://graph.microsoft.com/v1.0/users/<userId>/sendMail.
I get 202 Accepted as response, however when I browsed to the user's mailbox above, I'm receiving delivery failure notification as below:
Delivery has failed to these recipients or groups:
<username>#outlook.com
Your message wasn't delivered because the recipient's email provider rejected it.
Remote Server returned '550 5.7.708 Service unavailable. Access denied, traffic not accepted from this IP. For more information please go to http://go.microsoft.com/fwlink/?LinkId=526653 AS(7171) [SYBPR01MB4428.ausprd01.prod.outlook.com]'
When I logon to Outlook and send email to <username>#outlook.com from <userId>'s Outlook, the email was sent successfully.
Anyone know what's happening here?
I've tried to add a SMTP connector, but doesn't fixed the problem. When SMTP connector send an email to test Outbound Email, it works fine as I can receive at <_username_>#outlook.com.
If you follow the link provided, it explains what is happening
5.7.708 Access denied, traffic not accepted from this IP
The majority of traffic from this tenant has been detected as suspicious and has resulted in a ban on sending ability for the tenant.
Ensure that any compromises or open relays have been resolved, and then contact support through your regular channel.
For more information, see Fix email delivery issues for error codes 5.7.700 through 5.7.750 in Exchange Online.
I have configured smtp settings in web.config and I was able to successfully send email when working on my local machine. But when I uploaded the code on the server, its giving me following exception
Mailbox unavailable. The server response was: 5.7.3 Requested action aborted
Meanwhile, I also received an email from Microsoft telling me that an attempt to login to my account from a new location was blocked. I clearly understand the problem that server is in a different part of the world than where I usually login to a Windows Live account. That's why it is blocking the account to login. But I want it to login and send email using my credentials on from remote server. There must be some settings in Windows Live account but I failed to find one.
Contacting Hotmail Support Center first to find out if its really possible what you are intending to do might be helpful. I think if hotmail web administration has put a security check, it must be for a purpose of stopping such remote login activities.