Page 1 of 1

I can send mail, but can't seem to receive it (Mailjet)

Posted: Sun Dec 31, 2017 6:42 am
by dlprentice
Hello,

I have setup lolfights.com and have added Mailjet as a smarthost following the instructions here: https://vvcares.com/w/configure-exim4-s ... t-mailjet/

At this point I can send mail and it arrives nearly instantly.

Sending mail to any of my domains however is not successful. They do appear to succesfully send but are not actually delivered. I see not activity in the /var/log/exim4/mainlog file either for receiving. Since my ISP blocks port 25 I suspect this is the reason. So Mailjet is my solution, but I seem to be stuck. I have a ticket open with Mailjet, but I believe someone here has already gone through this scenario and can hopefully enlighten me.

Here is how the default MX record looks

Code: Select all

@

MX

10 

lolfights.com.
From my understanding I must setup SPF, and DomainKeys/DKIM with mailjet, but sadly I've been unable to do this properly in VestCP. If anyone can help please reply.

Thanks.

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Sun Dec 31, 2017 1:37 pm
by mehargags
Do you use DNS zones provided by VestaCP or do you host DNS somewhere else ?
Mailjet provides you the required records... just set them up wherever you host your DNS

Please provide specific problem so we can help you further

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Sun Dec 31, 2017 9:05 pm
by dlprentice
mehargags wrote:Do you use DNS zones provided by VestaCP or do you host DNS somewhere else ?
Mailjet provides you the required records... just set them up wherever you host your DNS

Please provide specific problem so we can help you further
I use the DNS zones provided by VestaCP. I was able to get the SPF and DKIM records to show up as good on Mailjet's end (I was simply not waiting long enough). As for being able to send but not receive that is still a problem, and the primary problem I have. Using the below code I was able to get exim to successfully send mail. I receive it on my gmail account. When I reply I never see it on my server. That is where I am stuck now.

Code: Select all

>> begin authenticators
>> begin routers
>> begin transports
Add the below additional entries into that file.

Under >> begin authenticators
mailjet_login:
driver = plaintext
public_name = LOGIN
client_send = : Username (API Key):Password (Secret Key)

Under >> begin routers
send_via_mailjet:
driver = manualroute
domains = ! +local_domains
transport = mailjet_smtp
route_list = * in.mailjet.com:587;

Under >> begin transports
mailjet_smtp:
driver = smtp
port = 587
hosts_require_auth = *
hosts_require_tls = *

Finally – Restart your exim4 / MTA
service exim4  restart

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Mon Jan 01, 2018 9:48 am
by mehargags
so to receive mail for your domain, you need to setup your MX records.
Check if your MX records are published properly https://toolbox.googleapps.com/apps/dig/#MX/

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Mon Jan 01, 2018 6:19 pm
by dlprentice
mehargags wrote:so to receive mail for your domain, you need to setup your MX records.
Check if your MX records are published properly https://toolbox.googleapps.com/apps/dig/#MX/
My MX records look like this:
Do they appear right to you? I actually don't know what makes a properly published MX record.

Code: Select all

id 29087
opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
lolfights.com. IN MX
;ANSWER
lolfights.com. 14399 IN MX 10 mail.lolfights.com.
;AUTHORITY
;ADDITIONAL

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Mon Jan 01, 2018 9:03 pm
by mehargags
yes they do look right presuming mail.lolfights.com has correct A record to the IP of your server

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Tue Jan 02, 2018 1:43 am
by dlprentice
mehargags wrote:yes they do look right presuming mail.lolfights.com has correct A record to the IP of your server
It points to my local IP which translates to my public IP so that does appear correct "192.168.1.50 ~ 66.56.26.151".

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Tue Jan 02, 2018 2:09 am
by dlprentice
mehargags wrote:yes they do look right presuming mail.lolfights.com has correct A record to the IP of your server
My ISP blocks port 25. I'm thinking this is my problem. What do you think?

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Tue Jan 02, 2018 9:41 am
by mehargags
If port 25 is blocked you should have problem sending also as it would knock out any handshake on Port 25

If you wish I can check your server. PM me:
1. complete information of your domain names in questions
2. root SSH
3. VestaCP Admin
4. Email ID to check and its password
5. Name of your Provider where your server is hosted, May need to check their KB

Re: I can send mail, but can't seem to receive it (Mailjet)

Posted: Tue Jan 02, 2018 1:08 pm
by dlprentice
mehargags wrote:If port 25 is blocked you should have problem sending also as it would knock out any handshake on Port 25

If you wish I can check your server. PM me:
1. complete information of your domain names in questions
2. root SSH
3. VestaCP Admin
4. Email ID to check and its password
5. Name of your Provider where your server is hosted, May need to check their KB
I have Mailjet setup as a smarthost on port 587 through EXIM4's configuration file using the information posted earlier on this thread. So sending makes sense. Since all servers use 25 to send mail I guess I'm screwed unless I get that port unblocked. This must be the issue as I setup a temporary server at a datacenter yesterday, and VestaCP sent mail and worked right out of the box! Sorry to waste your time.