LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-26-2017, 03:32 PM   #46
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373

Quote:
Originally Posted by trickydba View Post
So I guess I can safely assume in Linux it is not set up to send SMS via mailx
neither is Windows but somebody did that for you.
 
2 members found this post helpful.
Old 06-26-2017, 03:45 PM   #47
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by trickydba View Post
@Laserbeak & schneidz... seems that I can send an email from my corporate email to a private email. The 'sent from' is "<>".
is that for both the powershell and bash examples ? is that who you are expecting to be identified as ?

is <> even an allowed sender address. does that mean no-one can reply to you ? i wouldve thought that most mail transport agents would reject that email address automatically assuming you are a mass spammer.

your responses seems uncomprehensive and purposely obtuse.

Last edited by schneidz; 06-26-2017 at 03:49 PM.
 
1 members found this post helpful.
Old 06-26-2017, 04:12 PM   #48
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Quote:
Originally Posted by schneidz View Post
is that for both the powershell and bash examples ? is that who you are expecting to be identified as ?

is <> even an allowed sender address. does that mean no-one can reply to you ? i wouldve thought that most mail transport agents would reject that email address automatically assuming you are a mass spammer.

your responses seems uncomprehensive and purposely obtuse.
I think s/he means the address is in those pointy brackets, not that they are alone, i.e. <myaddress@google.com>
 
1 members found this post helpful.
Old 06-27-2017, 03:57 AM   #49
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by trickydba View Post
Aaah just got a message via command line in Linux. It stated I have new mail!!!
When I opened up the file using the "CAT" command it shows all my attempts to send a SMS and that the action has failed.
The location of this file is " //var/spool/mail "
Progress! We need to see the contents of those emails...it will tell us why the message failed! just post one of the messages you see via cat
 
1 members found this post helpful.
Old 06-27-2017, 11:28 AM   #50
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by schneidz View Post
is <> even an allowed sender address. does that mean no-one can reply to you ? i wouldve thought that most mail transport agents would reject that email address automatically assuming you are a mass spammer.
When the sender (From: ) is identified as <>, the email is a BOUNCE message from either the sending MTA or the receiving MTA. No, the email cannot be replied to.
It would be contrary to the RFC to reject email From: <> I tend to delete it when it's To: a non-existent user, because it is the result of a forged From: on some spam sent from some other server. However, when it's To: a real user (customer), then it gets delivered, because it will tell the user why their email didn't work.

Which is why we need to see the emails the OP found in /var/spool/mail -- they will tell us why the email is not being delivered.
 
1 members found this post helpful.
Old 06-28-2017, 09:21 AM   #51
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
This is from Putty:
Quote:
If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<recipient@email.com>: connect to mmx.mail.com[44.28.122.122]:25: Connection
timed out

--794F8403F3.1484057848/christmas.localdomain
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; christmas.localdomain
X-Postfix-Queue-ID: 794F8403F3
X-Postfix-Sender: rfc822; oracle@christmas.localdomain
Arrival-Date: Thu, 5 Jan 2017 13:59:47 +0000 (GMT)

Final-Recipient: rfc822; recipient@email.com
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to mmx.mail.com[44.28.122.122]:25:
Connection timed out

--794F8403F3.1484057848/christmas.localdomain
Content-Description: Undelivered Message
Content-Type: message/rfc822

Return-Path: <oracle@christmas.localdomain>
Received: by christmas.localdomain (Postfix, from userid 490)
id 794F8403F3; Thu, 5 Jan 2017 13:59:47 +0000 (GMT)
Date: Thu, 05 Jan 2017 13:59:47 +0000
To: recipient@email.com
Subject: email subject
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20170105135947.794F8403F3@christmas.localdomain>
From: oracle@christmas.localdomain (Oracle_User)
 
Old 06-28-2017, 09:33 AM   #52
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
This is the rest:
Quote:
The mail system

<mobilenumber@vtext.com>: connect to
smtp.02.vzw.a.cloud.net[34.35.36.220]:25: Connection timed out

--3F58840CFF.1498656088/christmas.localdomain
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; christmas.localdomain
X-Postfix-Queue-ID: 3F58840CFF
X-Postfix-Sender: rfc822; oracle@christmas.localdomain
Arrival-Date: Fri, 23 Jun 2017 12:25:14 +0000 (GMT)

Final-Recipient: rfc822; mobilenumber@vtext.com
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to
smtp.02.vzw.a.cloud.net[34.35.36.220]:25: Connection timed out
 
Old 06-28-2017, 11:45 AM   #53
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
OK. mailx is using Postfix but postfix has no path to the outside world. The BOUNCEs are from your local MTA:
Quote:
Reporting-MTA: dns; christmas.localdomain
Your next step is to determine why postfix can't see outside destinations. Note that in a corporate environment, that may be intentional. Back in the day, I once had a requirement to download and install software to a server that didn't have internet access. I had to d/l onto my windows desktop, then sftp to the server from there. That doesn't help you, however.

It is possible that you can configure the users email (in ~/.mailrc) to use the mail server that does have access to the internet, but you'll need to discuss that with the server's administrator and/or the corporate security folks. They'd also be the ones to configure the server to have internet access.

Please let us know what you find out.

Last edited by scasey; 06-28-2017 at 11:47 AM.
 
1 members found this post helpful.
Old 06-28-2017, 02:49 PM   #54
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
are you sure it is working for regular email ?:
Code:
Final-Recipient: rfc822; recipient@email.com
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to mmx.mail.com[44.28.122.122]:25:
Connection timed out

...

Final-Recipient: rfc822; recipient@email.com
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to mmx.mail.com[44.28.122.122]:25:
Connection timed out
it seems to be timing out for both regular email and text fone-numbers.
 
1 members found this post helpful.
Old 06-28-2017, 03:21 PM   #55
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by schneidz View Post
are you sure it is working for regular email ?:
Code:
Final-Recipient: rfc822; recipient@email.com
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to mmx.mail.com[44.28.122.122]:25:
Connection timed out

...

Final-Recipient: rfc822; recipient@email.com
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to mmx.mail.com[44.28.122.122]:25:
Connection timed out
it seems to be timing out for both regular email and text fone-numbers.
As I recall, the OP said it was working for regular email destinations within his network.
We suggested testing with a destination outside the network, and those, like email to vtext.com, did not work.

That condition can make sense in a corporate network, where "internal" servers are often behind one or more firewalls with all access to the "outside" cut off.

It should be possible to configure the server to use the corporate MTA that is connected to the world, but I suspect the OP would need to get permission, and maybe help, to do that.

Last edited by scasey; 06-28-2017 at 03:27 PM.
 
2 members found this post helpful.
Old 06-29-2017, 07:31 AM   #56
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
Quick question kinda outside the scope of this issue........what does OP stand for?
 
Old 06-29-2017, 08:04 AM   #57
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Original Post or Original Poster depending on context.
 
1 members found this post helpful.
Old 06-29-2017, 01:40 PM   #58
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by trickydba View Post
Quick question kinda outside the scope of this issue........what does OP stand for?
I see you got an answer...I was going to reply with "you"

Any thoughts about my thoughts in #53 ?
 
Old 06-29-2017, 01:44 PM   #59
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
I was trying to find "~/.mailrc" to make some 'adjustments' but could not find it. Is it at the same path in every distro ?
 
Old 06-29-2017, 02:31 PM   #60
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by trickydba View Post
I was trying to find "~/.mailrc" to make some 'adjustments' but could not find it. Is it at the same path in every distro ?
It probably doesn't exist if there has been no customization of email usage at the user level. I don't have one for either my personal account or the superuser account, yet mailx works for me to send email from both. But then, my server's not behind a corporate firewall.

Again, I think you, as a DBA, (right?), are going to have to discuss your issue with the server's admin, to see what it takes to send email to the world from that server. [That's the issue...sending email. If/when you can send email to vtext.com, you will get your messages on your phone.] Don't be surprised if you're told "Not going to happen" -- that server is [I presume] your Oracle database server, and therefore contains proprietary data and is cut off from the world for some very good reasons.

If that happens, consider sending the email to your corporate mailbox, then putting a filter there to forward the email to your phone@vtext.com. Use something unique in the subject to trigger that forward. Just an idea.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sockets with linux, how to send same text string to all connected clients c/c++ Mogget Programming 9 05-18-2010 04:48 AM
in Pascal: how to exec a program, discard text output or send to text file Valkyrie_of_valhalla Programming 6 05-02-2007 09:50 AM
How do I use Linux POST command to send text to remote server Bill K Linux - General 1 05-19-2006 09:26 PM
Send text message from windows to linux ok goutham_v Linux - General 3 04-18-2004 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration