Page 3 of 4
Re: Setup Switchvox OID's in serivces
Posted: Tue Dec 31, 2013 11:58 am
by nhajicostis
Figured out the remote responses, the Switchvox's have access control and the SNMP traffic was turned off for external, now it works.
I have one last configuration that won't work, I cannot get the alerts to email out. I have installed postfix and heirloom-mailx, configured my settings into them, changed the command.cfg to /usr/bin/mailx. Does someone have a guide that could help.
Re: Setup Switchvox OID's in serivces
Posted: Thu Jan 02, 2014 8:29 am
by nhajicostis
I tested my postfix mail server and I cannot get it to send mail directly to me, I am using a Google domain for my email, I figure the config of the postfix is causing my issues, does anyone have a good walkthrough on setting up postfix, I looked at 4 different ones online already and it still does not work any help would be great.
Nick
Re: Setup Switchvox OID's in serivces
Posted: Thu Jan 02, 2014 12:22 pm
by abrist
My suggestion would be to look at /var/log/maillog - you should get enough information from the logs to finish your config. For just sending mail, you should be able to ignore most of the postfix configuration - especially if you are sending directly to email addresses and not trying to mail proxy/relay/forward.
Re: Setup Switchvox OID's in serivces
Posted: Fri Jan 03, 2014 8:47 am
by nhajicostis
I figure I have something wrong in my config on either the postfix or nagios itself, all I want is to send an email when I have an alert, I have enabled notifications on the nagios server, I have configured contacts in my contacts.cfg, I looked at the mail.log file and the error I get that it bounces because of unknown user, but the sender is
[email protected] which is not a valid email on my domain, would that cause my issues?
As well is there an easier way to do this as all I want is to send out notifications, I do not need any other email off this server.
All the help has been greatly appreciated.
Nick
Re: Setup Switchvox OID's in serivces
Posted: Fri Jan 03, 2014 11:02 am
by abrist
Lets try using sendmail to just send an email directly:
Then type a message in. When you are finished press "ctrl+d". Check your email and the server maillogs.
Re: Setup Switchvox OID's in serivces
Posted: Wed Jan 08, 2014 10:05 am
by nhajicostis
I tried the sendmail command and here is what the mail log recorded.
Jan 8 09:54:36 wallwinsnmp-P5E-VM-DO postfix/qmgr[25723]: A250128056D: removed
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/pickup[22362]: D693E2803AE: uid=0 from=<root>
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/cleanup[22952]: D693E2803AE: message-id=<
[email protected]>
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/qmgr[25723]: D693E2803AE: from=<
[email protected]>, size=251, nrcpt=1 (queue active)
Jan 8 09:55:06 wallwinsnmp-P5E-VM-DO postfix/local[22954]: D693E2803AE: to=<
[email protected]>, relay=local, delay=16, delays=16/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: "nick.hajicostis")
Any suggestions as to how to fix this?
Thanks for the help so far
Re: Setup Switchvox OID's in serivces
Posted: Wed Jan 08, 2014 11:57 am
by abrist
nhajicostis wrote:Jan 8 09:55:06 wallwinsnmp-P5E-VM-DO postfix/local[22954]: D693E2803AE: to=<
[email protected]>, relay=local, delay=16, delays=16/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: "nick.hajicostis")
This is either:
1) A problem with the email address you are using - are you sure the address is correct?
2) An issue with your email relay configuration - it is bouncing your email due to an unknown user/email address.
If your email address is correct, you will need to contact the admin for the mail relay server.
Re: Setup Switchvox OID's in serivces
Posted: Wed Jan 08, 2014 12:28 pm
by nhajicostis
The email is on a Google domain, do you know where I find the email relay for gmail, and where in the configuration on the Ubuntu box I would add that info.
Re: Setup Switchvox OID's in serivces
Posted: Wed Jan 08, 2014 12:38 pm
by abrist
gmail is the relay then, unless you have specifically configured your own relay. Are you sure the email address is correct?
Re: Setup Switchvox OID's in serivces
Posted: Thu Jan 09, 2014 1:16 pm
by nhajicostis
I am positive since it is my email address at the company I work for. Just so I have it right, where do I configure the email relay info and is the relay just the SMTP server info?