Auto responder empty "FROM:"

Discussion in 'General' started by redeprotegida, Apr 27, 2009.

  1. redeprotegida

    redeprotegida New Member

    Hello,

    The messages comming from the ispconfig3's are without the "From:"

    look on this header:

    From:
    Message-Id: <[email protected]>
    X-Authentication-Warning: xxxxx.xxx.xxxxxxx: vmail set sender to <> using -f
    Subject: Auto Response: from
    To: [email protected]
    Precedence: junk
    Auto-Submitted: auto-replied
    Mime-Version: 1.0
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain; charset="iso-8859-1"


    is it a bug or have something that I can do to fix it?

    thanks.

    Diego
     
  2. redeprotegida

    redeprotegida New Member

  3. redeprotegida

    redeprotegida New Member

    no one knows how to place something on the From: ???

    it´s causing bulk mail :(
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You can take a look at the maildrop script in /var/vmail/mailfilters/.... which handle the autoresponder.
     
  5. redeprotegida

    redeprotegida New Member

    i fixed it changing the .autoresponder file

    `test -f /var/vmail/mailfilters/$HOST/$USER/.vacation.msg && exit 1 || exit 0`
    if ($RETURNCODE==1)
    {
    {
    if (!/^List-Unsubscribe:.*/:h )
    {
    if (!/^X-Spam-Flag: YES/:h )
    {
    RESPOND="/var/vmail/mailfilters/$HOST/$USER/.vacation.msg"
    RESPONDDB="/var/vmail/mailfilters/$HOST/$USER/.vacation.lst"

    # The following must be one contiguous line
    cc "| mailbot -t $RESPOND -d $RESPONDDB -D 1 \
    -A 'From: [email protected]' -s 'Auto Response: from $RECIPIENT' \
    /usr/sbin/sendmail -t -f ''"
    }
    }
    }
    }


    i found a bug...
    the From: was $RECIPIENT, so this variable is imput...

    please tellme wich php file generate this .autoresponder then ill edit it to generate a line like this:

    -A 'From: [email protected]' -s 'Auto Response: from Redeprotegida.com.br' \

    cause i need smt automatic, i cant go there and edit the file for all clients that want to enable autoresponder..

    thanks ;)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    But the variable $RECIPIENT contains normally the recipient of the email, so the script is correct. If $RECIPIENT is not set on your server then you can either check main.cf to make sure that the second parameter of the maildrop script returns the recipient or you use the $HOST and $USER variables to built the recipient like this:

    -A 'From: $USER@$HOST' -s 'Auto Response: from $USER@$HOST' \
     
  7. redeprotegida

    redeprotegida New Member

    i think it is a bug, im running ispconfig on 5 different servers...

    2 running on fedora 8 (i know i cant do that, but i did)

    3 running on fedora 10

    all of my servers i tested autoresponder and it worx, but without the FROM, with the variable empty.

    all of then i just found these infos on main.cf about maildrop

    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    virtual_transport = maildrop


    could you please tell me where is the file on ispconfig that generate the .autoresponder o i can edit it, then the next generations will be correct, maybe i can use the example that you gave me using $user@$host

    or, maybe something that i can place on my main.cf to start filling the $RECIPIENT var.


    thanks *again*
     
  8. redeprotegida

    redeprotegida New Member

    im still working on this, and not found nothing...
    just work if i edit the .autoresponder file

    someone give me a help please...

    to help me:

    what is the script that creates the .autoresponder file?

    or

    what i do to fill the $RECIPIENT that is empty?

    thanks.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try what I suggested to you in post #6 of this thread. All templates are in /usr/local/ispconfig/server/conf/
     
  10. redeprotegida

    redeprotegida New Member

    subject: Auto-resposta de [email protected]
    from: [email protected] Add contact
    to: [email protected] Add contact
    date: 06.05.2009 15:02


    thanks very much till

    i just changed the autoresponder script that you said
    i changed the $RECIPIENT TO $USER@HOST
     

Share This Page