Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Mailx fails when ".com" is specified in email body

Shell Programming and Scripting


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-02-2018   -   Original Discussion by mohtashims
mohtashims's Unix or Linux Image
mohtashims mohtashims is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 21 June 2018, 3:55 AM EDT
Posts: 801
Thanks: 213
Thanked 7 Times in 7 Posts
Mailx fails when ".com" is specified in email body

Hi


Below works and I do receive the email.



Code:
 
 echo "Unable to send file as attachment as File Size is too big i.e. more than 35 MB. Please download from user1@myserv0131:/web/admin/email/serv0131.mybank" | mailx -s "Attachment too BIG | download from the server" mohtashim@gmail.com

However, the below fails and I don't receive any errors or emails.



Code:
 
 echo "Unable to send file as attachment as File Size is too big i.e. more than 35 MB. Please download from user1@myserv0131:/web/admin/email/serv0131.mybank.com" | mailx -s "Attachment too BIG | download from the server" mohtashim@gmail.com

The only change is the ".com" string to the email body.

Quote:
uname -a
Linux myserv0131 3.10.0-693.17.1.el7.x86_64 #1 SMP Sun Jan 14 10:36:03 EST 2018 x86_64 x86_64 x86_64 GNU/Linux

Can you please help me with a fix / solution to this problem ?
Sponsored Links
    #2  
Old Unix and Linux 05-03-2018   -   Original Discussion by mohtashims
rovf's Unix or Linux Image
rovf rovf is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 22 June 2018, 12:32 AM EDT
Posts: 225
Thanks: 31
Thanked 51 Times in 44 Posts
Either on the sending side, more likely on the receiving side, this mail is considered spam. As a first step, I would for testing use a destination address where you are sure that no spam filtering takes place, and see whether the mail arrives there.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using "mailx" command to read "to" and "cc" email addreses from input file asjaiswal UNIX for Dummies Questions & Answers 2 10-11-2014 09:32 PM
awk command to replace ";" with "|" and ""|" at diferent places in line of file shis100 Shell Programming and Scripting 7 03-16-2011 08:59 AM
#!/bin/sh script fails at StringA | tr "[x]" "[y]" by_tg UNIX for Dummies Questions & Answers 3 02-22-2008 11:17 AM



All times are GMT -4. The time now is 11:53 AM.