SPF and DKIM records for Mandrill on DigitalOcean - email

I have a VPS with DigitalOcean and I’m setting up SPF and DKIM records as per the Mandrill guide. However, it tells me my DKIM record is not valid.
The error message that I get is:
This TXT record doesn's look like a valid DKIM record. Try changing v=spf1 include:spf.mandrillapp.com ?all to v=DKIM1.
Here's the current TXT record for mandrill._domainkey.cool-house.nl:
v=spf1 include:spf.mandrillapp.com ?all
You just need to change the TXT record to this:
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrLHiExVd55zd/IQ/J/mRwSRMAocV/hMB3jXwaHH36d9NaVynQFYV8NaWi69c1veUtRzGt7yAioXqLj7Z4TeEUoOLgrKsn8YnckGs9i3B3tVFB+Ch/4mPhXWiNfNdynHWBcPcbJ8kjEQ2U8y78dHZj1YeRXXVvWob2OaKynO8/lQIDAQAB;
My records are:
Anyone know what I’m doing wrong?

This article solved my issue.
Tl;dr: add the SPF record without the domain name at the end.

As of this writing your values should be like this:
DKIM
Name= mandrill._domainkey
Value= v=DKIM1; k=rsa; p=YOUR_INFO_;
Note that in Name you drop your domain after the domainkey. DigitalOcean automatically adds your domain to the end.
SPF
Name= #
Value= "v=spf1 include:spf.mandrillapp.com ?all"
Make sure you have the quotes around the value. Mine didn't work without quotes.
in both cases make sure you are creating a TXT record

Related

Can i have two values in same DKIM record?

I have a private mail server so mail._domainkey.mydomain.com is already in use. I need to add value from Sendinblue to the same record. Is that possible?
DKIM value1
----------
DKIM value2

How to Add Followers Into The Recipient Field of an Email in Odoo?

I'm currently using Odoo 12.0+e-20181025 and I'm trying to add the followers of each ticket made in helpdesk into an automated email whenever it has been changed (not only in stage). So far I've tried some codes and managed to put the followers' emails into the body of the text, but in the recipient field.
Here is the code I used:
% for follower in object.message_follower_ids:${follower.email_formatted}%endfor
I can use it in the body text but I can't produce any result in the Email To field. Any help is greatly appreciated.
You could use ${str(object.message_partner_ids.ids).replace('[', '').replace(']', '')} in "To (Partners)" field.

MessageSummaryItems.Id vs MessageSummaryItems.Envelope.MessageId vs MessageId.GMailMessageId vs MessageSummaryItems.UniqueId

I am using MailKit to retrive emails from a Gmail account. However, I have been confused about the Id of an email.
I already looked at the documentation but could not find a complete explanation.
For example, I noticed UniqueId, is actually not unique; I mean if I move an email to a particular folder and fetch that email it has an Id (say 1). Then if I remove that email from the folder and add it again to the folder it gets andother UniqueId (e.g., 2)!
When I try to get MessageSummaryItems.Id the value for my emails are null.
The value for MessageSummaryItems.GMailMessageId is a big number that I don't know if it is realy uniquely assigned to that email.
The value for MessageSummaryItems.Envelope.MessageId seems a globally unique Id for that email.
I want more explanation about these Ids?
GMail does not support the OBJECTID extension, so MessageSummaryItems.Id will never get anything (e.g. the returned IMessageSummary.Id will always be null).
MessageSummaryItems.Envelope.MessageId is the Message-Id header value.
MessageSummaryItems.GMailMessageId is a GMail-specific identifier that is similar to the UniqueId but is globally unique for your account.
A UniqueId is a unique identifier, but is folder-specific. In other words, a message with a UniqueId of 5 in your INBOX folder will be different from the message with a UniqueId of 5 in your Starred folder, for example.
However, on GMail, a message in your INBOX with a GMailMessageId of 5 will be identical to a message in your Starred folder with the same GMailMessageId. They will both refer to the exact same message.
To understand why this is, GMail really only has 1 folder (All Mail) where all of your messages are located. All of your other folders, including INBOX, Drafts, Sent, etc. are just virtual views of the All Mail folder that filter out all messages that do not have the corresponding GMail Label.
That's why if you add a label to a group of messages, they will show up in your INBOX and in a new folder that gets created that matches the name of the label that you just created.

Redshift - Filter multiple Not in condition

I am trying to build a query that filters out any email that has gmail or yahoo in the name. I tried the below:
select email from users where email not like ('#gmail.com','#yahoo.com')
I get an error
ERROR - operator does not exist: character varying
I am using Redshift DB. Thanks..
where email not like '%#gmail.com'
and email not like '%#yahoo.com'
there is no combination of a list with like, it works only for exact matches (in), and don't forget the wildcard (%)
if the list is larger there is another solution with a given answer (can look it up here if so)

SugarCRM related Field

I have sugarCRM 6.5.20 OnDemand. I am in the Studio. I have a 1:1 relationship from Leads to Leads. I am trying to get the Primary Email address of the related Lead and display it in a calculated field.
It seems like the calculated field formula should look like:
related($emails,"email1")
When I do that I get the following error:
Invalid formula: related: Unknown Field : email1
The dropdown list doesn't list the email at all. How can I get the email? All of my web searches have proven ineffective.
Update:
I am willing to make the calculated field be the primary email address of the current lead. To do that I found 2 variables named $email_addresses and $email_addresses_primary and $emails. There is also a function called valueAt.
I tried to use valueAt(1,$emails) and valueAt(1,$email_addresses)
The validator accepted the syntax but the value was always empty.
Can I make a calculated field off of the leads primary email?
You won't get the Email field for the Studio's formula calculation. Email field is stored in a separate table and not in the module's table. It is just put in the Layout along with the other fields of the module, but it is not the same as other fields. All the Email Addresses irrespective of the modules are stored together in the email_addresses table and are related to respective module records in the email_addr_bean_rel.