TIPS SMTP from Incredible in Ubuntu 18.04

unsichtbarre

Member
Joined
May 17, 2009
Messages
116
Reaction score
2
I have Incredible + Enchelada on UpCloud 18.04 and having trouble getting mail to work. I have set up SMTP relay through my Google Apps and whitelisted my PBX IP on port 25 and I have configured smtp-relay.gmail.com:25 in webmin.

Gmail seems to be accepting the message, but it never gets delivered - not to trash, not to spam, nowhere.

I think the problem is my user: [email protected] - how would I change this to [email protected] so Google would forward it. Here are the logs:
Code:
Sep  9 20:40:23 pbx1 sendmail[13162]: x8A0eNQV013162: to="John Borhek" <[email protected]>, ctladdr=asterisk (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=43599, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x8A0eNae013163 Message accepted for delivery)
Sep  9 20:41:41 pbx1 sm-mta[12839]: restarting /usr/sbin/sendmail-mta due to signal
Sep  9 20:41:42 pbx1 sm-mta[13368]: starting daemon (8.15.2): [email protected]:10:00
Sep  9 20:42:30 pbx1 sm-mta[13165]: x8A0eNae013163: to=<[email protected]>, ctladdr=<[email protected]> (1000/1000), delay=00:02:07, xdelay=00:02:07, mailer=relay, pri=133731, relay=25, dsn=4.0.0, stat=Deferred
Sep  9 20:42:34 pbx1 sendmail[13493]: x8A0gX60013493: from=asterisk, size=20095, class=0, nrcpts=1, msgid=<[email protected]>, [email protected]
Sep  9 20:42:34 pbx1 sm-mta[13494]: x8A0gY6i013494: <[email protected]>... User unknown
Sep  9 20:42:34 pbx1 sendmail[13493]: x8A0gX60013493: to="John Borhek" <[email protected]>, ctladdr=asterisk (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=50095, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Sep  9 20:42:34 pbx1 sm-mta[13494]: x8A0gY6i013494: from=<[email protected]>, size=20095, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Sep  9 20:46:32 pbx1 sm-mta[13368]: restarting /usr/sbin/sendmail-mta due to signal
Sep  9 20:46:32 pbx1 sm-mta[14087]: starting daemon (8.15.2): [email protected]:10:00
Sep  9 20:48:10 pbx1 sendmail[14272]: x8A0mAMG014272: from=asterisk, size=18409, class=0, nrcpts=1, msgid=<[email protected]>, [email protected]
Sep  9 20:48:10 pbx1 sm-mta[14273]: x8A0mAQW014273: from=<[email protected]>, size=18541, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Sep  9 20:48:10 pbx1 sendmail[14272]: x8A0mAMG014272: to="John Borhek" <[email protected]>, ctladdr=asterisk (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=48409, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x8A0mAQW014273 Message accepted for delivery)
Sep  9 20:48:42 pbx1 sm-mta[14088]: x8A0eNae013163: to=<[email protected]>, ctladdr=<[email protected]> (1000/1000), delay=00:08:19, xdelay=00:02:10, mailer=relay, pri=223731, relay=25, dsn=4.0.0, stat=Deferred
Sep  9 20:50:10 pbx1 sm-mta[14275]: x8A0mAQW014273: to=<[email protected]>, ctladdr=<[email protected]> (1000/1000), delay=00:02:00, xdelay=00:02:00, mailer=relay, pri=138541, relay=25, dsn=4.0.0, stat=Deferred
[CODE]
 
Last edited:

unsichtbarre

Member
Joined
May 17, 2009
Messages
116
Reaction score
2
More data. I think it is the local asterisk that is rejecting the message 'User unknown"
Code:
Final-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; [127.0.0.1]
Diagnostic-Code: SMTP; 550 5.1.1 <[email protected]>... User unknown
Last-Attempt-Date: Sun, 15 Sep 2019 13:25:57 -0400

--x8FHPvDZ001888.1568568357/pbx1.mydomain.com
Content-Type: message/rfc822

Return-Path: <[email protected]>
Received: (from [email protected])
        by pbx1.mydomain.com (8.15.2/8.15.2/Submit) id x8FHPvDY001888;
        Sun, 15 Sep 2019 13:25:57 -0400
Date: Sun, 15 Sep 2019 13:25:57 -0400
From: root <[email protected]>
Message-Id: <[email protected]>
Subject: testmessage
To: <[email protected]>
X-Mailer: mail (GNU Mailutils 3.4)
 

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,367
Messages
137,355
Members
14,575
Latest member
Issue