[NBLUG/talk] How to set FROM field in script-generated email?

Dave Sisley dsisley at sonic.net
Mon Nov 5 17:24:25 PST 2007


Troy Arnold wrote:
>  On Mon, Nov 05, 2007 at 02:10:19PM -0800, Dave Sisley wrote:
>   
>> Hey:
>>
>> I use a couple of scripts to send out some emails, using mutt in the 
>> shell script.  I'd never noticed that the FROM field was blank in these 
>> emails.
>>
>> One recipient has a mail.com address, and that email would not go 
>> through.  I added 'export EMAIL=myaddress at work' to my .bash_profile and 
>> tried sending an email (from a script) to my sonic address.  It was 
>> blocked -  "(reason: 554 5.7.1 localhost.localdomain isn't valid for 
>> HELO/EHLO, please fix your server.)".  Sonic won't accept my email, 
>> either, since I don't have a real domain name for my box.
>>     
>
>
> This message is referring to the hostname of your local machine.  Mutt
> hands off delivery off the message to the local MTA; it doesn't do SMTP
> itself.
>   
Sure - my machine has no domain set.  It's just localdomain.
> So, you can use another scriptable client that does do SMTP (sorry, no
> suggestions), or configure your local MTA to send a valid HELO.  
Would that be sendmail, then?  I took a quick look at the config file 
for that, but don't know where to set it. (I have a book I won @ NBLUG, 
I'll dig that out when I get a chance).
> That
> should be whatever your reverse IP address is.  If you're on on a sonic DSL
> account it would be something like: 69-12-131-nnn.dsl.static.sonic.net
>   
so if I have a sonic IP: 66.77.88.99, the reverse IP would be: 
66-77-88-nnn.dsl.static.net?
> Also, if you have a static IP address from Sonic, they've got a nice tool
> to set your own reverse DNS.
>   
I just looked at that tool, and I don't understand it.  The address that 
pops up on the screen doesn't even look like our address!
> -troy



-- 
Dave Sisley
dsisley at sonic.net
roth-sisley.net




More information about the talk mailing list