On 01/24/2015 01:47 AM, Jagga Soorma wrote:
I am trying to get cobbler to report via email once a system has been
provisioned and can't seem to get that working.  Here is what I have
changed in my settings file:

build_reporting_enabled: 1
build_reporting_sender: "[email protected]"
build_reporting_email: [ '[email protected]' ]
build_reporting_smtp_server: "smtp.xxx.com"
build_reporting_subject: "Cobbler01 - Build"
build_reporting_ignorelist: [ "" ]

After making the above changes, per the documentation I did a "cobbler
sync" and restarted the cobblerd service.  However, I still can't get
it to send a email upon completion of a server build.  I do have
"$SNIPPET('kickstart_done')" at the end of my kickstart file and
"cobbler status" reports the finished state once the server has
completed the build process but I still don't see any emails.  I have
postfix setup on this cobbler server and can manually send out emails
just fine using mailx.  Do I need to do anything else to enable email
reporting?  Am I missing something here?

I do not use this Cobbler feature, so I do not know if it is working.

build_reporting_smtp_server is pointing to localhost? If so, could you pls run the code used by
Cobbler in a Python command line in your Cobbler server:

    server_handle = smtplib.SMTP(<smtp_server>)
    server_handle.sendmail(<from_addr>, <to_addr_list>, "test")


Regards,
Alan Evangelista

_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to