For some reason Mailhog is not working for me in development. First time this happens.
Yes I have SSL enabled locally and yes I added the hsts_max_age parameter like stated in the docs and re-reprovisioned my local VM.
I also cleared the hsts cache in my browser for the domain, but I just keep getting a
ERR_CONNECTION_REFUSED
error.
Also Gravityforms gives me a warning:
WordPress was unable to send the notification email. Could not instantiate mail function.
So I verified my sSMTP credentials on staging and I can send emails from there with these.
Then I ssh’d into my dev VM and I noticed sSMTP is not installed, is this normal behaviour?
What else could be happening?
Maybe related; this is my first project on my M1 Macbook Pro with Parallels Pro.
Jup, that was it! I did have to destroy my VM though.
Thing is, my colleague doesn’t have a M1 chip, so if he would re-provision his VM, Mailhog won’t work for him. Is there a way to add these lines conditionally based upon your arch?
I also encountered this on my M1 mac. I added the above to the top of dev.yml and created aarch64.yml and added the same two lines to it. Upon reprovisioning, I confirmed that the architecture matched the filename. The script was successful but the connection to mailhog is still refused.
Are there other files I need to touch besides dev.yml and aarch64.yml?