SOLVED outbound email stopped working yesterday

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
Incredible PBX/FAX 13-12.2 for CentOS 6

Asterisk: UP Apache: UP MySQL: UP
SendMail: UP IPtables: UP SSH: UP
LAN port: UP Fail2Ban: UP Webmin: UP
GV OAUTH: DN PortKnock: UP NR VPN: UP
FaxGetty: DN IAX Modem: DN HylaFax: DN

RAM:324MB CentOS release 6.8 Disk:22GB

Asterisk 13.13.1 Incredible GUI 12.0.39

Private IP: 138.a.b.c 10.17.x.y

Public Info: 138.a.b.c

System Time: Thu Jun 22 09:20:13 EDT 2017

< OK >
Installed on Digital Ocean been working forever and it seems outbound email stopped working yesterday.
using CLI and the mail command, the mail never gets returned either nor an error message.
Voicemails still work.

disk space fine:

root@pbx-clbc:~ $ df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 30836284 6549040 22714540 23% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
tmpfs 510056 0 510056 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.
root@pbx-clbc:~ $

stumped again :-(

Thanks leon
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
how does one reset/change the webmin password as I can't remember what it is/was since the ones I have written down don't work :-(
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
looks like related to TLS? Why would that kick in all of a sudden from my mailhost? I'm locked out of webmin whats the easiest way to change the webmin password?

thanks

Jun 22 10:58:36 pbx-clbc sendmail[31056]: v5MEwasf031056: from=root, size=296, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Jun 22 10:58:37 pbx-clbc sendmail[31057]: v5MEwa0H031057: from=<[email protected]>, size=563, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=pbx-clbc.x.y [127.0.0.1]
Jun 22 10:58:37 pbx-clbc sendmail[31056]: v5MEwasf031056: [email protected], ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30296, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v5MEwa0H031057 Message accepted for delivery)
Jun 22 10:58:40 pbx-clbc sendmail[31060]: STARTTLS=client, relay=vade-in1.mail.aa.bb., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256/256
Jun 22 10:58:41 pbx-clbc sendmail[31060]: v5MEwa0H031057: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=120563, relay=vade-in1.mail.aa.bb. [66.33.205.212], dsn=2.0.0, stat=Sent (Ok: queued as 515804000500E)
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.
root@pbx-clbc:/var/log $
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
The last line shows that it was Sent and "Ok: queued" by the upstream mail service so maybe you should look into their spam filtering or mail validation to see where your messages are disappearing to.
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
yeah I saw that too. I have a ticket opened with my mail host BUT I still need to login to webmin so I can see which mailer I'm running and see what the credentials I'm using for my mailhost :-(

Leon
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
Many thanks...both of my PBXes are configured using sendmail with nothing special so it looks like my mailhost changed something with regards to my shul pbx whereas my personal pbx still works. I bet it has to do with MX records
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
FYI ... looks like for some reason the pbx must have been put on a blacklist. I'm going to research more this weekend

THanks for the assist.

Leon
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
ok I've googled and cant find the nerdvittles article to use smarthost. I've tried to configure SENDMAIL to use a smarthost and it seems auth is failing. Very confusing. DIRECT mail flows to some domains (gmail.com not) and I cant afford to have users miss emailed voicemails.

TIA Leon
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
I found the original articles but it seems sendmail has changed and whats in incredible 13/12 is different than the older PIAF. No matter what I've tried SMTP AUTH is not working. I even loaded Postfix and that didnt work.
So once again, I am stumped.
Leon
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
I found the original articles but it seems sendmail has changed and whats in incredible 13/12 is different than the older PIAF. No matter what I've tried SMTP AUTH is not working. I even loaded Postfix and that didnt work.
So once again, I am stumped.
Leon

Here's the easiest SMTP Relay to set up with Gmail: https://pbxinaflash.com/community/threads/surfacepro-windows10-ubuntu.21358/#post-130431

See also our Nerd Vittles article documenting how to use Gmail as a Postfix SMTP Relay.
 
Last edited:

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
Hi Ward...thanks. Found that you had to include the entire gmail userid [email protected] in the authinfo. ALso found that gmail is rewriting the FROM address to root <[email protected]> instead of using the original email from the pbx.

I was able to massage the files to use my mail host so it now seems to be working but would be nice to use gmail if it didnt rewrite the from address.

Thanks again leon
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
more weirdness...
email from the webmin test tool and from CallerID SUperfecta now use the domain dyndns.org not my chosen domain which is also correctly setup in freepbx and if you type hostname. Where could this swap occurring?

Leon
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
in sendmail.cf there is/was a

MASQUERADE_DOMAIN(dyndns.org)dnl

Which I disabled and that made it go back to "asterisk" as the hostname with my FQDN.

So I think we're back to normal

Leon
 

MacNix

Guru
Joined
Jun 21, 2011
Messages
198
Reaction score
31
This refers to an article on a windows ubuntu build, not Centos6/piaf13-12.2 (which is what the OP referenced). The OP's referenced system does not recognize apt-get ('command not found').
Of course "yum" is on the OP's referenced OS & system.. but 'yum install nullmailer mailutils' returns
No package nullmailer available.
No package mailutils available.

IS THERE
an actual reference document/llocation on doing SMTP relay wiht GMAIL **SPECIFIC TO THE ACTUAL PLATFORM** being referenced?

See also our Nerd Vittles article documenting how to use Gmail as a Postfix SMTP Relay.
This references Wazo PBX. How is that related to Piaf13-12.2? Piaf 13-12.2 runs on Centos 6 or 7...
Is wazo on centos? Is this a valid move (to follow that advice), or is it going to crash a 13-2 install by running it?
 

MacNix

Guru
Joined
Jun 21, 2011
Messages
198
Reaction score
31
As a quick reference for others who may be frustrated with the random shotgun references, here's how I got mailworking rapidly on a 13-12.2 built (from .iso).

hope this helps someone who's trying to run a standard install on a base Pbxiaf
System: Centos 6.7, running 13-12.2 ISO file

(basic reference: I followed the instructions here for SSMTP http://linuxpitstop.com/install-ssmtp-to-send-emails-to-gmail-and-office3655/)

A. first, tried to just run yum install ssmtp - - it's not showing available on the base repositories..
I found that ssmtp is on EPEL repository
so I added EPEL (not sure this was necessary as I did a wget from a public page
yum install epel-release
B. download the installer for EPEL
C. ran the RPM (which appeared to also not be necessary)
rpm -ivh epel-release-6-8.noarch.rpm
D. Checked to see if EPEL is listed:
yum repolist

it isn't... dunno why
E. Ran direct pull for SSMTP
yum --enablerepo=epel install ssmtp

F: stopped & disabled sendmail and postfix (which were both not installed so this didn't matter, but might for you:
systemctl stop sendmail
systemctl stop postfix
systemctl disable sendmail
systemctl disable postfix

G ran config
alternatives --config mta

H configured ssmtp.conf (per http://linuxpitstop.com/install-ssmtp-to-send-emails-to-gmail-and-office3655/)
vi /etc/ssmtp/ssmtp.conf
or
nano /etc/ssmtp/ssmtp.conf

here's how mine looked...
root=postmaster
mailhub=billybobsdomain.com:465
[email protected]
AuthPass=billyb0bs3m*@ilpassword
UseSTARTTLS=NO
TLS_CA_File=NO
RewriteDomain=billybobsdomain.com
Hostname=billybobsdomain.com
FromLineOverride=YES

Save, exit, and test an email:
echo "Testing" | mail -s "Test Email" [email protected]


It may also be helpful to review maillogs if the error isn't clear: cat /var/log/maillog

When I was getting this going, had a few errors - - fortunately the errors show right up at the point of running the test email...
my errors were only port# or password issues, which were easy to fix..


(footnote: if someone wants to advise me why some of these steps didn't work, I could remove them from the list here) dunno if that's necessary for all.. Just trying to help bring some clarity to the confusion.
 

Members online

No members online now.

Forum statistics

Threads
25,781
Messages
167,507
Members
19,201
Latest member
troutpocket
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top