juanluisbaptiste/docker-postfix

Getting the domain from the server host name

fajfer opened this issue · 5 comments

This isn't so trivial as there are some cases like polish regional domains (eg. $DOMAIN.waw.pl) which should be interpreted as a whole, not just waw.pl (as this will not work correctly). This is something to consider as it currently forces me to do a workaround

Hi,

I really don't understand what's the issue, your report is unclear and vague at best. Could you explain with more details what is the problem ?

@sjal with the changes done for issue #16 there was a change on the way DOMAIN variable is calculated. If I understand correctly your issue is that if your host is for ex, www.host.co.uk, the current code will calculate the domain as co.uk instead of host.co.uk ? if yes then it is fixed in the new Alpine branch.

Could you test juanluisbaptiste/postfix:alpine ?

Oh, cool. Thanks, I'll check it out. Sorry, I'm an avid GitLab user and I forgot about submitting an issue here

Hey, I've got the postfix:alpine version but it's all and the same:
myhostname = foo.bar.pl
mydomain = bar.pl
in /etc/postfix/main.cf

ah, sorry - i'm from one of these people that first write then check - I reinstalled the entire stack to test it out and wanted to send an email from otrs@localhost :) This is why it didn't work. I just checked my 'production' instance and it works like a charm, thanks!