Package Details: ssmtp 2.64-19

Git Clone URL: https://aur.archlinux.org/ssmtp.git (read-only, click to copy)
Package Base: ssmtp
Description: Extremely simple MTA to get mail off the system to a mailhub (with Fedora patches)
Upstream URL: https://packages.debian.org/stable/mail/ssmtp
Licenses: GPL
Conflicts: exim, smtp-forwarder
Provides: smtp-forwarder
Submitter: dcelasun
Maintainer: dcelasun
Last Packager: dcelasun
Votes: 9
Popularity: 0.000000
First Submitted: 2019-03-13 08:55 (UTC)
Last Updated: 2024-09-11 10:22 (UTC)

Required by (864)

Sources (12)

Latest Comments

1 2 3 4 Next › Last »

JustinSB commented on 2025-06-04 14:54 (UTC)

Build fails on freshly updated x86_64 system with:

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1 -DINET6=1 -DSSMTPCONFDIR=\"/etc/ssmtp\" -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\" -DALIASES_FILE=\"/etc/aliases\"  -Wno-pointer-to-int-cast -Wno-discarded-qualifiers -Wno-int-conversion   -c -o ssmtp.o ssmtp.c
ssmtp.c: In function ‘ssmtp’:
ssmtp.c:1559:31: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
 1559 |         (void)signal(SIGALRM, (void(*)())handler);      /* Catch SIGALRM */
      |                               ^~~~~~~~~~~~~~~~~~
      |                               |
      |                               void (*)(void)
In file included from /usr/include/sys/param.h:28,
                 from ssmtp.c:18:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
ssmtp.c:1497:6: note: ‘handler’ declared here
 1497 | void handler(void)
      |      ^~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
make: *** [<builtin>: ssmtp.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: ssmtp-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
ssmtp - exit status 4

tallpaul commented on 2024-12-29 09:05 (UTC) (edited on 2024-12-29 10:10 (UTC) by tallpaul)

The default /etc/ssmtp/ssmtp.conf includes the line:

TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt

If you are accessing the mailhub via port 25, so no need for any TLS CA file, but this parameter is pointing to a non-existent file then ssmtp fails reporting that it "Cannot open" the mailhost. No warning about the lack of the file, even if you turn on debugging.

So can I suggest simply commenting out this line (as is done with other TLS lines)?

dcelasun commented on 2024-09-11 10:23 (UTC)

Pushed a new pkgrel, should build fine now. I didn't bother fixing the outdated C. Overwriting CFLAGS will do for now.

I've also updated all patches from Fedora and had to disable md5auth as it doesn't build. Didn't investigate why. Let me know if there are any further issues.

phoenix23 commented on 2024-09-10 23:07 (UTC)

I'm not able to compile either. Tried two systems (one installed just a month ago) and a fresh container.

Full output of makepkg -s on a fresh container

alesc commented on 2024-05-27 13:32 (UTC) (edited on 2024-05-27 13:33 (UTC) by alesc)

Hi,

I can't build 2.64-18 on a fresh install:

[...]
ssmtp.c:58:19: error: initialization of ‘char *’ from ‘char’ makes pointer from integer without a cast [-Wint-conversion]
ssmtp.c:59:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   59 | char *auth_pass = (char)NULL;

For it to work I need to ignore warnings :

  CFLAGS="-Wno-pointer-to-int-cast -Wno-discarded-qualifiers -Wno-int-conversion" ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --mandir=/usr/share/man \
              --enable-md5auth \
              --enable-ssl\
              --enable-inet6

dcelasun commented on 2024-05-18 11:32 (UTC)

@BertoX I can't reproduce it here. What's your gcc version? And please get an English error message with LANG=en_US.UTF-8 makepkg -s.

BertoX commented on 2024-05-18 11:23 (UTC)

Does not compile on up2date Archlinux : ssmtp.c:60:21: erreur: l'initialisation de « char * » depuis « char » transforme un entier en pointeur sans transtypage [-Wint-conversion]

JustinSB commented on 2023-10-25 13:19 (UTC)

@dcelasun Sorry.. copy'n'paste error. I reverted to ssmtp-2.64-17-armv7h.pkg.tar.xz

@chaserhkj That fixed it

As recommended by @chaserhkj, I reinstalled the latest version then set AuthMethod=login in my ssmtp.conf and all it all started working again.

chaserhkj commented on 2023-10-24 11:09 (UTC)

@JustinSB Did you set AuthMethod=login in your ssmtp.conf?

In the XOAUTH2 patch the check for AuthMethod=login is added for password-based authentication as well. So if that was unset in your configuration, that could be a problem with the new version.

dcelasun commented on 2023-10-24 10:52 (UTC)

@JustinSB you mention 2.64-18 in both parts, what version did you revert to?