VMware Cloud Community
lundrog
Contributor
Contributor

Test E-mail Configuration

I believe I have gotten the e-mail setup correctly.

I need a test e-mail button or function, how can I do this?
0 Kudos
15 Replies
BradFelmey
Hot Shot
Hot Shot

I don't know of a one-button way to do this. I'd create an alert and force it to fire (like Availability=1).
0 Kudos
lundrog
Contributor
Contributor

So,

I do if condition, availability is equal to 1? or what do I put, and what action do I use?

Then I do notify user, and a select user that has a valid e-mail correct?

Thanks
0 Kudos
BradFelmey
Hot Shot
Hot Shot

Yeah, basically make an alert that's sure to fire off. Pick a system that's operating perfectly, and make an alert to send an email if availability is 100% (or integer 1, whichever is easier for you to type in).

Notify user, make sure they have a valid email.
0 Kudos
lundrog
Contributor
Contributor

yep, not working.

I get a alert when I log in to HQ, but no e-mail.

I have pop3 e-mail server ( hosted ) that requires a user name and pass to send,

But I put in the following as it is in this link


http://communities.vmware.com/message/1916591#1916591

Message was edited by: lundrog
0 Kudos
BradFelmey
Hot Shot
Hot Shot

I think SMTP AUTH and a "test" button are needed.
lundrog
Contributor
Contributor

Agreed.



Any idea how to forward this through a gmail account?

Message was edited by: lundrog
0 Kudos
BradFelmey
Hot Shot
Hot Shot

You should be able to configure your local (local to the HQ server, I mean) mail server to use a remote, authenticated relay. That way HQ can simply send an email via the local system, and the local mail server worries about relaying out.
lundrog
Contributor
Contributor

So, I install sendmail, in ubuntu 7.10, and it sends a e-mail to our hosted e-mail using smtp auth? Or to gmail?


Any idea where I should start?
0 Kudos
BradFelmey
Hot Shot
Hot Shot

Yes, sendmail can be configured to use a remote host to relay, including authentication.

The feature you seek is called SMART_HOST, and here's a quick search result:

http://www.screaming-penguin.com/node/4214
0 Kudos
lundrog
Contributor
Contributor

Yes, but now I need to know how to configure sendmail...
0 Kudos
BradFelmey
Hot Shot
Hot Shot

There are whole books on how to configure sendmail. I'm afraid it is light-years beyond my ability to convey in a forum post.
0 Kudos
lundrog
Contributor
Contributor

alright, once I get the postfix, ( since I am on ubuntu) working, I will work on getting HQ to send e-mail.

how would I fill out for following to work with my relayhost ??

"jboss-service-events.xml section:
<attribute name="Configuration">
<!-- Test -->
<configuration>
<!-- Change to your mail server prototocol -->
<property name="mail.store.protocol" value="pop3"/>
<property name="mail.transport.protocol" value="smtp"/>

<!-- Change to the user who will receive mail -->
<property name="mail.user" value="nobody"/>

<!-- Change to the mail server -->
<property name="mail.pop3.host" value="popserver"/>

<!-- Change to the SMTP gateway server -->
<property name="mail.smtp.host" value="smtpserver"/>

<property name="mail.smtp.user" value="smtpuser"/>
<property name="mail.smtp.password" value="pw"/>
<property name="mail.smtp.auth" value="true"/>

<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="true"/>
</configuration>
"
0 Kudos
BradFelmey
Hot Shot
Hot Shot

I'm not as familiar with Postfix, but I would say replace the pertinent values with what you need, e.g.:

<property name="mail.smtp.host" value="lundrog.example.com"/>
<property name="mail.smtp.user" value="lundrog"/>
<property name="mail.smtp.password" value="Iamapasswordforlundrog"/>
0 Kudos
lundrog
Contributor
Contributor

I found this for Ubuntu Postfix config, for other users.

http://prantran.blogspot.com/2007/01/getting-postfix-to-work-on-ubuntu-with.html


it also says to use port 587 for gmail's port and I will try that in HQ to see if i can send directly.
0 Kudos
admin
Immortal
Immortal

> I believe I have gotten the e-mail setup correctly.
>
> I need a test e-mail button or function, how can I do
> this?

I agree this type of functionality is needed. Setting up test alerts just to test if the mail configuration is working is not ideal. This type of thing is ideally suited for the HQU plugins, a simple plugin could be written that attaches to the admin section. If I have some time I'll write up an example. It will be similar to the night thrash plugin on http://www.hquplugins.org.

-Ryan
0 Kudos