Autoreply <from> is empty

Discussion in 'ISPConfig 3 Priority Support' started by variable99, Mar 8, 2024.

  1. variable99

    variable99 Member HowtoForge Supporter

    When autoreply sends message, 'from' field is empty.

    Example:

    Code:
    2024-03-08T10:49:56.752431+01:00 email postfix/qmgr[413414]: 9400542913: from=<>, size=725, nrcpt=1 (queue active)
    2024-03-08T10:49:57.074355+01:00 email postfix/submissions/smtpd[434796]: lost connection after AUTH from unknown[IP]
    2024-03-08T10:49:57.074458+01:00 email postfix/submissions/smtpd[434796]: disconnect from unknown[IP] ehlo=1 auth=0/1 rset=1 commands=2/3
    2024-03-08T10:49:58.386407+01:00 email postfix/smtp[435162]: 9400542913: to=<[email protected]>, relay=relay.domain.tld[IP]:25, delay=1.8, delays=0.15/0.02/0.83/0.79, dsn=2.0.0, status=sent (250 Message queued as 18e1d7828290001649)
    2024-03-08T10:49:58.386606+01:00 email postfix/qmgr[413414]: 9400542913: removed
    
    Is this something that I should / could configure within postfix?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Auteresponders ares ent from Dovecot via a .sieve script and not from Postfix. Take a look at the ISPConfig config template sieve_filter.master on how this is set up.
     
  3. variable99

    variable99 Member HowtoForge Supporter

    Aha, found it. Where does ISPC save generated .sieve filter file? Isn't it should be in /var/vmail/mailfilters ? For me, it is empty.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No, this folder is for courier setups only.

    /var/vmail/domain.tld/user/Maildir/.ispconfig.sieve and .ispconfig-before.sieve file
     
  5. variable99

    variable99 Member HowtoForge Supporter

    Ou, wow. I really have no clue what I've seen here.
    .ispconfig.sieve:
    Code:
    require ["body", "copy", "date", "envelope", "fileinto", "imap4flags", "mailbox", "regex", "reject", "relational", "subaddress", "vacation", "variables"];
    
    Is this line shows that "from" is used?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    No, that's the line that tells sieve which modules are possibly used in the script below that line.
     
  7. variable99

    variable99 Member HowtoForge Supporter

    Ok, so wehre is actual template which is used for autoreply? .master I believe is template for .sieve file generation, but where is finished product?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    See post 2, its called sieve_filter.master and its in the template folder, which is /usr/local/ispconfig/server/conf/


    See post #4
     
  9. variable99

    variable99 Member HowtoForge Supporter

    Good, getting closer :D . in .master I see this:

    Code:
    <tmpl_if name="autoresponder" op="==" value="y">
    #################################################################
    # Autoreply
    #################################################################
    
    # Move spam to spam folder
    if anyof (header :is ["X-Spam", "X-Spam-Flag"] "Yes", header :matches "X-Spam-Status" "Yes, *") {
      # Stop here so that we do not reply on spams
      stop;
    }
    
    <tmpl_if name="start_date">
    if currentdate :value "ge" "iso8601" "<tmpl_var name='start_date'>" {
    </tmpl_if>
    <tmpl_if name="end_date">
    if currentdate :value "le" "iso8601" "<tmpl_var name='end_date'>" {
    </tmpl_if>
    
    vacation  :days 1
      :subject "<tmpl_var name='autoresponder_subject'>"
      <tmpl_var name='addresses'>
      "<tmpl_var name='autoresponder_text'>";
    
    <tmpl_if name="end_date">
    }
    </tmpl_if>
    <tmpl_if name="start_date">
    }
    </tmpl_if>
    </tmpl_if>
    
    Does the part "<tmpl_var name='addresses'>" is "FROM"?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    I don't think so, I guess its likely all addresses of the account and not the from address. You'll have to take a look at the PHP code of the maildeliver plugin to see what gets replaced there in detail.
     
  11. pyte

    pyte Well-Known Member HowtoForge Supporter

    till likes this.

Share This Page