Operations grimoire/Legacy archive/Mail server notes

From Nasqueron Agora
Revision as of 02:00, 21 October 2013 by Dereckson (talk | contribs) (Created page with "== Utilities == === qmail-autoresponder === If invoked from vpopmail instead vmailmgr, it doesn't contain From: header. ; /usr/ports/mail/qmail-autoresponder/files/patch-main...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Utilities

qmail-autoresponder

If invoked from vpopmail instead vmailmgr, it doesn't contain From: header.

/usr/ports/mail/qmail-autoresponder/files/patch-main.c
diff --git main.c main.c
index ba1a0b9..5de20cc 100644
--- main.c
+++ main.c
@@ -475,6 +475,9 @@ int main(int argc, char* argv[])
     out = &bufout;
   }

+  //TODO: create a mailer-daemon@domain.tld finder
+  //For example: read /var/qmail/control/me, and prepend by mailer-daemon@
+  obuf_put3s(out, "From: Mail Delivery Subsystem <mailer-daemon@", "grip.espace-win.org", ">\n");
   obuf_put3s(out, "To: <", sender, ">\n");
   if(opt_subject_prefix)
     obuf_put4s(out, "Subject: ", opt_subject_prefix, subject.s, "\n");