Score:0

How to use hostnames in smtp_bind_address in Postfix configuration?

cn flag

It seems that Postfix does not allow hostnames in the smtp_bind_address config parameter. But it does allow hostnames in inet_interfaces.

For SPF I want to make sure which address SMTP-clients bind to and I wanted to do this with an IP-independent configuration (like I always do).

Is there a way to enable hostnames for smtp_bind_address or any other way around this? The point is to leave the IP out of the configuration file(s).

(There is no DNS/networking involved in resolving those hostnames via /etc/hosts.)

cn flag
@joeqwerty Yeah, maybe frustration was talking. But I found something interesting: if you set only a hostname in `inet_interfaces`, it seems to create a default for `smtp_bind_address` (with which it fails). That is at least a documentation bug, because it says that it picks from `inet_interfaces` only if you use _one IP address_ in it. –
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.