Hi there,
So I wrote a post in the General forum a few weeks ago (here:
https://www.linuxquestions.org/quest...8/#post6201162) that explains my problem in more detail.
TLDR; I want to use my Postfix SMTP to relay outgoing messages for my domain through my hosting provider's SMTP using my credentials.
Essentially I want to connect to my hosting provider's SMTP server to send an email, but instead of sending from my email client, it instead comes from my own internal Postfix SMTP server (to which I send the message using my email client; this part already works fine)
I've read through a few different documents online that explains how to do this. One in particular talks about how to do it using Gmail.
But despite my efforts, when I send my message, it gets stuck with my Postfix server.
So what I've done is try sending an email to my Gmail account from my domain account;
me@mydomain.com ->
me@gmail.com
The message never arrives at Gmail, and when I inspect postqueue, I see the message listed and it contains:
Code:
"delay_reason": "connect to alt4.gmail-smtp-in.l.google.com[142.250.96.26]:25: Connection timed out"
Now, is that a message coming back from my hosting provider's SMTP?
If not, when why is my Postfix SMTP trying to connect to Google's SMTP as suggested in the delay reason?
Should it not be connecting to my hosting provider's SMTP instead?
Am I understanding SMTP relay correctly?
Furthermore, when I look at the output of 'postconf -n', I do NOT see any of the settings I configured in Postfix's main.cf as explained in my other post (specifically but not limited to 'relay_recipient_maps', 'sender_dependent_relayhost_maps', 'smtp_sasl_password_maps', etc.)
I've also noticed that my domain isn't listed in the 'relay_domains' value despite it being configured in main.cf.
Why might my settings not be showing up in postconf? Am I missing something? A setting? A Debian package?
I'm kinda stumped and would really appreciate some direction with this. It's been stumping me for almost a month now.
Thanks!