On 08/04/2009 06:24 PM, Paul Company wrote:
what does the maillog on the cobbler server say

/var/log/maillog is empty.

cobbler must not be usind sendmail, because mail is being logged,
because if I run

# sendmail -C /etc/mail/sendmail.cf -t -v [email protected]<  /etc/motd

Then,
# cat /var/log/maillog

Aug  4 15:17:07 cobbler sendmail[22837]: n74MH7v0022837: from=root,
size=682, class=0, nrcpts=1
, msgid=<[email protected]>, relay=r...@localhost
Aug  4 15:17:07 cobbler1 sendmail[22837]: STARTTLS=client,
relay=mail.mydomain.com., vers
ion=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
Aug  4 15:17:07 cobbler sendmail[22837]: n74MH7v0022837:
[email protected], ctla
ddr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30682, relay=mail.mydomain.com. [10.230.6.21], dsn=2.0.0,
stat=Sent (OK id=1MYSJf-0007Xw-G3)
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

reading the code, here are some relevant snippets... if they don't spark anything, I'm not sure, it's probably a mail setup thing.

Jeff S may also be able to shed some light on things ... this is based on a refactoring of his original script.

Check /var/log/cobbler/cobblerd.log to see if there is anything interesting there.



========
If disabled it won't run
========


# go no further if this feature is turned off
if not str(settings.build_reporting_enabled).lower() in [ "1", "yes", "y", "true"]:
print "not enabled"
return 0


========
It works on systems and profiles
========

if objtype == "system":
target = api.find_system(name)
else:
target = api.find_profile(name)


========
If the name isn't right it will stop
========

# collapse the object down to a rendered datastructure
target = utils.blender(api, False, target)

if target == {}:
raise CX("failure looking up target")


========
this is the address it sends to
========

to_addr = settings.build_reporting_email
if to_addr == "":
return 0







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

Reply via email to