?
Solved

procmail mail forwarding problem

Posted on 2003-03-13
3
Medium Priority
?
154 Views
Last Modified: 2013-12-16
Hello--

I am having a problem with procmail.  What I am trying to do is take a received email and forward it to another email address masking the both addresses with their corresponding username@mydomain.com email address.  So if a user foo@yahoo.com sends a message to bar@mydomain.com, bar@mydomain receives an email from foo@mydomain.com at their bar@yahoo.com address.  Does this make sense?  I'm basically trying to route emails through my server masking the real addresses.  The forwarding works, but the message body is not delievered.  The content length is returned as 0.  Why does this happen?

Thanks in advance

pankaj

here is my code--

:0c fhw
* ^From:.*$sortemail[$i]
| /usr/bin/formail -I "From:$sortuser[$i]\@mydomain.com"
:0 fhw
* ^To:.*$sortuser[$i]\@mydomain.com
| /usr/bin/formail -I  "To:$sortemail[$i]"
\n\n
 
0
Comment
Question by:pankaj00p
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:pankaj00p
ID: 8144171
Figured it out.  Its the h in the :0 fhw, that forwards only the headers.  doh!

0
 
LVL 9

Expert Comment

by:majorwoo
ID: 8146323
post a 0 ptr in community support for a refund, then you can close this question
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 8148227
PAQ'd and points refunded

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question