How to use SendGrid SMTP when application requires email address as username? - smtp

SendGrid recently moved to a setup where the username for any account to use the SMTP send is "apikey" and the password is the actual apikey. However, I have an application that requires an email address as the SMTP username. Does my SendGrid account have a "virtual email address" that I could use for the username in place of apikey?

There is not a virtual email address to be used as the username for the SMTP request. The username must be "apikey".
You will need to take this up with the application you are trying to use as there is no reason to block SMTP servers with usernames that aren't email addresses.

Related

Odoo12: Setup SMPT Server with Sendinblue in Odoo. What I missed here?

I am trying to setup Sendinblue and use it as an SMTP server for my marketing and general Odoo 12 email messaging.
I setup every thing in Sendinblue and tested the SMTP Server in Odoo and got a "sucess" message under Settings / Technical / Outgoing Mail Servers.
For this I setup an external smpt server with the following data:
SMTP Server: smtp-relay.sendinblue.com
Email: my sendinblue email
Password: Password provided by sendinblue
Port: 587
Security: TLS (STARTTLS)
I can test the connection with success and set this SMTP Server as the server for sending email campaigns from Email Marketing / Settings / General Settings
Created a test email campaign and tried to send it and test it with no luck.
When Odoo tries to send the message, returns a "not delivered email" message with a unique reference and my local PC name, something like:
989345297097442.1625436965.401543280300903-openerp-reply_to#MYPC-NAME
I confirm sender email is registered and validated in Sendinblue. Using the same email as sender in Odoo.
Tried to do the same with my personal gmail account but even activating less secure apps, no message is sent from my instance.
What could be wrong?
I found the problem.
I had to verify the domain name I use for sending emails from Sendinblue service.
I have done it Senders & API main menu option on "domain" tab.
After verifying my domain name, everything is running fine

How to configure SMTP to save send mails?

can you please tell me how to configure SMTP to save send mails in Sent Items folder of my Mail.
NOTE: I am using yahoo mail credentials to send mails.
That is not possible using SMTP only.
SMTP is just for message delivery, it has no knowledge of your inbox and its folders tructure.
When you send a mail using your mail client (Outlook, phone, gmail, etc), it will :
use SMTP to send your mail
then use a different protocol (usually IMAP or MAPI) to move the message to your "Sent items" folder.
There are some exceptions : some mail providers will automatically copy to your sent items all messages sent by your account through their SMTP server. I believe gmail does that. that's not as easy as you maythink, since one must ensure the message is not ciped twice (once by the email client, another one by the SMTP server).

How can we check the data sent to the email client is in encrypted or not?

I have a forgot password page that sends the auto generated password to the given mail id, i have to check the this password travel encrypted in network or not.
According to your situation the when the password is sent to an email address via the forget password option then there is no way you can check it that what the server sends to the email client.
You forget password is received by the web server and the server then connects to email server and you only get the confirmation that the password has been sent to the requested email or not. The connection between the web server and the email server is not intercept able by the client side until and unless you lye between the web server and email server.
If you have curiosity about the email sending mechanism technique then refer to this article here:
http://www.digitaltrends.com/mobile/can-email-ever-be-secure/

The IP you're using to send mail is not authorized to send email directly to our servers

hi i wanted to send mail via smtp protocol to one of my
gmail's accounts...
i tried but finally it occurred and error :
telnet> open alt4.gmail-smtp-in.l.google.com 25
Trying 74.125.131.27...
Connected to alt4.gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP b4si2095585vdw.57 - gsmtp
HELO stackoverflow.com
250 mx.google.com at your service
MAIL FROM: <test#stackoverflow.com>
250 2.1.0 OK b4si2095585vdw.57 - gsmtp
RCPT TO: <■■■■#gmail.com> // filtered ;)
250 2.1.5 OK b4si2095585vdw.57 - gsmtp
DATA
354 Go ahead b4si2095585vdw.57 - gsmtp
test
ok
it done
.
550-5.7.1 [5.22.81.102] The IP you're using to send mail is not authorized to
550-5.7.1 send email directly to our servers. Please use the SMTP relay at your
550-5.7.1 service provider instead. Learn more at
550 5.7.1 http://support.google.com/mail/bin/answer.py?answer=10336 b4si2095585vdw.57 - gsmtp
Connection closed by foreign host.
so now how can i send mail without having this problem ?
This is because Google will reject any emails sent from IP in the spamhaus database.
What you need to do is go to http://www.spamhaus.org/lookup/ and follow the instruction there to remove your server ip from spamhaus database.
Please also follow this guide: Prevent mail to Gmail users from being blocked or sent to spam
You can find the answer at the link in the last line of the Google mail served response:
'The IP you're using to send email is not authorized...'
In order to prevent spam, Gmail refuses mail from IP addresses that are not authorized to send mail. The determination of whether or not an IP address is authorized to send mail is made by the ISP that provides you with the IP address. This list typically contains consumer IP ranges offered for dialup, DSL, or other broadband access.
What can I do to fix this?
Your ISP may provide SMTP relays which will accept mail from your IP, and these servers should be authorized to send mail. Some ISPs may provide a way to get an IP that is authorized, either by upgrading to business class service or static IP service. You should reach out to your ISP to see what options are available.
Another alternative is to send mail through your own domain’s servers, either by configuring them to allow relay from your IP address, or by using MSA (mail submission agent). Learn how to use Gmail to send mail from a different address.
Please note that we are unable to whitelist IP addresses or otherwise make exceptions.
In other words, if your IP address is not authorized by your ISP to send mail, you should send your mail through:
Your provider mail server (SMTP relay)
Your own domain mail server.
Mail servers must meet a number of requirements to prevent their messages from being blocked, e.g. have a PTR record. The use of authentication methods such as SPF, DKIM or DMARC minimize the chance that messages are marked as spam.
I had this problem with one of my hotmail addresses, using Thunderbird on Kubuntu. Tried changing sever settings, passwords etc to no avail. In desperation, I deleted the offending email address through "account settings" "account actions" (bottom left of window). If you are on POP3 you will loose all your emails, so make sure you're on IMAP.
You then just select "add email" in Thunderbird and the email is put back as it should be and works perfectly.

Gmail does not list sent items if mail sent from custom smtp server

We have our own company's smtp server.
When we send mails using the above smtp server, the mails do not list in the gmail's sent items.
The mail is sent using asp.net
What can be done?
Instead of using your own SMTP server, use the SMTP server from GMail. How else can Gmail know that you have send an email.
You have to supply credentials to use Google's SMTP server, so you must store the user's username and password (from Gmail).