Hello,

I ran to the same issue.
After digging a bit, it seems the installation fails when myhostname
ends with a '.' (like myhostname=test.mydomain.tld.)

>From my understanding and on my testing host, domain name is setup with:
"sed -n
's/^search[[:space:]]*\([^[:space:]]*\).*/\1/p;s/^domain[[:space:]]*\([^[:space:]]*\).*/\1/p'
/etc/resolv.conf | tail -1" (ie from the line number 52, function
myfqdn, file: /var/lib/dpkg/info/postfix.postinst).

And, my /etc/resolv.conf looks like:

search intranet.domain.tld. domain.tld.

(Note the dot after each tld)


Removing the '.' from the end of of search domains makes the
installation work properly.

I'm not sure if writing "search" domains in /etc/resolv.conf with a
final dot for each domain is a real error...
If it is not, the sed  used to define mydom in postfix.postinstall
should be fixed.

Kind regards and many thanks for packaging postfix.
-- 
Glennie Vignarajah
Web: https://www.glennie.fr

Attachment: 0x6794D00A269E7ED2.asc
Description: application/pgp-keys

Reply via email to