nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

mail forward between ISPs

This is a discussion on mail forward between ISPs within the Shell scripting forums, part of the Development/Scripting category; Hello, I'm on Ubuntu 6.06 and I also have a Debian 2.4 embedded Linux system. I need to configure a ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 09-19-2006, 05:38 PM
Junior Member
 
Join Date: Sep 2006
Posts: 3
Rep Power: 0
picioslug
Default mail forward between ISPs

Hello,
I'm on Ubuntu 6.06 and I also have a Debian 2.4 embedded Linux system.

I need to configure a script or an application that takes my mail from
one remote ISP account and send everything to another remote account.
This is because my ISP block me when I try to download my mail from
other providers.
I know that fetchmail can help but I don't know how to configure It.
Maybe I have to do a Pipe between fetchmail and smtpclient timely
based with a cron job?

I saw around people talking about fetchmail/getmail or procmail can help to do the job, but I don't understand well how.
many thanks.
Picio
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-19-2006, 08:30 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Let us try to solve your problem step by step.

Fetch mail configuration is quite easy. Make sure you have Fetch mail package installed. Open .fetchmailrc config file:
Code:
cd; touch .fetchmailrc
chmod 600 .fetchmailrc
vi .fetchmailrc
Append following line
Code:
poll POP3.ISP.COM with proto POP3
user POP3USERNAME there with password "POP3PASSWORD" is "LOCAL-USER-NAME" here
Save and close the file.

To forward an email use .forward file:
Code:
echo 'somewhere@yahoo.com' > .forward
To fetch an email type:
Code:
fetchmail
Try out and let me know...
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 09-23-2006, 05:53 PM
Junior Member
 
Join Date: Sep 2006
Posts: 3
Rep Power: 0
picioslug
Default pop conect but unable to send....

Hello, thanks for the fast answer, I'm so late giving you feedback because I was traveling....

Anyway this is what I got in may fetchmail log:

fetchmail: sleeping at Wed, 20 Sep 2006 13:55:42 +0200 (CEST)
fetchmail: awakened at Wed, 20 Sep 2006 14:26:00 +0200 (CEST)
fetchmail: 1 message for ejspino at in.xxxpopxxx.xx (244894 octet.
fetchmail: reading message ejspino@in.xxxpopxxx.xx:1 of 1 (244894 octet fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from in.alice.it
fetchmail: Query status=10 (SMTP)
fetchmail: sleeping at Wed, 20 Sep 2006 14:26:04 +0200 (CEST)

I forgot to tell you that this is an embedded linux, so I'm trying to have as less application as I can -> sendamil is not installed. Instead I have smtpclient: does this work too?

What do you think?

Thanks again
Picioslug
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
why can't forward large email attachment? khaosregion Mail Servers 4 10-26-2007 12:49 AM
FetchMail/GetMail/Procmail mail forward between providers picioslug Linux software 0 09-19-2006 05:33 PM
How to forward an email to other account tom Getting started tutorials 2 09-25-2005 09:58 PM


All times are GMT +5.5. The time now is 08:47 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36