AirWave and Network Management

Reply
Regular Contributor I
Posts: 203
Registered: ‎09-28-2010

Troubleshooting email problems

I'm having some issues with emailing reports......it doesn't work!

I don't see very much information in the user guide about configuring SMTP settings. A search for SMTP only brings up a table that tells me that Airwave uses SMTP port 25 for emailing reports.

I don't see anywhere to actually put in an IP or name of the mail server.

I did see the part about emailing reports to a smarthost - adding a line to a file and restarting the service.

I did that, and the reports still don't go through.

Here is the output when following the steps in the user guide:

# vi /etc/postfix/main.cf:
# service postfix restart
Shutting down postfix:
Starting postfix:
# mail -v cole@mydomain.com
Subject: test mail
.
Cc:
Null message body; hope that's ok
Mail Delivery Status Report will be mailed to .
# tail -f /var/log/maillog
Feb 25 11:05:04 airwave1 postfix/bounce: 5593D31D0003: sender non-delivery notification: 7A5F631D0004
Feb 25 11:05:04 airwave1 postfix/qmgr: 7A5F631D0004: from=<>, size=2403, nrcpt=1 (queue active)
Feb 25 11:05:04 airwave1 postfix/cleanup: 7AF1B31D0005: message-id=<20110225160504.7AF1B31D0005@airwave1.forest.mydomain.com>
Feb 25 11:05:04 airwave1 postfix/bounce: 5593D31D0003: sender delivery status notification: 7AF1B31D0005
Feb 25 11:05:04 airwave1 postfix/qmgr: 5593D31D0003: removed
Feb 25 11:05:04 airwave1 postfix/qmgr: 7AF1B31D0005: from=<>, size=2194, nrcpt=1 (queue active)
Feb 25 11:05:04 airwave1 postfix/local: 7A5F631D0004: to=, relay=local, delay=0.01, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 25 11:05:04 airwave1 postfix/qmgr: 7A5F631D0004: removed
Feb 25 11:05:04 airwave1 postfix/local: 7AF1B31D0005: to=, relay=local, delay=0.01, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 25 11:05:04 airwave1 postfix/qmgr: 7AF1B31D0005: removed
Feb 25 11:05:57 airwave1 postfix/pickup: C9C0231D0003: uid=48 from=
Feb 25 11:05:57 airwave1 postfix/cleanup: C9C0231D0003: message-id=<20110225160557.C9C0231D0003@airwave1.forest.mydomain.com>
Feb 25 11:05:57 airwave1 postfix/qmgr: C9C0231D0003: from=, size=492, nrcpt=1 (queue active)
Feb 25 11:05:57 airwave1 postfix/smtp: warning: no MX host for mydomain.com has a valid address record
Feb 25 11:05:57 airwave1 postfix/smtp: C9C0231D0003: to=, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=babbage.forest.mydomain.com type=A: Host not found)
Feb 25 11:05:57 airwave1 postfix/cleanup: CB29831D0004: message-id=<20110225160557.CB29831D0004@airwave1.forest.mydomain.com>
Feb 25 11:05:57 airwave1 postfix/bounce: C9C0231D0003: sender non-delivery notification: CB29831D0004
Feb 25 11:05:57 airwave1 postfix/qmgr: CB29831D0004: from=<>, size=2683, nrcpt=1 (queue active)
Feb 25 11:05:57 airwave1 postfix/qmgr: C9C0231D0003: removed
Feb 25 11:05:57 airwave1 postfix/smtp: warning: no MX host for mydomain.com has a valid address record
Feb 25 11:05:57 airwave1 postfix/smtp: CB29831D0004: to=, relay=none, delay=0, delays=0/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=babbage.forest.mydomain.com type=A: Host not found)
Feb 25 11:05:57 airwave1 postfix/qmgr: CB29831D0004: removed



I have no idea what any of that means. .

I'm used to other management tools that have a place for us to put our mail server (smtp.mydomain.com).

What do I need to do in order to be able to email reports?
Aruba
Posts: 349
Registered: ‎04-14-2009

Re: Troubleshooting email problems

The version of the user guide I'm looking at says to


Add the following line to /etc/postfix/main.cf:

relayhost =
Where: mail.Aruba.com is the IP address or hostname of your smarthost.




You could do that with vi if you're comfortable with it, or with nano. Nano is a more intuitive text editor than vi.
Regular Contributor I
Posts: 203
Registered: ‎09-28-2010

Re: Troubleshooting email problems


The version of the user guide I'm looking at says to



You could do that with vi if you're comfortable with it, or with nano. Nano is a more intuitive text editor than vi.





I did that.....at least I think I did. Those are the first few lines of what I posted.

I used vi, used "i" for insert, added those 2 lines, hit ESC to exit and then ":wq" to write and quit. Then I restarted the service.

When I go back into the file with vi, it shows that line in there.....actually it's the only thing in there. I guess that is correct?

I am able to ping the entry by name, so I know that the server is resolving it.
Aruba
Posts: 349
Registered: ‎04-14-2009

Re: Troubleshooting email problems

That should not be the only line in there. This could help recover the file:



After that, you'd have to add your relayhost again. In case you feel like avoiding text editors, here's a one-liner to do it:



Once it's in there, restart the mail server:

Regular Contributor I
Posts: 203
Registered: ‎09-28-2010

Re: Troubleshooting email problems

Thanks again Dan!

I don't know what made the difference. Even after I did the recovery, vi still showed the same information as before.

I went ahead did the echo command, and restarted the service and now it is working. Not sure what was different than anything I did, but as long as it's working I'm happy!
Search Airheads
Showing results for 
Search instead for 
Did you mean: