Testing UNIX `mail` command in OS X. Sending to gmail, but how do I reply?

0

OK, so sending works fine, but what I receive is from "Username@ComputerName.localhost", which clearly cannot be replied to. Is there an IP address linked to the email that can be used to respond? -- I'm guessing the sender information doesn't just disappear into the ether.

iDontKnowBetter

Posted 2012-04-19T22:24:16.013

Reputation: 273

Answers

1

No. Unless you are running a mail server such as Sendmail or Postfix and have a hostname and address registered on internet DNS, there is no way for the mail to find it's way back to you.

You could set this up and register your server with DynDNS or another service, you just have to be careful you don't become an open SPAM relay.

It's also possible to make the return address point to a valid eMail address you have, such as GMail.

George M

Posted 2012-04-19T22:24:16.013

Reputation: 632

1I remember configuring an MX entry on my DNS because I thought it'd be cool to use my machine as a mail server. Well, almost immediately I started to get spammed by people attempting to log into my system as all kinds. Everyone wants to control a SPAM relay. I deleted the DNS entry in the end. – paddy – 2012-04-19T22:54:58.937

1Use mail -r me@valid.domain.org to set appropriate reply-address. – paddy – 2012-04-19T22:55:50.823

@paddy Same here. Ah, those were the days! – George M – 2012-04-19T22:59:13.190