Hello,
I need ssmtp working so my Contact Form 7 submissions don’t fail or hang.
I have an account set up and verified on Mailgun, and have added the setup info into the group_vars/all/mail.yml file:
# Documentation: https://roots.io/trellis/docs/mail/
mail_smtp_server: smtp.mailgun.org:465
mail_admin: dev@domain.com
mail_hostname: mg.domain.com
mail_user: postmaster@mg.domain.com
mail_password: "{{ vault_mail_password }}" # Define this variable in group_vars/all/vault.yml
When provisioning the server everything seems fine and there is no issue during the ssmtp task. I’ve also tried different ports for the smtp server and they don’t seem to change the outcome. I’ve also left off the domain on the user variable and that also didn’t seem to matter.
However my CF7 forms still do not function. I have also installed the Mailgun WP plugin and when I put in my information and attempt to test the configuration, it always fails.
This site is using a Lets Encrypt SSL, if that has any impact.
I am not experienced with Mailgun, and I haven’t set up anything beyond adding the domain and DNS records and verifying them and activating the account. Is there additional setup required?
Thanks for your assistance.