Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-17-2004, 10:33 AM   #1
LQ Newbie
Registered: Apr 2004
Location: Germany
Distribution: SUSE 9.2 Pro | Gentoo | Fli4l
Posts: 16

Rep: Reputation: 0
[solved] formail fails [qmail,vpopmail,procmail,formail]

using procmail and formail on a qmail/vpopmail server I try to build a forwarder from my home emailaddress to another address of mine. I looked at man procmailex and found the following reciepe
:0 c
* !^X-Loop: yourname@your.main.mail.address
| formail -A "X-Loop: yourname@your.main.mail.address" | \
$SENDMAIL -oi yourname@the.other.account
changed it to:
* ! ^X-LOOP: lifeafterdeath\.de
| formail -fi "From:" -A "X-LOOP:"|\
/usr/sbin/sendmail -oi
procmail logs:
procmail: Match on ! "^X-LOOP: lifeafterdeath\.de"
procmail: Executing " formail -fi "From:" -A "X-LOOP:"| /usr/sbin/sendmail -oi"
procmail: Error while writing to " formail -fi "From:" -A "X-LOOP:"| /usr/sbin/sendmail -oi"
procmail: Assigning "LASTFOLDER= formail -fi "From:" -A "X-LOOP:"| /usr/sbin/sendmail -oi"
When I cat a message to procmail (cat /tmp/test.msg| procmail -p -m /var/vpopmail/domains/procmailrc.root ) all works well.

but since procmail is run as vpopmail:vpopmail it just fails.
I followed the vpopmail/qmail howto at gentoo's website and everything works well. except forwarding.
I can't use procmail ! stile to forward to mail addresses. since my smarthost doesn't accept those messages. That's why I can't simply forward those messages.

I googled but wasn't successful. Any hints?

versions are:
qmail 1.03-r13
vpopmail 5.4.0
procmail 3.22-r6
formail 3.22

system is a gentoo


Last edited by jonavogt; 01-15-2009 at 10:33 AM. Reason: closed thread
Old 01-15-2009, 05:45 AM   #2
LQ Newbie
Registered: Aug 2008
Posts: 11

Rep: Reputation: 1
Solution for those that come across this....

A little late for jonavogt probably, but in case someone stumbles upon this post, some things that may help:

Try adding this to the top of your rc file:
Also, instead of using just "formail", try either:
or use the folder that is returned by the following in the commandline:
whereis formail
You should also be able to use the variable $FORMAIL instead, that should work too.
Old 01-15-2009, 10:29 AM   #3
LQ Newbie
Registered: Apr 2004
Location: Germany
Distribution: SUSE 9.2 Pro | Gentoo | Fli4l
Posts: 16

Original Poster
Rep: Reputation: 0
Hi netweblogic,

thanks for still answering. You're right its a little late, but at least this won't be another thread which stays unanswerd. Thanks for taking the time to answer.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
formail with procmail priyesh Programming 2 10-23-2003 12:01 AM
procmail formail anonymous re-mailer for my very expensive two-way pager? jgilels Linux - Software 11 07-04-2003 10:44 AM
Procmail and formail aBl_tR3kr Linux - Software 1 03-26-2003 11:15 AM
procmail and formail aBl_tR3kr Linux - Networking 1 03-26-2003 11:02 AM
procmail and formail aBl_tR3kr Linux - Newbie 0 03-26-2003 10:41 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration