I want to be able to send emails with drupal 8 using postfix. The latter is configured to use a relay server.
For example, I'm using the module webforms, so I could test the sending of emails
All that I have done
sudo apt install postfix
During the installation I selected
- Internet Site
- System mail name: gonzalonazareno.org
/etc/postfix/main.cf I changed
myhostname = drupal.gonzalonazareno.org relayhost = babuino-smtp.gonzalonazareno.org
After this I restarted postfix, and tested postfix with this
echo "body of your email" | mail -s "This is a Subject" -a "From: firstname.lastname@example.org" email@example.com
But when I send an email I get nothing
- Some information here may not have sense, because I'm pretty lost with this task. All I know, is that I need to send an email, using postfix, and that relay server. Postfix will send the email to the relay, but after that, I don't really know if that email stores the messages...etc. Also, I don't know how to make drupal send that email, I can't figure out how can it do it.
- I think that you can test the smtp server I need to use
babuino-smtp.gonzalonazareno.org, and check if maybe it's having problems
My apologies if this question is confusing, but my understanding of email servers if pretty basic + I'm really lost