The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
Bug in mailalias
|Assignee:||Paul Lathrop||% Done:|
|Affected Puppet version:||0.24.7||Branch:|
Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com
This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.
I’m trying to use mailalias to manage a bunch of RT queue aliases, the typical /etc/aliases line would look like this:
test: “|/path/to/rt-mailgate —queue ‘test’ —action correspond —url http://my.com/”
If I use the mailalias type to do this using the code below:
target => "/tmp/aliases", recipient => "|/path/to/rt-mailgate --queue 'test' --action correspond --url http://my.com/"
target => "/tmp/aliases", recipient => "|/path/to/rt-mailgate --queue 'another test' --action correspond --url http://my.com/"
The resulting /tmp/aliases file will be:
anothertest: “|/path/to/rt-mailgate —queue ‘another test’ —action correspond —url http //my.com/” test: “|/path/to/rt-mailgate —queue ‘test’ —action correspond —url http://my.com/”
Notice that the url in the first one is lacking the “:”, in my tests creating many aliases only one alias entry per file would be correct all the others would be wrong.