User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 428,242 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,268 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 5985 | Replies: 1
Reply
Join Date: Apr 2005
Posts: 3
Reputation: droolin is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
droolin droolin is offline Offline
Newbie Poster

using sendmail from home machine

  #1  
Apr 24th, 2005
I have been writting several .sh shell scripts on my home machine to do various automated tasks. Some deal with regard to backing up remote servers to my home machine.
On my home machine, I do not run a mail server for I am connected to the internet via an isp.
On the remote servers that I maintain, I have put into place routines to do sendmails which notify me of the final status of the automated scripts that I have placed there. And I receive e-mails from these machines. These machines do have mail servers.
When I have tried to use the same scripts on my home machine, I do not receive e-mails. Now, I know that part of the problem is that I do not run a mail server on my home machine. But I have changed sendmail to forward to my mail.xxxxxxxx.net mail server for my isp.
My problem is. How do I provide login information to this account? To be truthfull, I would like to send all of these messages to my gmail account because I have them saved and can access them from anywhere.
Any sugestions would be most appriceated.

droolin
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2004
Location: Pasadena, Maryland
Posts: 298
Reputation: Cain is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
Cain's Avatar
Cain Cain is offline Offline
Posting Whiz in Training

Re: using sendmail from home machine

  #2  
Jul 28th, 2005
use the mail command and send it directly from your remote
systems to your gmail account. youll have to modify the
scripts on each remote system.

your ISP may be blocking outbound traffic on port 25 from your home machine.
(prevents spamming) just redirect port 25 to another port (like http port 80)
this would only work if youre not intending to run apache on port 80 locally.
The iptables /etc/sysconfig/iptables should look something like this:
iptables -t nat -A PREROUTING -t nat -p tcp -d 127.0.0.1 --dport 25 -j DNAT --to 127.0.0.1:80
youll have to ensure iptables starts at runtime and is restarted after you make your changes. restart networking
I used up all my money on you baby...
... and I want it BACK.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Shell Scripting Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 3:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC