Professional Web Applications Themes

delete forwarding message copy - Linux Setup, Configuration & Administration

Hi everybody, I configured Postfix on my server. I want only forward my email and I don't want keep a copy on my server (two place to check email). Is it possible, with .forward file, to forward a email only . I don't want use aliases.db. May be somebody can help me. Thanks! Jean-Louis Vill Please send me your answer at [email]jlvillsympatico.ca[/email]...

  1. #1

    Default delete forwarding message copy

    Hi everybody,

    I configured Postfix on my server. I want only forward my email and I
    don't want keep a copy on my server (two place to check email).

    Is it possible, with .forward file, to forward a email only . I don't
    want use aliases.db.

    May be somebody can help me.


    Thanks!

    Jean-Louis Vill

    Please send me your answer at [email]jlvillsympatico.ca[/email]

    Jean-Louis Vill Guest

  2. #2

    Default Re: delete forwarding message copy

    On Mon, 08 Sep 2003 00:02:30 -0400, Jean-Louis Vill <jlvillsympatico.ca> wrote:
    >
    >
    > Hi everybody,
    >
    > I configured Postfix on my server. I want only forward my email and I
    > don't want keep a copy on my server (two place to check email).
    >
    > Is it possible, with .forward file, to forward a email only . I don't
    > want use aliases.db.
    >
    > May be somebody can help me.
    >
    >
    > Thanks!
    >
    > Jean-Louis Vill
    >
    > Please send me your answer at [email]jlvillsympatico.ca[/email]
    >
    If you used procmail, then this .procmailrc would do what you want:


    SHELL=/bin/whatever
    PATH=whatever_it_is
    MAILDIR=directory_where_your_incoming_mail_goes
    DEFAULT=$MAILDIR/your_inbox

    :0:
    ! address_to_forward_to



    Alan C


    --

    take control of your mailbox ----- elrav1 ----- [url]http://tinyurl.com/l55a[/url]


    Alan Connor Guest

  3. #3

    Default Re: delete forwarding message copy

    Alan Connor wrote:
    > On Mon, 08 Sep 2003 00:02:30 -0400, Jean-Louis Vill <jlvillsympatico.ca> wrote:
    >
    >>
    >>Hi everybody,
    >>
    >>I configured Postfix on my server. I want only forward my email and I
    >>don't want keep a copy on my server (two place to check email).
    >>
    >>Is it possible, with .forward file, to forward a email only . I don't
    >>want use aliases.db.
    >>
    >>May be somebody can help me.
    >>
    >>
    >>Thanks!
    >>
    >>Jean-Louis Vill
    >>
    >>Please send me your answer at [email]jlvillsympatico.ca[/email]
    >>
    >
    >
    > If you used procmail, then this .procmailrc would do what you want:
    >
    >
    > SHELL=/bin/whatever
    > PATH=whatever_it_is
    > MAILDIR=directory_where_your_incoming_mail_goes
    > DEFAULT=$MAILDIR/your_inbox
    >
    > :0:
    > ! address_to_forward_to
    >
    >
    >
    > Alan C
    >
    >
    Hi Alan,
    I use postfix but may be I can do the same thing than procmail... but
    can you explain to me what the command means (what you wrote).
    > SHELL=/bin/whatever
    > PATH=whatever_it_is
    > MAILDIR=directory_where_your_incoming_mail_goes
    > DEFAULT=$MAILDIR/your_inbox
    >
    > :0:
    > ! address_to_forward_to
    Thanks for your explanations ;-)

    Jean-Louis Vill Guest

  4. #4

    Default Re: delete forwarding message copy

    On Mon, 08 Sep 2003 23:01:45 -0400, Jean-Louis Vill <jlvillsympatico.ca> wrote:
    >
    >
    > Alan Connor wrote:
    >> On Mon, 08 Sep 2003 00:02:30 -0400, Jean-Louis Vill <jlvillsympatico.ca> wrote:
    >>
    >>>
    >>>Hi everybody,
    >>>
    >>>I configured Postfix on my server. I want only forward my email and I
    >>>don't want keep a copy on my server (two place to check email).
    >>>
    >>>Is it possible, with .forward file, to forward a email only . I don't
    >>>want use aliases.db.
    >>>
    >>>May be somebody can help me.
    >>>
    >>>
    >>>Thanks!
    >>>
    >>>Jean-Louis Vill
    >>>
    >>>Please send me your answer at [email]jlvillsympatico.ca[/email]
    >>>
    >>
    >>
    >> If you used procmail, then this .procmailrc would do what you want:
    >>
    >>
    >> SHELL=/bin/whatever
    >> PATH=whatever_it_is
    >> MAILDIR=directory_where_your_incoming_mail_goes
    >> DEFAULT=$MAILDIR/your_inbox
    >>
    >> :0:
    >> ! address_to_forward_to
    >>
    >>
    >>
    >> Alan C
    >>
    >>
    > Hi Alan,
    > I use postfix but may be I can do the same thing than procmail... but
    > can you explain to me what the command means (what you wrote).
    >
    > > SHELL=/bin/whatever
    > > PATH=whatever_it_is
    > > MAILDIR=directory_where_your_incoming_mail_goes
    > > DEFAULT=$MAILDIR/your_inbox
    > >
    > > :0:
    > > ! address_to_forward_to
    >
    > Thanks for your explanations ;-)
    >

    Postfix is an MTA, procmail is an MDA. It stands between whatever program
    retrieves your mail (often fetchmail) and your mailbox, and proc(esses)mail.


    That's a minimal ~/.procmailrc file, which can do about anything with your
    mail you want, from forwarding mail to weeding out spam to sending your mail
    to various mailboxes to sending auto-replies.....


    The upper four lines are environmental variables procmail needs set to run,
    (you could make due in this case with only the top two) and what follows
    that is a simple forwarding recipe:



    :0

    begin a recipe

    :0: have procmail assign a lockfile in case you get a lot of mail coming in
    at the same time.


    since there are no conditions in this recipe, such as:

    :0:
    * ^From.*jackhotmail.com
    ! [email]jillhottermail.com[/email]


    which would forward only mail from jack to jill, ALL mail is forwarded to
    whatever address you choose.


    If you fetch your mail with fetchmail, then to use procmail you will need


    this (>) line in your ~.fetchmailrc: (this is my .fetchmailrc, with the
    password obscured)


    poll pop.earthlink.net
    tracepolls
    proto pop3
    user "alanconnorearthlink.net"
    pass "x"
    is alanc here
    > and wants mda "/usr/bin/formail -ds /usr/bin/procmail"
    fetchall




    or this line in your ~/.forward:


    "|IFS=' ' && exec /usr//bin/procmail || exit 75 #myid"


    include the quotes and make sure that's where procmail is and substitute
    the output of whoami for #myid.


    I don't know postfix.



    Hope this helps, Jean-Louis




    Alan C



    --

    take control of your mailbox ----- elrav1 ----- [url]http://tinyurl.com/l55a[/url]


    Alan Connor Guest

Similar Threads

  1. cannot copy necessary linked files message appears
    By joan_demetr@adobeforums.com in forum Adobe Indesign Windows
    Replies: 14
    Last Post: September 14th, 08:10 PM
  2. Shell command from within Adobe Professional, copy and delete file
    By David_Gottholm@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 14
    Last Post: March 17th, 03:35 PM
  3. Replies: 0
    Last Post: September 21st, 10:36 PM
  4. Replies: 0
    Last Post: September 21st, 10:36 PM
  5. Delete error message problem
    By carlee in forum Microsoft Access
    Replies: 2
    Last Post: July 19th, 01:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139