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?
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.
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.
No, this folder is for courier setups only. /var/vmail/domain.tld/user/Maildir/.ispconfig.sieve and .ispconfig-before.sieve file
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?
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?
See post 2, its called sieve_filter.master and its in the template folder, which is /usr/local/ispconfig/server/conf/ See post #4
Good, getting closer . 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"?
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.
The Address should be <> as you use the "vacation" module. This is according to spec as we don't want people to answer to these mails. For reference see: Sieve: Vacation Extension Guidelines: https://www.rfc-editor.org/rfc/rfc5230.html#section-5.1 Mail loop prevention: https://datatracker.ietf.org/doc/html/rfc3834#section-3.3