Aruba Apps

last person joined: 6 days ago 

The HPE Aruba Networking Apps board is designed to address questions, comments, and feature requests for all HPE Aruba Networking mobile Apps
Expand all | Collapse all

Cannot send test email in Airwave

This thread has been viewed 8 times
  • 1.  Cannot send test email in Airwave

    Posted Feb 21, 2017 01:34 PM

    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?



  • 2.  RE: Cannot send test email in Airwave

    Posted Feb 21, 2017 10:25 PM

    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



  • 3.  RE: Cannot send test email in Airwave

    Posted Feb 22, 2017 03:16 PM

    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



  • 4.  RE: Cannot send test email in Airwave

    Posted Feb 22, 2017 11:28 PM

    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.



  • 5.  RE: Cannot send test email in Airwave

    Posted Feb 24, 2017 08:09 AM

    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) 



  • 6.  RE: Cannot send test email in Airwave
    Best Answer

    EMPLOYEE
    Posted Feb 24, 2017 11:29 AM

    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.



  • 7.  RE: Cannot send test email in Airwave

    Posted Feb 28, 2017 03:29 PM

    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.



  • 8.  RE: Cannot send test email in Airwave

    Posted Mar 21, 2019 08:11 AM

    i have the same issue i have tested sending mail notification from airwave to my personnal address, and it works but to our support address doesn't seem to reach it ! would you help with that please!!



  • 9.  RE: Cannot send test email in Airwave

    EMPLOYEE
    Posted Mar 21, 2019 08:29 AM

    Have you added  mail server details in in AMPSetup> General>Additonal AMP Services>Use Embedded Mail server and tested it?

     

    If it is working with your personal email and not with support email then you need to check on your mail server why it is not forwarding the email.

     

    Check maillog in system>Status page in Airwave to see if mail has been forwarded to mail server, you can compare working and non-working email log enteries.

     

     



  • 10.  RE: Cannot send test email in Airwave

    Posted Mar 21, 2019 09:08 AM

    the email sender is correctly set ,i'm reading logs after a test but can't seem to be able to all understand :

    for example what does this :  

    mean 

    enabling PIX workarounds: disable_esmtp delay_dotcrlf for....

    ?



  • 11.  RE: Cannot send test email in Airwave

    EMPLOYEE
    Posted Mar 21, 2019 11:21 AM

    It does not look an Airwave issue, try access to that domain mail server from airwave CLI, if you have root access.

     

    #openssl s_client -connect <mail server domain>:25 -starttls smtp

    # telnet <mail server domain> 25

    If you are not seeing STARTTLS or Cipher exchange it means server is not offering any cipher to start communication

     

    Do you have any firewall in between , if Yes check if SMTP  inspection is enabled, try disable and check the status.



  • 12.  RE: Cannot send test email in Airwave

    Posted Sep 10, 2018 10:40 PM

    Can we have setup this in UX ? We don't have experiece with comments line.