Home Forum Developers IP0x Working StartTLS in ssmtp?

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


rterbush
useravatar
User Info

Working StartTLS in ssmtp?

I've created a batch for the current trunk based on information found in this post on Astfin. http://forum.astfin.org/viewtopic.php?f=21&t=123

I cannot test this right now as I cannot create a working image for some reason. But it does compile.

Code:



Index: package/ssmtp/Config.in
===================================================================
--- package/ssmtp/Config.in     (revision 298)
+++ package/ssmtp/Config.in     (working copy)
@@ -15,7 +15,7 @@
config SF_PACKAGE_SSMTP
        bool "ssmtp"
        default y if (SF_PACKAGE_ASTERISKGUI)
-       default n
+       default y
        help
                Small SMTP mailer package for Switchfin

Index: package/ssmtp/ssmtp.mk
===================================================================
--- package/ssmtp/ssmtp.mk      (revision 298)
+++ package/ssmtp/ssmtp.mk      (working copy)
@@ -27,10 +27,10 @@
STAGING_LIB=$(STAGING_DIR)/usr/lib

SSMTP_CFLAGS+=-O2 -Wall -D__uClinux__ -DEMBED -fno-builtin -mfdpic
-SSMTP_CFLAGS+=-I$(UCLINUX_DIST) -isystem $(STAGING_INC)
+SSMTP_CFLAGS+=-I$(UCLINUX_DIST) -isystem $(STAGING_INC) -I$(STAGING_INC)
SSMTP_CFLAGS+=-DLOGFILE -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1
SSMTP_CFLAGS+=-DHAVE_UNISTD_H=1 -DHAVE_LIBNSL=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1
-SSMTP_CFLAGS+=-DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1
+SSMTP_CFLAGS+=-DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1  -DHAVE_MD5=1 -DHAVE_SSL=1
SSMTP_CFLAGS+=-DREWRITE_DOMAIN=1  $(EXTRADEFS) -g
SSMTP_LDFLAGS=-mfdpic -L$(STAGING_LIB) -lpthread -ldl
SSMTP_DEP=""
@@ -74,7 +74,7 @@
        bfin-linux-uclibc-gcc $(SSMTP_CFLAGS) -c -o $(SSMTP_DIR)/base64.o $<

ssmtp: $(SSMTP_DIR)/.configured xgethostname.o ssmtp.o arpadate.o base64.o
-       bfin-linux-uclibc-gcc -o $(SSMTP_DIR)/ssmtp $(SSMTP_DIR)/xgethostname.o $(SSMTP_DIR)/ssmtp.o $(SSMTP_DIR)/arpadate.o $(SSMTP_DIR)/base64.o
+       bfin-linux-uclibc-gcc -o $(SSMTP_DIR)/ssmtp $(SSMTP_DIR)/xgethostname.o $(SSMTP_DIR)/ssmtp.o $(SSMTP_DIR)/arpadate.o $(SSMTP_DIR)/base64.o -L$(STAGING_LIB) -lssl -lcrypto

        mkdir -p $(TARGET_DIR)
        mkdir -p $(TARGET_DIR)/bin


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Working StartTLS in ssmtp?

I can confirm that this patch does fix problem with being able to use TLS relaying hubs.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Working StartTLS in ssmtp?

Hi rterbush,

Thank you for this information!

Do you want commit access for Switchfin so you add your mod?

Thanks
Dimitar


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Working StartTLS in ssmtp?

admin wrote:

Do you want commit access for Switchfin so you add your mod?
Dimitar, I would humbly accept your offer of commit access if you are willing to offer. I would also like to commit the changes that are floating around for dnsmasq which I have been maintaining.

tks!


Administrator has disabled public posting
admin
useravatar
User Info

Re: Working StartTLS in ssmtp?

Hi rterbush,

Heh we are all humble here smile
Can you send me your sourceforge name please?

BTW I was not able to reproduce your issue with asterisk not being compiled.
Can you please send me your .config file from switchfin root at dpn()switchfin . org
So I can reproduce exactly your configuration
 
Best Regards
Dimitar


Administrator has disabled public posting
bradley
useravatar
User Info

Re: Working StartTLS in ssmtp?

Hallo rterbush

Tried to send mail using gmail smtp and noticed that this patch is not in trunk. I've added the ssmtp.mk patch to trunk as revision 505.

Gmail smtp now works OK with ssmtp.

Regards
Bradley


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 192
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked