Paul Johnson wrote:

Jody Grafals <[EMAIL PROTECTED]> writes:



Is there an easy way to have fetchmail get mail from a remote server
then have sendmail push it back out to another server? If I did not
have to make an account for each address that would be ideal.



To have your mail automagically sent elsewhere, just create a
~/.forward file that contains only the email address that you want it
to go to followed by a newline.


That would work but then I would have to creat 30 users with 30 .forwards I has hoping to have one file like this then have cron run it.

##pullpush.sh
fetchmail --protocol POP3 --keep --username bill 67.xxx.111.xx
fetchmail --protocol POP3 --keep --username tom 67.xxx.111.xx
fetchmail --protocol POP3 --keep --username bob 67.xxx.111.xx
fetchmail --protocol POP3 --keep --username sue 67.xxx.111.xx
fetchmail --protocol POP3 --keep --username rocky 67.xxx.111.xx

But this just put everyhting in roots mailbox and dose not send it out?



I have a local server setup and it thinks its email.foobar.com and its
working great. I use fetchmail to get mail from the real server using
the real server's IP address, and everyone in the office can see their
mail and can send mail to each other. The problem is that since the
fake server thinks it's the real server, I can't deliver mail from the
fake server to the real server. (Since the fake server thinks its
foobar.com, anything @foobar.com stays on the local network.) Since I
have no control over the real server I would like to use a 3rd server
(my debian server) to fetchmail (via a ssh tunnel) from the fake
server and send it to the real foobar.com server. Kind of complicated
but I think it would work well.



Why did you set it up so it thinks it's your mail server? You need to have your name to be a unique name or you will never be able to send to that server.





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to