mailx to external email address | Unix Linux Forums | OS X (Apple)

  Go Back    


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

mailx to external email address

OS X (Apple)


Tags
email, mailx, sendmail

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-11-2011
FlyingSquirrel's Avatar
FlyingSquirrel FlyingSquirrel is offline
Registered User
 
Join Date: May 2008
Last Activity: 11 November 2012, 12:42 AM EST
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
mailx to external email address

Hi, How can I use "mailx" command to send message to an email address like this?


Code:
echo "This email body" | mailx -s "my subject" "email@hostname.com"

There may be some setup required in sendmail or postfix??

OS = Snow Leopard 10.6

Last edited by pludi; 07-12-2011 at 09:19 AM.. Reason: update
Sponsored Links
    #2  
Old 07-12-2011
jgt's Avatar
jgt jgt is offline Forum Advisor  
Registered User
 
Join Date: Apr 2007
Last Activity: 20 November 2014, 8:48 PM EST
Location: 44.21.48N 80.50.15W
Posts: 1,563
Thanks: 1
Thanked 160 Times in 152 Posts
Set up a "smart host" in sendmail (usually the same machine as the outbound server in your graphical email client.)
If you do not want to use a smart host, then you will need a static ip, dns and reverse dns for the domain that you are using.
Sponsored Links
    #3  
Old 07-19-2011
FlyingSquirrel's Avatar
FlyingSquirrel FlyingSquirrel is offline
Registered User
 
Join Date: May 2008
Last Activity: 11 November 2012, 12:42 AM EST
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
I was able to get the sendmail kind of working.
Using the instructions on this site:
http://yoavgivati.com/2009/10/let-po...-snow-leopard/

I can send mail from OS X.

Now instead of arriving into the inbox, the email goes into the junk mailbox. Could be because gmail is catching it as spam for some reason.

What do you suggest to get around this issue?
    #4  
Old 07-19-2011
jgt's Avatar
jgt jgt is offline Forum Advisor  
Registered User
 
Join Date: Apr 2007
Last Activity: 20 November 2014, 8:48 PM EST
Location: 44.21.48N 80.50.15W
Posts: 1,563
Thanks: 1
Thanked 160 Times in 152 Posts
Check all the header records in the mail that arrives in junk. You may find the reason that it is marked junk.
Try sending to a Windows POP client (Outlook Express, Thunderbird) and see if it also goes to junk.
Sponsored Links
    #5  
Old 07-21-2011
FlyingSquirrel's Avatar
FlyingSquirrel FlyingSquirrel is offline
Registered User
 
Join Date: May 2008
Last Activity: 11 November 2012, 12:42 AM EST
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
I did try to a different address and it went through ok. Thanks.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to verify email address using mailx command ? rak007 UNIX for Dummies Questions & Answers 1 06-11-2009 08:17 AM
how to know if the mailx command really sends the mail to the email address? sheenshine Shell Programming and Scripting 3 09-17-2008 09:34 AM
mailx- can we change the from address in the email that is sent out. radhika UNIX for Dummies Questions & Answers 5 09-21-2005 08:37 AM
Send email where # is in the email address - Using Unix jingi1234 UNIX for Dummies Questions & Answers 1 05-23-2005 12:23 PM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 10:43 AM



All times are GMT -4. The time now is 08:30 PM.