[plug] mail forwarding.
John Breen
locutus at borg.apana.org.au
Sun May 19 10:11:57 WST 2002
On Sun, 2002-05-19 at 10:05, Andrew Francis wrote:
> Formail (which usually comes with procmail) has an option to split up a
> mailbox and pipe each message to a command. So something along the lines
> of (completely untested btw :)
>
> cat /var/spool/mail/mymailspool | procmail -s /usr/bin/sendmail -oi <myaddress>
>
Hey thanks Andrew. With a few minor mods, it did the job...
cat /var/mail/user | formail -s /usr/sbin/sendmail -oi <user at server>
prolly mostly 'cause it's a debian box :)
More information about the plug
mailing list