filename is supposed to be below listdir/control. In the case it's a "boolean",
the contents of a file does not matter, the mere presence of it, will set the
variable to "true". If it's a "normal" file, the first line will be used as
-value, leaving line 2 and forward ready for commentary etc.
+value, leaving line 2 and forward ready for commentary etc. If it's possible
+to specify several entries pr. line, it's marked "list".
· closedlist (boolean)
The prefix for the Subject: line of mails to the list. This will alter the
Subject: line, and add a prefix if it's not present elsewhere.
+ · owner (list)
+
+ The emailaddresses in this file (1 pr. line) will get mails to
+ listname+owner@listdomain.tld
+
... more to follow. (relayhost, owner etc.)
recipdelim = strchr(toemails.emaillist[0], RECIPDELIM);
if(recipdelim) {
- owner = ctrlvalue(listdir, "owner");
+ owner = concatstr(2, listdir, "control/owner");
if(owner && strncmp(recipdelim, "+owner@", 7) == 0) {
unlink(donemailname);
execlp(mlmmjsend, mlmmjsend,
- "-l", "1",
- "-T", owner,
+ "-l", "4",
"-F", efromemails.emaillist[0],
+ "-s", owner,
"-a",
"-m", mailfile, 0);
log_error(LOG_ARGS, "execlp() of '%s' failed",
exit(EXIT_SUCCESS);
}
break;
- case '3': /* resending earlier failed mails */
+ case '3':
+ case '4': /* sending mails to subfile */
if((subfd = open(subfilename, O_RDONLY)) < 0) {
log_error(LOG_ARGS, "Could not open '%s':",
subfilename);
endsmtp(&sockfd);
unlink(subfilename);
break;
+ case '4': /* send mails to owner */
+ initsmtp(&sockfd, relayhost);
+ if(send_mail_many(sockfd, bounceaddr, NULL, mailmap, st.st_size,
+ subfd, listaddr, mailfilename, listdir,
+ mlmmjbounce))
+ close(sockfd);
+ else
+ endsmtp(&sockfd);
+ break;
default: /* normal list mail */
subddirname = concatstr(2, listdir, "/subscribers.d/");
if((subddir = opendir(subddirname)) == NULL) {