•
•
•
•
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
![]() |
•
•
Join Date: Apr 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
•
•
Join Date: Aug 2004
Location: Pasadena, Maryland
Posts: 298
Reputation:
Rep Power: 5
Solved Threads: 2
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
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.
... and I want it BACK.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- How to resize a Windows 2003 partition? (Windows NT / 2000 / XP / 2003)
- Two home networks... (Networking Hardware Configuration)
- How to run ASP scripts on Win XP Home (ASP)
- Optimum Online Web Hosting. (Networking Hardware Configuration)
- Dual Booting XP Pro & Home - Issue (Windows NT / 2000 / XP / 2003)
- HELP! Upgrading to windows xp home (Windows NT / 2000 / XP / 2003)
- Remotely Shut Down Windows XP Home? (Windows NT / 2000 / XP / 2003)
- Cablevision OptOnline (Networking Hardware Configuration)
Other Threads in the Shell Scripting Forum
- Previous Thread: HElP script for send mail
- Next Thread: New to shell script


Linear Mode