emailing with scripts

Status
Not open for further replies.

talon42

Dabbler
Joined
May 15, 2012
Messages
33
in version 7 I was using msmtp in some scripts but I don't see that it is installed on 8.2. What's the preferred command/syntax in 8.2?
 

talon42

Dabbler
Joined
May 15, 2012
Messages
33
This is evidently not as easy as I had hoped.
I'm using these instructions http://scratching.psybermonkey.net/2011/03/sendmail-how-to-test-sending-email.html
but it's coming back with WARNING: local host name (Software) is not qualified; see cf/README: WHO AM I?
***@gmail.com,***@hotmail.com... Connecting to [127.0.0.1] via relay...
***@gmail.com,***@hotmail.com... Deferred: Connection refused by [127.0.0.1]
This appears to be a sendmail error. Has anyone seen recent instructions for getting email working in scripts/ what needs to be configured in the sendmail.cf?
 

RichR

Explorer
Joined
Oct 20, 2011
Messages
77
well 8.2b4 has a possibility of not having the bug per the bug resolution report (not sure off the top of my head when that version was released, and frankly, I'm whooped right now...
The point was that most recent 8.0.4 had a bug where users other than root could not send mail (at least after my upgrade from 8.0.2, having little to do with cron. If you look at the report, although I initially piped the output of the script that cron called to mail, I tested mail from the command line, which is what blew the errors, and subsequently drove me to make the report, and them to validate the bug.

Sorry if it doesn't apply, I thought it might be related.

good luck
 

talon42

Dabbler
Joined
May 15, 2012
Messages
33
Just found out from another thread that it works if not running from the Jail. That does seem to be the case. Oddly enough, I'm not getting the errors anymore. Both mail and sendmail are working. Next step is to put them in my cron script...
 
Status
Not open for further replies.
Top