LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 06-17-2004, 10:33 AM   #1
jonavogt
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]


Hi,
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
Code:
   
: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:
Code:
:0cw
* ! ^X-LOOP: lifeafterdeath\.de
| formail -fi "From: mailer@lifeafterdeath.de" -A "X-LOOP: lifeafterdeath.de"|\
/usr/sbin/sendmail -oi xn@lifeafterdeath.de
procmail logs:
Code:
procmail: Match on ! "^X-LOOP: lifeafterdeath\.de"
procmail: Executing " formail -fi "From: mailer@lifeafterdeath.de" -A "X-LOOP: lifeafterdeath.de"| /usr/sbin/sendmail -oi xn@lifeafterdeath.de"
procmail: Error while writing to " formail -fi "From: mailer@lifeafterdeath.de" -A "X-LOOP: lifeafterdeath.de"| /usr/sbin/sendmail -oi xn@lifeafterdeath.de"
procmail: Assigning "LASTFOLDER= formail -fi "From: mailer@lifeafterdeath.de" -A "X-LOOP: lifeafterdeath.de"| /usr/sbin/sendmail -oi xn@lifeafterdeath.de"
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


Jonathan

Last edited by jonavogt; 01-15-2009 at 10:33 AM. Reason: closed thread
 
Old 01-15-2009, 05:45 AM   #2
netweblogic
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:
Code:
SHELL=/bin/sh
Also, instead of using just "formail", try either:
Code:
/usr/bin/formail
or use the folder that is returned by the following in the commandline:
Code:
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
jonavogt
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.
 
  


Reply


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


All times are GMT -5. The time now is 12:45 PM.

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