I have a buildbot setup running for a software project, and am trying to set up e-mail notifications like so:
from buildbot.status import mail
c['status'].append(mail.MailNotifier(fromaddr=BUILDBOT_EMAIL,
mode=('failing'),
extraRecipients=[NOTIFICATION_EMAIL],
sendToInterestedUsers=False))
Where BUILDBOT_EMAIL
is a string "buildbot@name-of-our-project.org", and NOTIFICATION_EMAIL
is a string with the email where I want to get the notifications.
According to documentation, everything seems fine; I am not sending mail to interested users so no lookup
argument is required. I'm only trying to send mail to an explicitly stated address in case any build is failing. I am basically doing this:
To get a simple one-message-per-build (say, for a mailing list), use the following form instead. This form does not send mail to individual developers (and thus does not need the lookup= argument, explained below), instead it only ever sends mail to the extra recipients named in the arguments:
mn = MailNotifier(fromaddr="buildbot@example.org",
sendToInterestedUsers=False,
extraRecipients=['listaddr@example.org'])
However, no e-mails are arriving even though I do have failing builds. What could be the cause?
Could there be a problem with the way I'm using fromaddr and simply using a buildbot@domain-name.org
address as per examples? Should this address be registered in some way with our domain? Would it make a difference if I use buildbot@localhost
instead?
Could the problem be caused by me not using relayhost
? From the examples in the documentation it appears that this only needs to be set for authentication with the outbound -- not the inbound -- address.
Any help will be greatly appreciated.