Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7923159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:13:04+00:00 2026-06-03T17:13:04+00:00

I try to use procmail to send copies from all incoming emails to another

  • 0

I try to use procmail to send copies from all incoming emails to another email account (both of them on the same server, for example email1 and email2 accounts).

My .procmailrc is in email1 account:

:0c
! email2

As fas as I know this should keep a copy in email1 account too. But there is no email in that folder. (The forwarded emails appeared in email2 account correctly.)

How can I solve this problem?

Note:
.forward file contains:

| "/usr/bin/procmail"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:13:07+00:00Added an answer on June 3, 2026 at 5:13 pm

    This works for me (many thanks to tripleee):
    First, I had to set the DEFAULT variable too. (Its default is $ORGMAIL, and ORGMAIL default is /var/mail/$LOGNAME, as described in procmailrc manual Environment variable defaults section.)
    Second, I had to set trailing / to the DEFAULT and MAILDIR. (If there is no trailing /, procmail use mbox format and it creates an mbox file like msg.oqs in the specified directory.)

    So the full .procmailrc:

    DEFAULT=$HOME/Maildir/
    MAILDIR=$HOME/Maildir/
    
    :0c
    ! email2
    

    If you would like to debug, write these rows after MAILDIR:

    LOGFILE=$HOME/procmail.log
    LOGABSTRACT=yes
    VERBOSE=yes
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Use case: I want to pass an email message from procmail to a shell
I have gotten some reports from users of crashes when try use my application
hi all freind i want ask somthing, i try use label to swipe between
I try use reCaptcha and integrated with php, so if code is correct email
How to redirect all traffic in Windows over vidalia tor? I try use Proxifier
I try use string as a regular expression pattern but I've following errors PHP
I try use a integer array in java with the code below: public static
I try to use a variable in my kshell script but can't get a
I try to use the great particle emitter which Michael Daley build for his
I try to use SQL SERVER VIEW within RIA Services. So I created some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.