Dhiran Rajbhandari saw fit to inform LI that: 

>I am not able to forward via fetchmail to any particular user. 
>When I fetch any mail from remote mail server it forwards to that user who 

This is a frequent problem when running fetchmail in multi-drop
mode.  Fetchmail + Procmail will be the best option.

Do this - 

# chmod /var/spool/mail 1777

>is invoking the fetchmail. Please let me know what is the exact syntax to 
>forward any user. Also what is the keyword for .fetchmailrc to forward 
>email to any other user.

Make your .fetchmailrc like this -

defaults
forcecr
poll yourserver.com with proto pop3 no dns 
user user1 with password "tommy" is user r.suresh here and \
wants mda "sed -e '1s/^\t/Received: /'| formail | \
/usr/bin/procmail -d user1"
fetchall

[the above (user user1 .... upto procmail -d user1) has to be on 1 line -
unwrapped.  Failing that, it can be split into 3 lines using backslashes
like above.

Add similar lines (user user1, user user2 ... etc for multiple pop accts
on your server.  If you are using imap, write proto imap instead of proto
pop3.

Save the abv as .fetchmailrc in root directory and run it using a cron job
for best effect (to regularly poll the server).

-- 
Suresh Ramasubramanian + President, CAUCE India + www.india.cauce.org
Stopping Spam In India + [EMAIL PROTECTED] + Spammers are Losers
--
Some of my readers ask me what a "Serial Port" is.
The answer is: I don't know.
Is it some kind of wine you have with breakfast?

-----------------------------------------------------------------------
LIH is all for free speech.  But it was created for a purpose - to help
people discuss issues about installing and running Linux.  If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.

Reply via email to