There are a few posts on mailgun / trellis, but none of them answer a particular question I have…
I have mailgun working on multiple sites with the following config, but the emails are often flagged as junk which makes me wonder if the following is fully correct.
My question: Is mail_admin or mail_user supposed to be the actual email that is sending the emails (e.g. no-reply@example.com) rather than them both being the default SMTP login (i.e. postmaster@example.com)? If so, which one?
Yeah, I only changed it to example.com for this post.
I’ve created, verified and double checked everything, and all has been working since day one… But a good portion of the mail gets flagged as junk (mosty with hotmail accounts) and I read somewhere that a mismatch of sending addresses can be the cause of that, which is what brought me here.
You could also check whether you’re changing the “from” address in your form tool. Gravity Forms lets you change the “from” which would look suspicious to many spam tools.
I probably should have mentioned, but it’s actually woocommerce that is sending the emails in the projects in question. Similarily, I have set the “from” portion of it to something along the lines of no-reply@example.com, which doesn’t match the postmaster@example.com in the trellis config.
This is where my initial question comes in; If these values should match eachother to not look “suspicious”?