All of lore.kernel.org
 help / color / mirror / Atom feed
* [mlmmj] Mlmmj 1.2.19b1 released
@ 2015-04-23 11:23 Ben Schmidt
  2015-04-23 19:26 ` A. Schulze
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ben Schmidt @ 2015-04-23 11:23 UTC (permalink / raw)
  To: mlmmj

Hi, all,

A beta release for the upcoming Mlmmj 1.2.19 has been published. Find it on the 
downloads page <http://mlmmj.org/downloads/>. Please help test it if you can and 
report any bugs using our bug tracker <http://mlmmj.org/bugs/> or here on the 
discussion mailing list. Also please report successes to help gain confidence in 
the quality of the code.

The release contains a few bug fixes and new features that have already seen some 
testing in production sites. No backward compatibility problems are anticipated. 
See the ChangeLog <http://mlmmj.org/hg/mlmmj/file/RELEASE_1_2_19b1/ChangeLog> for 
a complete list of changes.

Happy hacking!

Ben.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [mlmmj] Mlmmj 1.2.19b1 released
  2015-04-23 11:23 [mlmmj] Mlmmj 1.2.19b1 released Ben Schmidt
@ 2015-04-23 19:26 ` A. Schulze
  2015-04-23 22:15 ` Ben Schmidt
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: A. Schulze @ 2015-04-23 19:26 UTC (permalink / raw)
  To: mlmmj

[-- Attachment #1: Type: text/plain, Size: 1736 bytes --]


Ben Schmidt:
> A beta release for the upcoming Mlmmj 1.2.19 has been published.

Thanks for your work.

I just build a version for Debian Jessie and noticed these warnings:

gcc -DHAVE_CONFIG_H -I. -I.. -I./../include  -D_FORTIFY_SOURCE=2 -g  
-Wall -pedantic -Wsign-compare  
-DDEFAULTTEXTDIR='"/usr/share/mlmmj/text.skel"' -g -O2  
-fstack-protector-strong -Wformat -Werror=format-security -Wall -c -o  
unistr.o unistr.c
unistr.c: In function 'unistr_utf8_to_header':
unistr.c:570:9: warning: assignment discards 'const' qualifier from  
pointer target type
      wsp = p;
          ^

gcc -DHAVE_CONFIG_H -I. -I.. -I./../include  -D_FORTIFY_SOURCE=2 -g  
-Wall -pedantic -Wsign-compare  
-DDEFAULTTEXTDIR='"/usr/share/mlmmj/text.skel"' -g -O2  
-fstack-protector-strong -Wformat -Werror=format-security -Wall -c -o  
mlmmj-sub.o mlmmj-sub.c
mlmmj-sub.c: In function 'subscribe_type':
mlmmj-sub.c:589:4: warning: ignoring return value of 'setgid',  
declared with attribute warn_unused_result [-Wunused-result]
     setgid(st.st_gid);
     ^

gcc -DHAVE_CONFIG_H -I. -I.. -I./../include  -D_FORTIFY_SOURCE=2 -g  
-Wall -pedantic -Wsign-compare  
-DDEFAULTTEXTDIR='"/usr/share/mlmmj/text.skel"' -g -O2  
-fstack-protector-strong -Wformat -Werror=format-security -Wall -c -o  
mlmmj-list.o mlmmj-list.c
mlmmj-list.c: In function 'main':
mlmmj-list.c:103:11: warning: variable 'ret' set but not used  
[-Wunused-but-set-variable]
   int opt, ret, count = 0, docount = 0;
            ^

I also have a patch for 1.2.18.1 to set the SMTP HELO/EHLO name.
No surprise, this patch does not apply cleanly anymore. But I would  
love to see the feature included in 1.2.19 ...

I'll report again once I /installed/ the new Version ...

Andreas

[-- Attachment #2: smtp_helo_name.patch --]
[-- Type: text/x-diff, Size: 6680 bytes --]

Index: mlmmj-1.2.18.1/src/mlmmj-send.c
===================================================================
--- mlmmj-1.2.18.1.orig/src/mlmmj-send.c	2014-11-28 20:04:14.000000000 +0100
+++ mlmmj-1.2.18.1/src/mlmmj-send.c	2014-12-01 20:33:44.000000000 +0100
@@ -376,11 +376,10 @@
 	return 0;
 }
 
-int initsmtp(int *sockfd, const char *relayhost, unsigned short port)
+int initsmtp(int *sockfd, const char *relayhost, unsigned short port, const char *heloname)
 {
 	int retval = 0;
 	char *reply = NULL;
-	char *myhostname = hostnamestr();
 
 	init_sockfd(sockfd, relayhost, port);
 
@@ -394,8 +393,7 @@
 		retval = MLMMJ_CONNECT;
 		/* FIXME: Queue etc. */
 	}	
-	write_helo(*sockfd, myhostname);
-	myfree(myhostname);
+	write_helo(*sockfd, heloname);
 	if((reply = checkwait_smtpreply(*sockfd, MLMMJ_HELO)) != NULL) {
 		log_error(LOG_ARGS, "Error with HELO. Reply: [%s]", reply);
 		/* FIXME: quit and tell admin to configure correctly */
@@ -728,7 +726,7 @@
 	char *mlmmjbounce = NULL, *bindir, *mailmap, *probefile, *a;
 	char *body = NULL, *hdrs = NULL, *memmailsizestr = NULL, *verp = NULL;
 	char relay[16], *listname, *listfqdn, *verpfrom, *maxverprecipsstr;
-	char strindex[32], *reply, *strport, *requeuefilename;
+	char strindex[32], *reply, *strport, *smtphelo, *requeuefilename;
 	ssize_t memmailsize = 0;
 	DIR *subddir;
 	struct dirent *dp;
@@ -1012,10 +1010,14 @@
 	if(strport)
 		smtpport = (unsigned short)atol(strport);
 
+	if ((smtphelo = ctrlvalue(listdir, "smtphelo")) == NULL) {
+		smtphelo = hostnamestr();
+	}
+
 	switch(listctrl[0]) {
 	case '1': /* A single mail is to be sent */
 	case '6':
-		initsmtp(&sockfd, relay, smtpport);
+		initsmtp(&sockfd, relay, smtpport, smtphelo);
 		if(send_mail(sockfd, bounceaddr, to_addr, replyto,
 				mailmap, st.st_size, listdir, NULL,
 				hdrs, hdrslen, body, bodylen)) {
@@ -1073,7 +1075,7 @@
 		}
 		break;
 	case '2': /* Moderators */
-		initsmtp(&sockfd, relay, smtpport);
+		initsmtp(&sockfd, relay, smtpport, smtphelo);
 		if(send_mail_many_fd(sockfd, bounceaddr, NULL, mailmap,
 				     st.st_size, subfd, NULL, NULL, NULL,
 				     listdir, NULL, hdrs, hdrslen,
@@ -1085,7 +1087,7 @@
 		}
 		break;
 	case '3': /* resending earlier failed mails */
-		initsmtp(&sockfd, relay, smtpport);
+		initsmtp(&sockfd, relay, smtpport, smtphelo);
 		if(send_mail_many_fd(sockfd, NULL, NULL, mailmap, st.st_size,
 				subfd, listaddr, listdelim, mailfilename,
 				listdir, mlmmjbounce, hdrs, hdrslen,
@@ -1098,7 +1100,7 @@
 		unlink(subfilename);
 		break;
 	case '4': /* send mails to owner */
-		initsmtp(&sockfd, relay, smtpport);
+		initsmtp(&sockfd, relay, smtpport, smtphelo);
 		if(send_mail_many_fd(sockfd, bounceaddr, NULL, mailmap,
 				st.st_size, subfd, listaddr, listdelim,
 				mailfilename, listdir, mlmmjbounce,
@@ -1110,7 +1112,7 @@
 		}
 		break;
 	case '5': /* bounceprobe - handle relayhost local users bouncing*/
-		initsmtp(&sockfd, relay, smtpport);
+		initsmtp(&sockfd, relay, smtpport, smtphelo);
 		if(send_mail(sockfd, bounceaddr, to_addr, replyto,
 				mailmap, st.st_size, listdir, NULL,
 				hdrs, hdrslen, body, bodylen)) {
@@ -1175,7 +1177,7 @@
 		}
 		
 		if(verp) {
-			initsmtp(&sockfd, relay, smtpport);
+			initsmtp(&sockfd, relay, smtpport, smtphelo);
 			if(sockfd > -1) {
 			    if(write_mail_from(sockfd, verpfrom, verp)) {
 				log_error(LOG_ARGS,
@@ -1239,7 +1241,7 @@
 					}
 				}
 				if(stl.count == maxverprecips) {
-					initsmtp(&sockfd, relay, smtpport);
+					initsmtp(&sockfd, relay, smtpport, smtphelo);
 					if(verp) {
 						sendres = send_mail_verp(
 								sockfd, &stl,
@@ -1283,7 +1285,7 @@
 
 		}
 		if(stl.count) {
-			initsmtp(&sockfd, relay, smtpport);
+			initsmtp(&sockfd, relay, smtpport, smtphelo);
 			if(verp) {
 				sendres = send_mail_verp(sockfd, &stl, mailmap,
 						st.st_size, verpfrom, listdir,
@@ -1324,6 +1326,7 @@
 	munmap(mailmap, st.st_size);
 	close(mailfd);
 	myfree(verp);
+	myfree(smtphelo);
 
 	if(archive) {
 		if(!ctrlarchive) {
Index: mlmmj-1.2.18.1/include/mlmmj-send.h
===================================================================
--- mlmmj-1.2.18.1.orig/include/mlmmj-send.h	2014-11-28 20:04:14.000000000 +0100
+++ mlmmj-1.2.18.1/include/mlmmj-send.h	2014-12-01 20:33:44.000000000 +0100
@@ -45,7 +45,7 @@
 		   size_t mailsize, const char *from, const char *listdir,
 		   const char *hdrs, size_t hdrslen, const char *body,
 		   size_t bodylen, const char *extra);
-int initsmtp(int *sockfd, const char *relayhost, unsigned short port);
+int initsmtp(int *sockfd, const char *relayhost, unsigned short port, const char *heloname);
 int endsmtp(int *sockfd);
 
 #endif /* MMJML_SEND_H */
Index: mlmmj-1.2.18.1/TUNABLES
===================================================================
--- mlmmj-1.2.18.1.orig/TUNABLES	2014-12-01 20:35:45.000000000 +0100
+++ mlmmj-1.2.18.1/TUNABLES	2014-12-01 20:41:38.000000000 +0100
@@ -243,3 +243,7 @@
    from the distribution list for that post so people don't receive copies
    of their own posts.
 
+ · smtphelo			(normal)
+
+   When this file is present, it contains the hostname to send in the SMTP
+   EHLO or HELO command. Otherwise the machine hostname is used.
Index: mlmmj-1.2.18.1/contrib/web/perl-admin/conf/tunables.pl
===================================================================
--- mlmmj-1.2.18.1.orig/contrib/web/perl-admin/conf/tunables.pl	2014-12-01 20:43:00.000000000 +0100
+++ mlmmj-1.2.18.1/contrib/web/perl-admin/conf/tunables.pl	2014-12-01 20:45:40.000000000 +0100
@@ -222,3 +222,7 @@
 			  "from the distribution list for that post so people don't receive copies ".
 			  "of their own posts.");
 
+mlmmj_string("smtphelo",
+			  "SMTP Helo Name",
+			  "When this file is present, it contains the hostname to send in the SMTP ".
+			  "EHLO or HELO command. Otherwise the machine hostname is used.");
Index: dv-mlmmj-1.2.18.1/contrib/web/php-admin/conf/tunables.pl
===================================================================
--- mlmmj-1.2.18.1.orig/contrib/web/php-admin/conf/tunables.pl	2014-12-01 20:45:54.000000000 +0100
+++ mlmmj-1.2.18.1/contrib/web/php-admin/conf/tunables.pl	2014-12-01 20:46:33.000000000 +0100
@@ -222,3 +222,7 @@
 			  "from the distribution list for that post so people don't receive copies ".
 			  "of their own posts.");
 
+mlmmj_string("smtphelo",
+			  "SMTP Helo Name",
+			  "When this file is present, it contains the hostname to send in the SMTP ".
+			  "EHLO or HELO command. Otherwise the machine hostname is used.");

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [mlmmj] Mlmmj 1.2.19b1 released
  2015-04-23 11:23 [mlmmj] Mlmmj 1.2.19b1 released Ben Schmidt
  2015-04-23 19:26 ` A. Schulze
@ 2015-04-23 22:15 ` Ben Schmidt
  2015-04-30 20:39 ` A. Schulze
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Ben Schmidt @ 2015-04-23 22:15 UTC (permalink / raw)
  To: mlmmj

Hi, Andreas,

On 24/04/15 5:26 AM, A. Schulze wrote:
> I just build a version for Debian Jessie and noticed these warnings:

Thanks for reporting these. I have fixed one and put the other two on my
to-do list for future fixing. Nothing serious.

> I also have a patch for 1.2.18.1 to set the SMTP HELO/EHLO name.
> No surprise, this patch does not apply cleanly anymore. But I would
> love to see the feature included in 1.2.19 ...

Yes, thanks for that. I like the patch but I did the work to finalise
1.2.19b1 a number of months ago (though unfortunately didn't announce
it). It is one of the first things in the queue for 1.2.20 which I hope
will follow fairly quickly after 1.2.19, certainly more quickly than the
delay between 18 and 19.

> I'll report again once I /installed/ the new Version ...

Thanks a lot.

Ben.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [mlmmj] Mlmmj 1.2.19b1 released
  2015-04-23 11:23 [mlmmj] Mlmmj 1.2.19b1 released Ben Schmidt
  2015-04-23 19:26 ` A. Schulze
  2015-04-23 22:15 ` Ben Schmidt
@ 2015-04-30 20:39 ` A. Schulze
  2015-05-04  8:02 ` A. Schulze
  2015-05-15  6:28 ` Ben Schmidt
  4 siblings, 0 replies; 6+ messages in thread
From: A. Schulze @ 2015-04-30 20:39 UTC (permalink / raw)
  To: mlmmj


A. Schulze:

> I'll report again once I /installed/ the new Version ...
Hm. looks like I forgot to install something :-/
dynamic repriorization...

Andreas




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [mlmmj] Mlmmj 1.2.19b1 released
  2015-04-23 11:23 [mlmmj] Mlmmj 1.2.19b1 released Ben Schmidt
                   ` (2 preceding siblings ...)
  2015-04-30 20:39 ` A. Schulze
@ 2015-05-04  8:02 ` A. Schulze
  2015-05-15  6:28 ` Ben Schmidt
  4 siblings, 0 replies; 6+ messages in thread
From: A. Schulze @ 2015-05-04  8:02 UTC (permalink / raw)
  To: mlmmj


A. Schulze:

> I'll report again once I /installed/ the new Version ...
OK, done.
I could acknowledge that 1.2.19b1 work as expected.

Andreas




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [mlmmj] Mlmmj 1.2.19b1 released
  2015-04-23 11:23 [mlmmj] Mlmmj 1.2.19b1 released Ben Schmidt
                   ` (3 preceding siblings ...)
  2015-05-04  8:02 ` A. Schulze
@ 2015-05-15  6:28 ` Ben Schmidt
  4 siblings, 0 replies; 6+ messages in thread
From: Ben Schmidt @ 2015-05-15  6:28 UTC (permalink / raw)
  To: mlmmj

Has anybody other than Andreas had a chance to test this? If no big bugs appear in 
the next week or so, I'll call this release final towards the end of the month.

Smiles,

Ben.



On 23/04/15 9:23 PM, Ben Schmidt wrote:
> Hi, all,
>
> A beta release for the upcoming Mlmmj 1.2.19 has been published. Find it on the
> downloads page <http://mlmmj.org/downloads/>. Please help test it if you can and
> report any bugs using our bug tracker <http://mlmmj.org/bugs/> or here on the
> discussion mailing list. Also please report successes to help gain confidence in
> the quality of the code.
>
> The release contains a few bug fixes and new features that have already seen some
> testing in production sites. No backward compatibility problems are anticipated.
> See the ChangeLog <http://mlmmj.org/hg/mlmmj/file/RELEASE_1_2_19b1/ChangeLog> for
> a complete list of changes.
>
> Happy hacking!
>
> Ben.
>
>
>
>
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-15  6:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23 11:23 [mlmmj] Mlmmj 1.2.19b1 released Ben Schmidt
2015-04-23 19:26 ` A. Schulze
2015-04-23 22:15 ` Ben Schmidt
2015-04-30 20:39 ` A. Schulze
2015-05-04  8:02 ` A. Schulze
2015-05-15  6:28 ` Ben Schmidt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.