Aruba Apps

Reply
Occasional Contributor II
Posts: 16
Registered: ‎07-22-2015

Cannot send test email in Airwave

After setting up Airwave I tried to email myself a test. It will not go. I confirmed with the ISP that the allowed Mail Relay is still working and allowing traffic from with in their network. What else should I check?

 

I tried sending a test both with and without a mail relay. Both using the internal mail server. Is there a way to use an external email server in which I would authenticate to?

Aruba Employee
Posts: 2
Registered: ‎07-26-2012

Re: Cannot send test email in Airwave

From the CLI(root user), you could check the mailog located at /var/log. This log should tell us the exact reason why the mail is not getting delivered. 

 

To configure a relay host, SSH into the AMP using SecureCRT or Putty and follow the steps below:

1. Add the following line to /etc/postfix/main.cf:
relayhost = [mail.airwave.com]
where [mail.airwave.com] is the IP address or hostname of your smarthost If you do not surround the hostname with brackets, Postfix will forward mail to the mail server defined in the host's MX record, if any MX record exists for that host.

2. Run:

# service postfix stop
# service postfix start

3. Send a test message to an email address
Mail -v xxx@xxx.com
Subject: test mail
.
<Ctrl-D> to end message.
CC: <press enter>

4. Check the mail log to ensure mail was sent
# tail /var/log/maillog

Occasional Contributor II
Posts: 16
Registered: ‎07-22-2015

Re: Cannot send test email in Airwave

Thank you. I saw this in the manual but am lacking in Linux skills somewhat. 

 

Do I need to set a domain on AMP?

 

After doing that, This is the report.

 

Feb 22 15:12:10 localhost postfix/pickup[22398]: A3C4F1017B0: uid=0 from=<root>
Feb 22 15:12:10 localhost postfix/cleanup[22836]: A3C4F1017B0: message-id=<20170222201210.A3C4F1017B0@localhost.localdomain>
Feb 22 15:12:10 localhost postfix/qmgr[22399]: A3C4F1017B0: from=<root@localhost.localdomain>, size=460, nrcpt=1 (queue active)
Feb 22 15:12:40 localhost postfix/smtp[22854]: connect to mr.mail.ena.net[96.4.1.4]:25: Connection timed out
[root@localhost postfix]# tail /var/log/maillog
Feb 22 15:12:10 localhost postfix/cleanup[22836]: A3C4F1017B0: message-id=<20170222201210.A3C4F1017B0@localhost.localdomain>
Feb 22 15:12:10 localhost postfix/qmgr[22399]: A3C4F1017B0: from=<root@localhost.localdomain>, size=460, nrcpt=1 (queue active)
Feb 22 15:12:40 localhost postfix/smtp[22854]: connect to mr.mail.ena.net[96.4.1.4]:25: Connection timed out
Feb 22 15:13:10 localhost postfix/smtp[22854]: connect to mr.mail.ena.net[96.5.1.4]:25: Connection timed out
Feb 22 15:13:10 localhost postfix/smtp[22854]: A3C4F1017B0: to=<robert@centralinc.com>, relay=none, delay=60, delays=0.01/0.01/60/0, dsn=4.4.1, status=deferred (connect to mr.mail.ena.net[96.5.1.4]:25: Connection timed out)
Feb 22 15:13:10 localhost postfix/cleanup[22836]: B87951017B1: message-id=<20170222201310.B87951017B1@localhost.localdomain>
Feb 22 15:13:10 localhost postfix/bounce[22991]: A3C4F1017B0: sender delivery status notification: B87951017B1
Feb 22 15:13:10 localhost postfix/qmgr[22399]: B87951017B1: from=<>, size=2089, nrcpt=1 (queue active)
Feb 22 15:13:10 localhost postfix/local[22993]: B87951017B1: to=<root@localhost.localdomain>, relay=local, delay=0.01, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 22 15:13:10 localhost postfix/qmgr[22399]: B87951017B1: removed
You have new mail in /var/spool/mail/root

Aruba Employee
Posts: 2
Registered: ‎07-26-2012

Re: Cannot send test email in Airwave

mr.mail.ena.net seems to be your mail relay server. I see time outs when an email is sent. However, the last entry in the log suggests email was delievered successfully. Setting a domain will be helpful when using the mail relay server option.

Occasional Contributor II
Posts: 16
Registered: ‎07-22-2015

Re: Cannot send test email in Airwave

I set the domain and did a test email. This time using 'support@ucps.org' as my From. Failed again.

 

Please note, I'm horrible with Linux but can sort of get around VI.

 


Feb 24 08:02:41 localhost postfix/pickup[10971]: 1CC5310182B: uid=48 from=<support@ucps.org>
Feb 24 08:02:41 localhost postfix/cleanup[11208]: 1CC5310182B: message-id=<20170224130241.1CC5310182B@localhost.localdomain>
Feb 24 08:02:41 localhost postfix/qmgr[10972]: 1CC5310182B: from=<support@ucps.org>, size=448, nrcpt=1 (queue active)
Feb 24 08:03:11 localhost postfix/smtp[11210]: connect to mr.mail.ena.net[96.4.1.4]:25: Connection timed out
Feb 24 08:03:41 localhost postfix/smtp[11210]: connect to mr.mail.ena.net[96.5.1.4]:25: Connection timed out
Feb 24 08:03:41 localhost postfix/smtp[11210]: 1CC5310182B: to=<robert@centralinc.com>, relay=none, delay=60, delays=0.01/0.01/60/0, dsn=4.4.1, status=deferred (connect to mr.mail.ena.net[96.5.1.4]:25: Connection timed out) 

Aruba Employee
Posts: 464
Registered: ‎02-19-2015

Re: Cannot send test email in Airwave

It looks your mail realy server is not reachable from Airwave, it is timing out. Is there any firewall between Airwave and mail realy server?

 

could you send test email to narrow down issue whether it is on Airwave or mail relay server from Airwave.

 

#echo "Test mail from postfix" | mail -s "Test Postfix"xxx@xxx.com

Please replace xxx@xxx.com. It’s better to run a test with your free email id with gmail, yahoo, etc first. If you can receive test mail sent above then that means postfix is able to send emails.

 

Make sure, you have configured your mail realy server in AMP Setup > Additional AMP Services section > Use Embedded Mail Server set to YES and provide your mail server details.

If your server reaches to the internet you could try send test mail by setting it to NO and click send test email to confirm whether issue is on mail realy server side.

Occasional Contributor II
Posts: 16
Registered: ‎07-22-2015

Re: Cannot send test email in Airwave

As it turned out, it was a firewall issue. Customer originally said it was open. The ISP guided him as to proper ports to open. Yada yada  yada, my test email came through.

Search Airheads
Showing results for 
Search instead for 
Did you mean: