Jeremy
2011-Mar-18 14:50 UTC
[Puppet Users] Adding a mailer to Postfix master.cf via Augeas
Has anyone had any success with adding a new mailer to the Postfix
master.cf using Augeas? I know the commands work if I use augtool but
I''m having problems translating it into a Puppet module configuration.
I''m attempting to set Postfix up to use Amazon Web Services Simple
Email Service as suggested at
http://netwiser.blogspot.com/2011/02/setup-amazon-ses-to-relay-email-by.html.
This is what I have currently and it truncates the command+args
section after only "pipe". When I use augtool I would put the whole
command+args section within quotes but that doesn''t seem to work with
Puppet+Augeas.
augeas {
"Postfix Master Config":
context => "/files/etc/postfix/master.cf",
changes => [
"set aws-email/type unix",
"set aws-email/private -",
"set aws-email/unpriviliged n",
"set aws-email/chroot n",
"set aws-email/wakeup -",
"set aws-email/limit -",
"set aws-email/command pipe flags=R user=nobody argv=/
usr/local/bin/ses-send-email -r -k /etc/postfix/aws-credentials -f $
{sender} ${recipient}",
],
require => Package["postfix"],
notify => Service["postfix"];
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Luke Bigum
2011-Mar-18 16:03 UTC
[Puppet Users] Re: Adding a mailer to Postfix master.cf via Augeas
On Mar 18, 2:50 pm, Jeremy <jtbo...@gmail.com> wrote:> "set aws-email/command pipe flags=R user=nobody argv=/ > usr/local/bin/ses-send-email -r -k /etc/postfix/aws-credentials -f $ > {sender} ${recipient}",Try: ''set aws-email/command "pipe flags=R user=nobody argv=/ usr/local/bin/ ses-send-email -r -k /etc/postfix/aws-credentials -f $ {sender} $ {recipient}"'' Single quotes around the string in Puppet, double quotes around the Augeas string. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.