On Tue, Aug 4, 2009 at 3:38 PM, Michael DeHaan<[email protected]> wrote:
> 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.

Sorry I'm a bit confused. What is trying to be accomplished and what
have you done to troubleshoot? Email works when using sendmail, but
not using cobbler? Is this for the build reporting email snippet I
submitted? /var/log/messages won't show anything as that snippet sends
the email straight from python to the smtp server you configure.

Perhaps you just have the settings wrong? Note that the
build_reporting_email directive HAS to be a python list or the script
will flip out. This is important.

# grep build /etc/cobbler/settings
build_reporting_enabled: 1
build_reporting_sender: "[email protected]"
build_reporting_email: [ "[email protected]" ]
build_reporting_smtp_server: "localhost"
build_reporting_subject: "Host Build Report"

Also what cobbler version are you using? Then I can look at the code
in git you are using. Our local copy might be a bit customized.

-- 
Jeff Schroeder

Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to