LinuxQuestions.org
Review your favorite Linux distribution.
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, 01:41 PM   #31
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
I'm thinking Im sending both the same
so you've inspected the packets leaving your machine both times and found them identical? The packets sent from the exchange server to the SMS gateway are identical?
Then the only conclusion is that the SMS gateway provider is spying on you and drops messages when you send them from Linux.
Sorry, I keep being rude but you keep not actually trying to troubleshoot anything at all. "It works on Windows" is not troubleshooting.
 
Old 06-26-2017, 02:03 PM   #32
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 273 View Post
How exactly do you do this on Windows? Do you use an existing Outlook account or somwething else? Can you send an email to any email addresses with Linux? When you send to an email address other that the SMS gateway from PowerShell what email address is shown as the sender and do you have that set up on the Linux machinery?
+1, the comparison i would like to see is:
  • using powershell, email an @aol, @yahoo, @gmail, ... mailbox and make note of who the recipient indicates is the sender.
  • using bash, email an @aol, @yahoo, @gmail, ... mailbox and make note of who the recipient indicates is the sender.
  • compare whether the two received emails are from the same expected sender ?

i remember years ago i was setting up a bugzilla installation. my company was based in boston but they had teams in europe and asia. everyone within the company would get emails when the status of their defects changed but for everyone else it would be blocked.

so i set up a cron at midnite so that the hostname of the server would change to doble.com; service smtpd restart; send out anything queued up for people outside the company; then change the hostname back to dobzilla.

Last edited by schneidz; 06-26-2017 at 02:18 PM.
 
Old 06-26-2017, 02:04 PM   #33
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
I am assuming inspecting the packets is pinging the server. I have pinged using "vtext.com" and did not get a response back. How can I check the packets sent from the Exchange server to the SMS gateway to be sure they are identical?
 
Old 06-26-2017, 02:07 PM   #34
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Can you send an e-mail using that command to your own regular e-mail account?
 
Old 06-26-2017, 02:10 PM   #35
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
I am assuming inspecting the packets is pinging the server. I have pinged using "vtext.com" and did not get a response back. How can I check the packets sent from the Exchange server to the SMS gateway to be sure they are identical?
No, that is not what I mean -- I really was being sarcastic and rude.
My apologies, might I suggest you read up a little about how email works, specifically SMTP, and google things like "open mail relay" to see why some servers block some messages.
 
Old 06-26-2017, 02:30 PM   #36
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
@Laserbeak & schneidz... seems that I can send an email from my corporate email to a private email. The 'sent from' is "<>".
 
Old 06-26-2017, 02:31 PM   #37
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
But there was some issues
 
Old 06-26-2017, 02:37 PM   #38
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
The 'sent from' is "<>".
See my (and other people's) previous posts -- reade about email!
 
Old 06-26-2017, 02:40 PM   #39
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
I get the suspicion that your command-line environment isn't configured to send e-mails.

I looked into it, and mine wasn't, I'm looking into getting it set up now.
 
Old 06-26-2017, 02:55 PM   #40
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
My command-line environment is configured to send emails, I have send emails via command-line plenty of times. I'll stop asking questions now because of 273's post. Sorry to cause confusion and bother.
 
Old 06-26-2017, 03:13 PM   #41
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
Sorry, please continue to post looking for help (I am not a representative of this site) but please read something about email and try to troubleshoot.
 
Old 06-26-2017, 03:15 PM   #42
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 trickydba View Post
My command-line environment is configured to send emails, I have send emails via command-line plenty of times. I'll stop asking questions now because of 273's post. Sorry to cause confusion and bother.
No, please, keep posting! I guess I was dead WRONG about my hunch about your command-line environment.
 
Old 06-26-2017, 03:20 PM   #43
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
Let me get together my thoughts about my attempts to avoid confusion and post relevant info that is beneficial to myself receiving help. I appreciate everyone's help
 
Old 06-26-2017, 03:25 PM   #44
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
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 "
 
Old 06-26-2017, 03:28 PM   #45
trickydba
Member
 
Registered: Nov 2016
Location: Atlanta,Georgia
Posts: 310

Original Poster
Rep: Reputation: Disabled
So I guess I can safely assume in Linux it is not set up to send SMS via mailx
 
  


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 05:02 PM.

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