Comments (2)
I can see that this was changed in commit 9c1e8d9. I think it's a little unclear why the variable is specified as a yaml sequence/list, despite the usual use including brackets.
Postfix allows a few ways of specifying the relayhost (see man 5 postconf), which may include brackets or several other forms.
relayhost (default: empty)
The next-hop destination(s) for non-local mail; overrides non-local domains in recipient addresses. This information is overruled with relay_transport, sender_dependent_default_transport_maps, default_transport, sender_dependent_relayhost_maps and with the transport(5) table.On an intranet, specify the organizational domain name. If your internal DNS uses no MX records, specify the name of the intranet gateway host instead.
In the case of SMTP or LMTP delivery, specify one or more destinations in the form of a domain name, hostname, hostname:port, [hostname]:port, [hostaddress] or [hostaddress]:port, separated by comma or whitespace. The form [hostname] turns off MX lookups. Multiple destinations are supported in Postfix 3.5 and later.
If you're connected via UUCP, see the UUCP_README file for useful information.
Examples:
relayhost = $mydomain relayhost = [gateway.example.com] relayhost = mail1.example:587, mail2.example:587 relayhost = [an.ip.add.ress]
I would suggest it might be better to specify postfix_relayhost
as a string, and allow the user to set it to whatever value they want.
from ansible-role-postfix.
Hi, it's likely because "[" and "]" are characters that yaml interprets. I'll check what I can do, thanks for the report!
from ansible-role-postfix.
Related Issues (18)
- Template for master.cf is not correct HOT 1
- Debian builds failing HOT 2
- setgid_group variable in main.cf template HOT 4
- maildrop_destination_recipient_limit is undocuments in Postfix's documentation.
- maildrop_destination_recipient_limit is undocuments in Postfix's documentation.
- This should be a list.
- This should be a list. HOT 1
- Update documentation to give better examples.
- Failing to install - did github changed something? HOT 1
- postmap is used instead of postalias to rebuild alias db HOT 1
- compatibility_level is not set in Postfix 3.0 and later HOT 1
- Support Postfix Address Rewriting
- alias_database might not be referenced to the actual file for some operating systems ( e.g. alpine )
- Validate configuration before restarting
- daemon_directory for Debian HOT 4
- Taking away setgid makes sendmail fail HOT 2
- SELinux module? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-postfix.