Sending curl requests on calls

Alex Hackney

Active Member
Joined
Jun 2, 2014
Messages
219
Reaction score
40
I have a client who uses microsoft for their email. Every email I send them from the pbx gets sent to spam or denied by their spam protection.

I've tried everything to get it to work...
Adding the email to the safe list
Running postfix and sending through another provider
Running postfix and sending through gmail

I can't get them to get the email. So what I want to do, instead of continually forwarding them the mail from my gmail account, is send them a text message when they miss a call.

I can handle the actual sending but what I need is a way to hook in to the call logs, and know when a call was in and missed or not answered.

Whats the best way to do this?
 
If the PBX has a fixed IP address, you can add that IP to the SPF record. I also have created a connector in Exchange, and a rule in the mail flow that detects email coming from the IP, marks it with a high confidence level, and stops processing other spam rules.

(My solution fixes the issue of getting marked as spam, not the text message)
 
Before you give up on Email you should look at the sending site from the view point of mxtools it might be something simple.. https://mxtoolbox.com/domain

Can't you use the same hook that is currently being used to send ---
 
I'm not against doing it with email. It would be the ideal way.
What I was hoping to achieve was to have one domain send all mail for every pbx unit.

Would mean I would need to add all of the ips of the pbx servers to the spf record? Is there a max number?

I was using mailgun to send my emails with postfix, I can use anything though really. I also wouldnt mind going back to sendmail and just having the reply to address be my business address.

I'm just tired of having to deal with their voicemails cause ms is so anal vs google who accepts everything lol.
 
Alex,

If you know where to setup the call to the api, then you can use a simple PHP script to interface to mailgun or other services -- Here is one such example on git..

 
Yea that's what I was going to do. The problem is getting the voicemail to them. I put a ticket in with mailgun. I may just write a script that watches for the vms and emails it all through mailgun. Shouldn't be this complicated though.
 
Yea that's what I was going to do. The problem is getting the voicemail to them. I put a ticket in with mailgun. I may just write a script that watches for the vms and emails it all through mailgun. Shouldn't be this complicated though.
Can't you just use SMTP with mailgun? And how will using mailgun be any more successful than other providers or gmail?

Why not just use one of the delivery methods Microsoft gave in their documentation?
 
When you say they use Microsoft, you mean they have O365 (or whatever it is called now) with their own domain?

Have you tried to add the PBX to their whitelist so the SPAM system is bypassed? What is the actual errors you're getting when trying to send them email?
 
I tried mailgun with postfix and it wasn't working. Maybe I have the spf records buggered. I'll look in ot it.
 
Can't fix your curl issue - way out of my league.

You can, however, request that Microsoft (outlook, hotmail, etc.) stop blocking youi.

Support Request

I filled it out and send it, received a denial and replied to that email to protest (gently) and a person obviously looked at my email and removed my IP from being sent to SPAM.

I was surprised, but it worked. I'm self hosting my own mail server via a flipperhost VPS with an IP owned by quadranet. Microsoft and google blocked me due to other nearby IPs that are blacklisted (but not mine on any service).


If possible, this seems more simple than pushing a new rock up the hill.


Andrew
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top