-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not getting the whole FQDN thing #6
Comments
Oh also not to clog up your issues inbox any more: When I connect my Wordpress emailing functionality what settings do I use. I opened the Dockerfile and saw 25 is exposed, so I assume I would connect to port 25, but how would I set the SMTP server address given I won't be exposing that port publicly? Is it just setup so that when I email smtp.awesomesite.com that the DNS setting I assume I made resolves to my box's IP, and then docker somhow knows that it can resolve it via the private docker network that isn't exposed? Or do I need to inject a hosts record with the IP of the relay box pointed at by smtp.awesomesite.com? Cheers again! |
Hi!, for For how to connect to the SMTP relay i would strongly suggest you use docker networks somehow. Simples is probably to use one docker-compose config that has both a wordpress and postfix-relay service as then docker-compose will create a "default" network between them so they can communicate. Then wordpress should be able to reach the SMTP relay using normal DNS. For example if you have "smtp" service then wordpress should be able to use "smtp" as hostname for it's SMTP server. See https://github.com/wader/postfix-relay#using-docker-compose |
Ok I've managed to get it going, now its just tinkerin with all the nobs to get out of that spam box! This is the big issue I have currently (source: https://www.mail-tester.com/test-qhuyo):
you can also see the raw email:
it looks like my helo is sending hostname not sendingemailfromhere.com.au Here is my docker-compose config
Any idea on how to make the helo send sendingemailfromhere.com.au or smtp.sendingemailfromhere.com.au, which ever it's supposed to? |
I think You can probably skip expose 25 as it's already define by the Dockefile and i think expose is only needed if you use links (which you probably don't need if you use DNS instead) |
@wader The confusion I am experiencing is that the HELO is sending hostname as it's host name not sendingemailfromhere.com.au OR smtp.sendingemailfromhere.com.au I'm not even 100% sure what it should be. I will do some digging into postfix and how HELO works, if I find more info I will get back to you, or if you figure something out let me know. |
I just noticed POSTFIX_sendingemailfromhere.com.au=smtp.sendingemailfromhere.com.au in your example. Just to be clear, postfix has a config option named ”myhostname” so you should not expand it as a variable etc. |
Yeah I litterally just figured that out!
…On Fri, 30 Nov 2018 at 10:38 AM, Mattias Wadman ***@***.***> wrote:
I just noticed POSTFIX_sendingemailfromhere.com.au=
smtp.sendingemailfromhere.com.au in your example. Just to be clear,
postfix has a config option named ”myhostname” so you should not expand it
as a variable etc.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAri6fJUj6ulwFgVnAas2pfs-hD3zNomks5u0JotgaJpZM4Y24EK>
.
|
Aha good 👍 yeah that option is named a bit weirdly. So hostname works now? |
Yeah sure does
…On Fri, 30 Nov 2018 at 4:11 PM, Mattias Wadman ***@***.***> wrote:
Aha good 👍 yeah that option is named a bit weirdly. So hostname works
now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAri6WqOg9lCo8XuahKaA15iLyB8_cYWks5u0OgtgaJpZM4Y24EK>
.
|
Can close? I did a change to make this more clear 840a28d Thanks for bringing this up! |
Cheers no problem you can close, thanks for the clarification
…On Fri, 30 Nov 2018 at 8:34 PM, Mattias Wadman ***@***.***> wrote:
Can close?
I did a change to make this more clear 840a28d
<840a28d>
Thanks for bringing this up!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAri6bW5Vx-Vpr_qtYVe6VfeAYu3nu9cks5u0SW3gaJpZM4Y24EK>
.
|
Hi Sorry for more of a Mail question in general than the one to this repo.
When I get to the part for the docker-compose.yml of:
I have no idea what myhostname should be nor any extra DNS setup I will need to do.
Basically I have a Wordpress services running in docker and the mail is becoming a big pain due to sendmail not being the most strait forward thing ever.
If I have the domain: awesomesite.com and I want to send emails from it, what would those settings end up being? do I need to prepend smtp. to awesomesite.com and create an A record??
My site already has a Google inbox so I can't mess with the mx records.
Cheers,
Michael.
The text was updated successfully, but these errors were encountered: