SMTP server

2 replies [Last post]
Joined: 02/08/2010
Points: 8

We are running KalturaCE 2.0.2 on Red Hat Enterprise Linux 5 (64bit) using XAMPP 1.7.1.

We have set up our server's sendmail installation to automatically forward all email to our main University SMTP hub. This works fine and I can connect via Telnet and create a test message which gets sent and arrives in the recipients Inbox.

However none of the registration emails that the KalturaCE server is trying to send out get delivered. Our main mailhub is locked down pretty hard and the senders email must be from a valid University account. Looking at the maillog it looks like the code will try to send messages from "notifications@kaltura.com" which will fail immediately on our network.

A grep -ir on the myKalturaApp directory shows that the term "notifications@kaltura.com" appears in

app/alpha/apps/kaltura/lib/batch/myBatchNotificationServer.class.php
app/alpha/apps/kaltura/lib/batch/myBatchMailer.class.php
app/alpha/config/kConf.php
app/batch/batches/Mailer/KAsyncMailer.class.php

Is it simply a matter of changing these references to a valid local email account on our network? Also in the maillog it seems to show that the emails are trying to be sent out as

relay=root@localhost

the successful Telnet test emails that were sent show up as

relay= [127.0.0.1]

Again grepping the myKalturaApp directory for "root@localhost" bring up these (not showing the ones that are to do with MySQL)

app/symfony/vendor/phpmailer/class.phpmailer.php
app/configurations/apache/httpd.conf
app/batch/batches/Mailer/phpmailer/class.phpmailer.php

is the mismatch likely to cause an issue?

On a related note is there a way to reset the Publishers passwords manually? I cannot use the web interface as I don't know what the passwords were in the first place as the emails didn't escape.

Many thanks,

Cameron,
xxx.

Joined: 06/01/2010
Points: 72

Hi Cameron,

Yes, we have some "kaltura.com" address baggage still in the CE that we need to remove/change. For the time being, you can manually change these addresses to ones that work for you. Please make sure you have the PHP imap extension installed too.

The "root@localhost" is just a placeholder. You should see "From" addresses like
From: MyDomain.com [registration_confirmation@MyDomain.com]

There is no easy way to manually change the accounts, but the emails should still be in the mail queue, so you can actually just look at the
queued mail (or possibly it's in a "bounced" or "rejected" queue) to find the information. If your SMTP relay is deleting the emails, I'm not sure
what to do.

Jason

Joined: 02/08/2010
Points: 8

Okeydoekey this is how I got the messages flowing. First I set up sendmail forwarding by editing

/etc/mail/sendmail.cf

and adding in an entry for the "Smart host"

DSmailhub.for.your.domain

then restarted sendmail.

Then I edited

path to your kalturace app/app/alpha/apps/kaltura/lib/batch/myBatchNotificationServer.class.php
path to your kalturace app/app/alpha/apps/kaltura/lib/batch/myBatchMailer.class.php
path to your kalturace app/app/batch/batches/Mailer/KAsyncMailer.class.php

and changed

notifications@kaltura.com

to a properly registered email account for my domain. Restarted xampp and registered some publishers.

Robert is your mothers brother.

Cameron,
xxx.