The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #1560

Bug in mailalias

Added by R.I. Pienaar about 7 years ago. Updated almost 7 years ago.

Status:ClosedStart date:09/05/2008
Priority:NormalDue date:
Assignee:Paul Lathrop% Done:


Target version:0.25.0
Affected Puppet version:0.24.7 Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


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”

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"



    target          => "/tmp/aliases",
    recipient       => "|/path/to/rt-mailgate --queue 'another test' --action correspond --url"


The resulting /tmp/aliases file will be:

anothertest: “|/path/to/rt-mailgate —queue ‘another test’ —action correspond —url http //” test: “|/path/to/rt-mailgate —queue ‘test’ —action correspond —url”

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.


#1 Updated by James Turnbull about 7 years ago

  • Category set to mailalias
  • Status changed from Unreviewed to Accepted
  • Assignee set to Puppet Community
  • Target version set to 4

No idea what’s happening here from looking at the code. Anyone have any ideas?

#2 Updated by Luke Kanies about 7 years ago

Looks like the provider is just splitting on ‘:’, which doesn’t work since there really is only one colon that matters in the line.

#3 Updated by Paul Lathrop about 7 years ago

  • Assignee changed from Puppet Community to Paul Lathrop

#4 Updated by Paul Lathrop almost 7 years ago

  • Target version changed from 4 to 0.25.0
  • % Done changed from 0 to 10
  • 3 changed from Unknown to Easy

Just wanted to let folks know I’m actually working on this :–)

#5 Updated by Paul Lathrop almost 7 years ago

  • Status changed from Accepted to Ready For Checkin
  • Affected Puppet version changed from 0.24.4 to 0.24.7

Patch submitted to dev list for review. Also available on GitHub:

#6 Updated by Paul Lathrop almost 7 years ago

  • % Done changed from 10 to 90

#7 Updated by James Turnbull almost 7 years ago

  • Status changed from Ready For Checkin to Closed

Merged in commit:234a035b97287d8910ca00a58b70a06775818693 in branch master.

Also available in: Atom PDF