procmail
[Top] [All Lists]

returning wrong mail ...

1999-05-06 06:24:56
-----BEGIN PGP SIGNED MESSAGE-----


Hi,

I have a problem with wrong addressed messages in the following situation:

The provider gave me a domain-name and one or more mailboxes, so each mail
addressed to that domain is stored in the mailboxe(s).

Locally e-mail is fetched with fetchmail for/to the user 'mailer' and
looks like this:
  poll post.provider.com protocol pop3 \
    user popper(_at_)mydomain(_dot_)com \
    with password xxxxxxxx is mailer here

On the local machine existing users are in the /etc/alias file, so e.g.
mail to alexander(_dot_)wiedeck(_at_)mydomain(_dot_)com is correctly delivered.

Now the problem I am trying to solve:

If somebody sends e-mail to a non-existing user this e-mail should
returned to the sender (except attachments).

Does anybody still have a solution for that?

My one that does not work :(  (without attachment handling) is the
following.

[...]
:0
  * ^X-Loop: mailer(_at_)mydomain(_dot_)com
  {
    TMP=`formail -x "X-Org-From:"

    :0
      formail -I "To: $TMP" | \
      $SENDMAIL -t
  }

:0
  * !^X-Loop: mailer(_at_)mydomain(_dot_)com
  {
    # this was because of I was not able to modify the Return-Path
    # so I save the From line
    TMP=`formail -x "From " | cut -f1 -d " "`

    :0
      | formail -I "X-Org-From: $TMP" | \
        | formail -I "X-Loop: mailer(_at_)mydomain(_dot_)com" | \
        $SENDMAIL -t
  }
[...]

I hope there is anybody who can help me!?

  aleX
- -- 
Alexander 
Wiedeck(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)alexander(_dot_)wiedeck(_at_)ku-eichstaett(_dot_)de
Key fingerprint = 02 C9 F8 08 1A 36 F9 D0  22 6C 4C 4F 06 78 34 C3
I know it all.               I just can't remember it all at once.


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQEVAwUBNzGVsYNmPFg87vR1AQE+sQf/bL7LBtT8zD7gYLX+g03wNk2v2lGuSd18
HxuXPrF7EXlIqzIghLcsGc7VdYqaPfC+AL9ZM7uKLH2L12UGihlh4P5SU1eknM7q
pjAoymCdElMAZtMXfKUnCLlJy8vZwGbj47+vcHVO1KyUV33RK4W/nTIPZY6AVVPT
TDuEq+sALMnaR4XdbBHEnEL6aTNbQ+EVjcUaAgo7sCqtDb30GbM7GIrIkCJbhwG/
JJvsjTPdFLEUd64XldMChMG80eTR0Q/9p360ZVMnlqQhASDjU6E8eSEGKvewRcBx
ne/hOmTK7PqQOqcUgsiEDfVVqS2qlLVTpBoD+TvINCL+1toqEBwCRg==
=D/RQ
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>
  • returning wrong mail ..., Alexander Wiedeck <=