STARTTLS not working / Cannot open smtp.gmail.com:587

General support questions
Tadas.juska
Posts: 8
Joined: 2017/11/02 12:26:50

STARTTLS not working / Cannot open smtp.gmail.com:587

Post by Tadas.juska » 2017/11/02 13:10:17

Hello,

To begin with, i used Centos 7 operating system for my Monitoring system zabbix the server still working fine but im not getting any notfications from my zabbix server, notification worked fine about for one year, so i checked and tested "ssmtp" service and sended test email

Code: Select all

[root@localhost ~]# echo "Testing" | mail -s "Test Email" xxx@gmail.com
[root@localhost ~]# send-mail: Cannot open smtp.gmail.com:587
ssmtp log:

Code: Select all

localhost sSMTP[43226]: Creating SSL connection to host
 localhost sSMTP[43226]: STARTTLS not working
localhost sSMTP[43226]: Cannot open smtp.gmail.com:587
/etc/ssmtp/ssmtp.conf:

"
root=xxx@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=gmail.com
hostname=localhost
UseTLS=Yes
UseSTARTTLS=Yes
AuthUser=xxxx@gmail.com
AuthPass=xxxxx
FromLineOverride=YES

TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
"
crt in the right place, checked, also used ssl place for crt - same error
Tryed to update openssl - same error

SSMPT version - -2.64-14.el7.x86_64 - NEW, same error

Gmail setings for less secure apps - ON


Any ideas?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by hunter86_bg » 2017/11/02 21:23:06

If you can't find a solution to your problem, check my postfix version which is a little bit different but still works.

Tadas.juska
Posts: 8
Joined: 2017/11/02 12:26:50

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by Tadas.juska » 2017/11/20 15:15:40

hunter86_bg wrote:If you can't find a solution to your problem, check my postfix version which is a little bit different but still works.
Still the same error :/

Cannot open smtp.gmail.com:587

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by TrevorH » 2017/11/20 15:39:26

Try using UseTLS=no. I suspect that it is preferred over useSTARTTLS=yes
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Tadas.juska
Posts: 8
Joined: 2017/11/02 12:26:50

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by Tadas.juska » 2017/11/20 21:05:48

TrevorH wrote:Try using UseTLS=no. I suspect that it is preferred over useSTARTTLS=yes
Already used. Same error.

Im confused, searched all google for information, its something wrong with certificate i think, but don't know what is wrong.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by hunter86_bg » 2017/11/21 04:57:01

Can you run strace with the command (and all parameters) defined in the systemd service?

Tadas.juska
Posts: 8
Joined: 2017/11/02 12:26:50

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by Tadas.juska » 2017/11/21 10:29:26

hunter86_bg wrote:Can you run strace with the command (and all parameters) defined in the systemd service?
If i understood corectly

strace -xx systemctl -a:

Code: Select all

execve("\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x73\x79\x73\x74\x65\x6d\x63\x74\x6c", ["\x73\x79\x73\x74\x65\x6d\x63\x74\x6c", "\x2d\x61"], [/* 21 vars */]) = 0
brk(NULL)                               = 0x558e59a7e000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f17454a2000
access("\x2f\x65\x74\x63\x2f\x6c\x64\x2e\x73\x6f\x2e\x70\x72\x65\x6c\x6f\x61\x64", R_OK) = -1 ENOENT (No such file or directory)
open("\x2f\x65\x74\x63\x2f\x6c\x64\x2e\x73\x6f\x2e\x63\x61\x63\x68\x65", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=30764, ...}) = 0
mmap(NULL, 30764, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f174549a000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x72\x74\x2e\x73\x6f\x2e\x31", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\x50\x22\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=44448, ...}) = 0
mmap(NULL, 2128952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f174507a000
mprotect(0x7f1745081000, 2093056, PROT_NONE) = 0
mmap(0x7f1745280000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f1745280000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x73\x65\x6c\x69\x6e\x75\x78\x2e\x73\x6f\x2e\x31", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\xc0\x6a\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=155744, ...}) = 0
mmap(NULL, 2255216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1744e53000
mprotect(0x7f1744e77000, 2093056, PROT_NONE) = 0
mmap(0x7f1745076000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x7f1745076000
mmap(0x7f1745078000, 6512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1745078000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x6c\x7a\x6d\x61\x2e\x73\x6f\x2e\x35", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\x80\x30\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=157424, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1745499000
mmap(NULL, 2249352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1744c2d000
mprotect(0x7f1744c52000, 2093056, PROT_NONE) = 0
mmap(0x7f1744e51000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24000) = 0x7f1744e51000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x67\x63\x72\x79\x70\x74\x2e\x73\x6f\x2e\x31\x31", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\x00\x85\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=563808, ...}) = 0
mmap(NULL, 2650512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f17449a5000
mprotect(0x7f1744a28000, 2097152, PROT_NONE) = 0
mmap(0x7f1744c28000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x83000) = 0x7f1744c28000
mmap(0x7f1744c2c000, 400, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1744c2c000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x67\x63\x63\x5f\x73\x2e\x73\x6f\x2e\x31", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\xf0\x2a\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=88720, ...}) = 0
mmap(NULL, 2184192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f174478f000
mprotect(0x7f17447a4000, 2093056, PROT_NONE) = 0
mmap(0x7f17449a3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f17449a3000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x70\x74\x68\x72\x65\x61\x64\x2e\x73\x6f\x2e\x30", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\x00\x6d\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=144792, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1745498000
mmap(NULL, 2208904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1744573000
mprotect(0x7f174458a000, 2093056, PROT_NONE) = 0
mmap(0x7f1744789000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f1744789000
mmap(0x7f174478b000, 13448, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f174478b000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x63\x2e\x73\x6f\x2e\x36", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\x10\x1d\x02\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2127336, ...}) = 0
mmap(NULL, 3940800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f17441b0000
mprotect(0x7f1744368000, 2097152, PROT_NONE) = 0
mmap(0x7f1744568000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b8000) = 0x7f1744568000
mmap(0x7f174456e000, 16832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f174456e000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x70\x63\x72\x65\x2e\x73\x6f\x2e\x31", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\xf0\x15\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=402384, ...}) = 0
mmap(NULL, 2494984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1743f4e000
mprotect(0x7f1743fae000, 2097152, PROT_NONE) = 0
mmap(0x7f17441ae000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x60000) = 0x7f17441ae000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x64\x6c\x2e\x73\x6f\x2e\x32", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\x60\x0e\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=19776, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1745497000
mmap(NULL, 2109744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1743d4a000
mprotect(0x7f1743d4c000, 2097152, PROT_NONE) = 0
mmap(0x7f1743f4c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f1743f4c000
close(3)                                = 0
open("\x2f\x6c\x69\x62\x36\x34\x2f\x6c\x69\x62\x67\x70\x67\x2d\x65\x72\x72\x6f\x72\x2e\x73\x6f\x2e\x30", O_RDONLY|O_CLOEXEC) = 3
read(3, "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x3e\x00\x01\x00\x00\x00\x70\x2c\x00\x00\x00\x00\x00\x00"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=87592, ...}) = 0
mmap(NULL, 2179776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1743b35000
mprotect(0x7f1743b48000, 2097152, PROT_NONE) = 0
mmap(0x7f1743d48000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x7f1743d48000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1745496000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1745494000
arch_prctl(ARCH_SET_FS, 0x7f1745494880) = 0
mprotect(0x7f1744568000, 16384, PROT_READ) = 0
mprotect(0x7f1743d48000, 4096, PROT_READ) = 0
mprotect(0x7f1743f4c000, 4096, PROT_READ) = 0
mprotect(0x7f1744789000, 4096, PROT_READ) = 0
mprotect(0x7f17441ae000, 4096, PROT_READ) = 0
mprotect(0x7f17449a3000, 4096, PROT_READ) = 0
mprotect(0x7f1744c28000, 4096, PROT_READ) = 0
mprotect(0x7f1744e51000, 4096, PROT_READ) = 0
mprotect(0x7f1745076000, 4096, PROT_READ) = 0
mprotect(0x7f1745280000, 4096, PROT_READ) = 0
stat("\x2f\x65\x74\x63\x2f\x73\x79\x73\x63\x6f\x6e\x66\x69\x67\x2f\x36\x34\x62\x69\x74\x5f\x73\x74\x72\x73\x74\x72\x5f\x76\x69\x61\x5f\x36\x34\x62\x69\x74\x5f\x73\x74\x72\x73\x74\x72\x5f\x73\x73\x65\x32\x5f\x75\x6e\x61\x6c\x69\x67\x6e\x65\x64", 0x7ffccd4df540) = -1 ENOENT (No such file or directory)
mprotect(0x558e57b2d000, 20480, PROT_READ) = 0
mprotect(0x7f17454a3000, 4096, PROT_READ) = 0
munmap(0x7f174549a000, 30764)           = 0
set_tid_address(0x7f1745494b50)         = 12919
set_robust_list(0x7f1745494b60, 24)     = 0
rt_sigaction(SIGRTMIN, {0x7f17445797e0, [], SA_RESTORER|SA_SIGINFO, 0x7f17445825e0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f1744579870, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f17445825e0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(NULL)                               = 0x558e59a7e000
brk(0x558e59a9f000)                     = 0x558e59a9f000
access("\x2f\x65\x74\x63\x2f\x73\x79\x73\x74\x65\x6d\x2d\x66\x69\x70\x73", F_OK) = -1 ENOENT (No such file or directory)
statfs("\x2f\x73\x79\x73\x2f\x66\x73\x2f\x73\x65\x6c\x69\x6e\x75\x78", 0x7ffccd4e07a0) = -1 ENOENT (No such file or directory)
statfs("\x2f\x73\x65\x6c\x69\x6e\x75\x78", 0x7ffccd4e07a0) = -1 ENOENT (No such file or directory)
open("\x2f\x70\x72\x6f\x63\x2f\x66\x69\x6c\x65\x73\x79\x73\x74\x65\x6d\x73", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f17454a1000
read(3, "\x6e\x6f\x64\x65\x76\x09\x73\x79\x73\x66\x73\x0a\x6e\x6f\x64\x65\x76\x09\x72\x6f\x6f\x74\x66\x73\x0a\x6e\x6f\x64\x65\x76\x09\x72"..., 1024) = 276
stat("\x2f\x65\x74\x63\x2f\x73\x79\x73\x63\x6f\x6e\x66\x69\x67\x2f\x36\x34\x62\x69\x74\x5f\x73\x74\x72\x73\x74\x72\x5f\x76\x69\x61\x5f\x36\x34\x62\x69\x74\x5f\x73\x74\x72\x73\x74\x72\x5f\x73\x73\x65\x32\x5f\x75\x6e\x61\x6c\x69\x67\x6e\x65\x64", 0x7ffccd4e0610) = -1 ENOENT (No such file or directory)
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x7f17454a1000, 4096)            = 0
access("\x2f\x65\x74\x63\x2f\x73\x65\x6c\x69\x6e\x75\x78\x2f\x63\x6f\x6e\x66\x69\x67", F_OK) = 0
open("\x2f\x75\x73\x72\x2f\x6c\x69\x62\x2f\x6c\x6f\x63\x61\x6c\x65\x2f\x6c\x6f\x63\x61\x6c\x65\x2d\x61\x72\x63\x68\x69\x76\x65", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=106070960, ...}) = 0
mmap(NULL, 106070960, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f173d60c000
close(3)                                = 0
open("\x2f\x70\x72\x6f\x63\x2f\x73\x65\x6c\x66\x2f\x73\x74\x61\x74", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f17454a1000
read(3, "\x31\x32\x39\x31\x39\x20\x28\x73\x79\x73\x74\x65\x6d\x63\x74\x6c\x29\x20\x52\x20\x31\x32\x39\x31\x37\x20\x31\x32\x39\x31\x37\x20"..., 1024) = 346
close(3)                                = 0
munmap(0x7f17454a1000, 4096)            = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
stat("\x2f\x70\x72\x6f\x63\x2f\x31\x2f\x72\x6f\x6f\x74", {st_mode=S_IFDIR|0555, st_size=279, ...}) = 0
stat("\x2f", {st_mode=S_IFDIR|0555, st_size=279, ...}) = 0
stat("\x2f\x70\x72\x6f\x63\x2f\x31\x2f\x72\x6f\x6f\x74", {st_mode=S_IFDIR|0555, st_size=279, ...}) = 0
stat("\x2f", {st_mode=S_IFDIR|0555, st_size=279, ...}) = 0
lstat("\x2f\x72\x75\x6e\x2f\x73\x79\x73\x74\x65\x6d\x64\x2f\x73\x79\x73\x74\x65\x6d\x2f", {st_mode=S_IFDIR|0755, st_size=140, ...}) = 0
geteuid()                               = 0
socket(AF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
setsockopt(3, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
setsockopt(3, SOL_SOCKET, SO_PASSSEC, [0], 4) = 0
getsockopt(3, SOL_SOCKET, SO_RCVBUF, [212992], [4]) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUFFORCE, [8388608], 4) = 0
getsockopt(3, SOL_SOCKET, SO_SNDBUF, [212992], [4]) = 0
setsockopt(3, SOL_SOCKET, SO_SNDBUFFORCE, [8388608], 4) = 0
connect(3, {sa_family=AF_LOCAL, sun_path="\x2f\x72\x75\x6e\x2f\x73\x79\x73\x74\x65\x6d\x64\x2f\x70\x72\x69\x76\x61\x74\x65"}, 22) = 0
getsockopt(3, SOL_SOCKET, SO_PEERCRED, {pid=1, uid=0, gid=0}, [12]) = 0
getsockopt(3, SOL_SOCKET, SO_PEERSEC, 0x558e59a7f810, 0x7ffccd4e0340) = -1 ENOPROTOOPT (Protocol not available)
clock_gettime(CLOCK_MONOTONIC, {77185, 475950400}) = 0
fstat(3, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
getsockopt(3, SOL_SOCKET, SO_ACCEPTCONN, [0], [4]) = 0
getsockname(3, {sa_family=AF_LOCAL, sun_path=@"\x30\x30\x30\x32\x63"}, [8]) = 0
geteuid()                               = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(3)=[{"\x00\x41\x55\x54\x48\x20\x45\x58\x54\x45\x52\x4e\x41\x4c\x20", 15}, {"\x33\x30", 2}, {"\x0d\x0a\x4e\x45\x47\x4f\x54\x49\x41\x54\x45\x5f\x55\x4e\x49\x58\x5f\x46\x44\x0d\x0a\x42\x45\x47\x49\x4e\x0d\x0a", 28}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 45
getsockopt(3, SOL_SOCKET, SO_PEERCRED, {pid=1, uid=0, gid=0}, [12]) = 0
stat("\x2f\x70\x72\x6f\x63\x2f\x31\x2f\x72\x6f\x6f\x74", {st_mode=S_IFDIR|0555, st_size=279, ...}) = 0
stat("\x2f", {st_mode=S_IFDIR|0555, st_size=279, ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=63, ws_col=238, ws_xpixel=0, ws_ypixel=0}) = 0
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f1745494b50) = 12920
dup2(5, 1)                              = 1
close(4)                                = 0
close(5)                                = 0
gettid()                                = 12919
getrandom("\xc0\xaf\x30\x1a\xfc\x1c\xb8\x88\xd7\x01\xdd\xd4\x66\x45\x46\x78", 16, GRND_NONBLOCK) = 16
clock_gettime(CLOCK_MONOTONIC, {77185, 477221200}) = 0
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\x4f\x4b\x20\x64\x37\x62\x37\x32\x33\x32\x33\x39\x30\x66\x36\x34\x39\x38\x61\x62\x33\x36\x64\x39\x35\x38\x37\x35\x39\x32\x37\x34"..., 256}], msg_controllen=32, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=1, uid=0, gid=0}}], msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 52
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\x6c\x01\x00\x01\x04\x00\x00\x00\x01\x00\x00\x00\xa8\x00\x00\x00\x01\x01\x6f\x00\x19\x00\x00\x00\x2f\x6f\x72\x67\x2f\x66\x72\x65"..., 184}, {"\x00\x00\x00\x00", 4}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 188
clock_gettime(CLOCK_MONOTONIC, {77185, 478391400}) = 0
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\x6c\x02\x01\x01\xc6\xb7\x00\x00\x01\x00\x00\x00\x1b\x00\x00\x00\x05\x01\x75\x00\x01\x00\x00\x00", 24}], msg_controllen=32, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=1, uid=0, gid=0}}], msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\x08\x01\x67\x00\x0d\x61\x28\x73\x73\x73\x73\x73\x73\x6f\x75\x73\x6f\x29\x00\x00\x00\x00\x00\x00\xbe\xb7\x00\x00\x00\x00\x00\x00"..., 47070}], msg_controllen=32, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=1, uid=0, gid=0}}], msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 47070
open("\x2f\x70\x72\x6f\x63\x2f\x6d\x65\x6d\x69\x6e\x66\x6f", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f17454a1000
read(4, "\x4d\x65\x6d\x54\x6f\x74\x61\x6c\x3a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x34\x32\x36\x31\x38\x30\x20\x6b\x42\x0a\x4d\x65\x6d\x46"..., 1024) = 1024
close(4)                                = 0
munmap(0x7f17454a1000, 4096)            = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f17454a1000
write(1, "\x20\x20\x55\x4e\x49\x54\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"..., 4096) = 4096
write(1, "\x67\x67\x65\x64\x20\x20\x20\x56\x69\x72\x74\x75\x61\x6c\x5f\x44\x69\x73\x6b\x20\x31\x0a\x20\x20\x64\x65\x76\x2d\x64\x69\x73\x6b"..., 4096) = 4096
write(1, "\x20\x20\x70\x6c\x75\x67\x67\x65\x64\x20\x20\x20\x2f\x73\x79\x73\x2f\x64\x65\x76\x69\x63\x65\x73\x2f\x70\x6e\x70\x30\x2f\x30\x30"..., 4096) = 4096
write(1, "\x6e\x6f\x74\x2d\x66\x6f\x75\x6e\x64\x1b\x5b\x30\x6d\x20\x69\x6e\x61\x63\x74\x69\x76\x65\x20\x64\x65\x61\x64\x20\x20\x20\x20\x20"..., 4096) = 4096
write(1, "\x42\x6f\x6f\x74\x20\x53\x63\x72\x65\x65\x6e\x20\x74\x6f\x20\x51\x75\x69\x74\x0a\x20\x20\x70\x6c\x79\x6d\x6f\x75\x74\x68\x2d\x71"..., 4096) = 4096
write(1, "\x6f\x6f\x74\x20\x44\x65\x76\x69\x63\x65\x0a\x20\x20\x73\x79\x73\x74\x65\x6d\x64\x2d\x68\x77\x64\x62\x2d\x75\x70\x64\x61\x74\x65"..., 4096) = 4096
write(1, "\x20\x55\x70\x64\x61\x74\x65\x20\x55\x54\x4d\x50\x20\x61\x62\x6f\x75\x74\x20\x53\x79\x73\x74\x65\x6d\x20\x52\x75\x6e\x6c\x65\x76"..., 4096) = 4096
write(1, "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"..., 4096) = 4096
write(1, "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"..., 1719) = 1719
close(1)                                = 0
munmap(0x7f17454a1000, 4096)            = 0
kill(12920, SIGCONT)                    = 0
  UNIT                                                                                                     LOAD      ACTIVE   SUB       DESCRIPTION
  proc-sys-fs-binfmt_misc.automount                                                                        loaded    active   waiting   Arbitrary Executable File Formats File System Automount Point
  dev-block-8:2.device                                                                                     loaded    active   plugged   LVM PV 64Lkis-x6kR-zrDk-rft0-mj8z-02ks-awoIYb on /dev/sda2 2
  dev-cdrom.device                                                                                         loaded    active   plugged   Virtual_CD
  dev-cl-root.device                                                                                       loaded    active   plugged   /dev/cl/root
  dev-cl-swap.device                                                                                       loaded    active   plugged   /dev/cl/swap
  dev-disk-by\x2did-ata\x2dVirtual_CD.device                                                               loaded    active   plugged   Virtual_CD
  dev-disk-by\x2did-dm\x2dname\x2dcl\x2droot.device                                                        loaded    active   plugged   /dev/disk/by-id/dm-name-cl-root
  dev-disk-by\x2did-dm\x2dname\x2dcl\x2dswap.device                                                        loaded    active   plugged   /dev/disk/by-id/dm-name-cl-swap
  dev-disk-by\x2did-dm\x2duuid\x2dLVM\x2d3cQJOL94sDzJFcEGUw80vfCl4rNsYa3J3QHdmaprtOkn83zfDCt6A1ZU6BT3alOQ.device loaded    active   plugged   /dev/disk/by-id/dm-uuid-LVM-3cQJOL94sDzJFcEGUw80vfCl4rNsYa3J3QHdmaprtOkn83zfDCt6A1ZU6BT3alOQ
  dev-disk-by\x2did-dm\x2duuid\x2dLVM\x2d3cQJOL94sDzJFcEGUw80vfCl4rNsYa3JS0WNXTSgGi72YKECN2T2a2cvDGFahZPd.device loaded    active   plugged   /dev/disk/by-id/dm-uuid-LVM-3cQJOL94sDzJFcEGUw80vfCl4rNsYa3JS0WNXTSgGi72YKECN2T2a2cvDGFahZPd
  dev-disk-by\x2did-lvm\x2dpv\x2duuid\x2d64Lkis\x2dx6kR\x2dzrDk\x2drft0\x2dmj8z\x2d02ks\x2dawoIYb.device   loaded    active   plugged   LVM PV 64Lkis-x6kR-zrDk-rft0-mj8z-02ks-awoIYb on /dev/sda2 2
  dev-disk-by\x2did-scsi\x2d36002248090b452331c613b1a6e6b7be5.device                                       loaded    active   plugged   Virtual_Disk
  dev-disk-by\x2did-scsi\x2d36002248090b452331c613b1a6e6b7be5\x2dpart1.device                              loaded    active   plugged   Virtual_Disk 1
  dev-disk-by\x2did-scsi\x2d36002248090b452331c613b1a6e6b7be5\x2dpart2.device                              loaded    active   plugged   LVM PV 64Lkis-x6kR-zrDk-rft0-mj8z-02ks-awoIYb on /dev/sda2 2
  dev-disk-by\x2did-wwn\x2d0x6002248090b452331c613b1a6e6b7be5.device                                       loaded    active   plugged   Virtual_Disk
  dev-disk-by\x2did-wwn\x2d0x6002248090b452331c613b1a6e6b7be5\x2dpart1.device                              loaded    active   plugged   Virtual_Disk 1
  dev-disk-by\x2did-wwn\x2d0x6002248090b452331c613b1a6e6b7be5\x2dpart2.device                              loaded    active   plugged   LVM PV 64Lkis-x6kR-zrDk-rft0-mj8z-02ks-awoIYb on /dev/sda2 2
  dev-disk-by\x2dpath-acpi\x2dVMBUS:01\x2dscsi\x2d0:0:0:0.device                                           loaded    active   plugged   Virtual_Disk
  dev-disk-by\x2dpath-acpi\x2dVMBUS:01\x2dscsi\x2d0:0:0:0\x2dpart1.device                                  loaded    active   plugged   Virtual_Disk 1
  dev-disk-by\x2dpath-acpi\x2dVMBUS:01\x2dscsi\x2d0:0:0:0\x2dpart2.device                                  loaded    active   plugged   LVM PV 64Lkis-x6kR-zrDk-rft0-mj8z-02ks-awoIYb on /dev/sda2 2
  dev-disk-by\x2dpath-pci\x2d0000:00:07.1\x2data\x2d2.0.device                                             loaded    active   plugged   Virtual_CD
  dev-disk-by\x2duuid-7e3fcae6\x2ded4b\x2d460b\x2da885\x2dec7a7f8eda3d.device                              loaded    active   plugged   /dev/disk/by-uuid/7e3fcae6-ed4b-460b-a885-ec7a7f8eda3d
  dev-disk-by\x2duuid-b230dc83\x2de299\x2d4b8e\x2db369\x2d25d865450586.device                              loaded    active   plugged   Virtual_Disk 1
  dev-disk-by\x2duuid-f8c5127b\x2d4512\x2d46e4\x2db8d0\x2d3e41b5ce432f.device                              loaded    active   plugged   /dev/disk/by-uuid/f8c5127b-4512-46e4-b8d0-3e41b5ce432f
  dev-dm\x2d0.device                                                                                       loaded    active   plugged   /dev/dm-0
  dev-dm\x2d1.device                                                                                       loaded    active   plugged   /dev/dm-1
  dev-fd0.device                                                                                           loaded    active   plugged   /dev/fd0
  dev-mapper-cl\x2droot.device                                                                             loaded    active   plugged   /dev/mapper/cl-root
  dev-mapper-cl\x2dswap.device                                                                             loaded    active   plugged   /dev/mapper/cl-swap
  dev-sda.device                                                                                           loaded    active   plugged   Virtual_Disk
  dev-sda1.device                                                                                          loaded    active   plugged   Virtual_Disk 1
  dev-sda2.device                                                                                          loaded    active   plugged   LVM PV 64Lkis-x6kR-zrDk-rft0-mj8z-02ks-awoIYb on /dev/sda2 2
  dev-sr0.device                                                                                           loaded    active   plugged   Virtual_CD
  dev-ttyS0.device                                                                                         loaded    active   plugged   /dev/ttyS0
  dev-ttyS1.device                                                                                         loaded    active   plugged   /dev/ttyS1
  dev-ttyS2.device                                                                                         loaded    active   plugged   /dev/ttyS2
  dev-ttyS3.device                                                                                         loaded    active   plugged   /dev/ttyS3
  sys-devices-LNXSYSTM:00-device:00-PNP0A03:00-device:08-VMBUS:01-00000000\x2d0000\x2d8899\x2d0000\x2d000000000000-host2-target2:0:0-2:0:0:0-block-sda-sda1.device loaded    active   plugged   Virtual_Disk 1
  sys-devices-LNXSYSTM:00-device:00-PNP0A03:00-device:08-VMBUS:01-00000000\x2d0000\x2d8899\x2d0000\x2d000000000000-host2-target2:0:0-2:0:0:0-block-sda-sda2.device loaded    active   plugged   LVM PV 64Lkis-x6kR-zrDk-rft0-mj8z-02ks-awoIYb
  sys-devices-LNXSYSTM:00-device:00-PNP0A03:00-device:08-VMBUS:01-00000000\x2d0000\x2d8899\x2d0000\x2d000000000000-host2-target2:0:0-2:0:0:0-block-sda.device loaded    active   plugged   Virtual_Disk
  sys-devices-LNXSYSTM:00-device:00-PNP0A03:00-device:08-VMBUS:01-3378b745\x2df77d\x2d4b54\x2db663\x2d3113118aec9f-net-eth0.device loaded    active   plugged   /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:08/VMBUS:01/3378b745-f77d
  sys-devices-pci0000:00-0000:00:07.1-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device                      loaded    active   plugged   Virtual_CD
  sys-devices-platform-floppy.0-block-fd0.device                                                           loaded    active   plugged   /sys/devices/platform/floppy.0/block/fd0
  sys-devices-platform-serial8250-tty-ttyS2.device                                                         loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS2
  sys-devices-platform-serial8250-tty-ttyS3.device                                                         loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS3
  sys-devices-pnp0-00:03-tty-ttyS0.device                                                                  loaded    active   plugged   /sys/devices/pnp0/00:03/tty/ttyS0
  sys-devices-pnp0-00:04-tty-ttyS1.device                                                                  loaded    active   plugged   /sys/devices/pnp0/00:04/tty/ttyS1
  sys-devices-virtual-block-dm\x2d0.device                                                                 loaded    active   plugged   /sys/devices/virtual/block/dm-0
  sys-devices-virtual-block-dm\x2d1.device                                                                 loaded    active   plugged   /sys/devices/virtual/block/dm-1
  sys-module-configfs.device                                                                               loaded    active   plugged   /sys/module/configfs
  sys-subsystem-net-devices-eth0.device                                                                    loaded    active   plugged   /sys/subsystem/net/devices/eth0
  -.mount                                                                                                  loaded    active   mounted   /
  boot.mount                                                                                               loaded    active   mounted   /boot
  dev-hugepages.mount                                                                                      loaded    active   mounted   Huge Pages File System
  dev-mqueue.mount                                                                                         loaded    active   mounted   POSIX Message Queue File System
  proc-sys-fs-binfmt_misc.mount                                                                            loaded    inactive dead      Arbitrary Executable File Formats File System
  run-user-0.mount                                                                                         loaded    active   mounted   /run/user/0
  sys-fs-fuse-connections.mount                                                                            loaded    inactive dead      FUSE Control File System
  sys-kernel-config.mount                                                                                  loaded    active   mounted   Configuration File System
  sys-kernel-debug.mount                                                                                   loaded    active   mounted   Debug File System
  tmp.mount                                                                                                loaded    inactive dead      Temporary Directory

akhtar4ever
Posts: 2
Joined: 2013/12/07 08:56:48

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by akhtar4ever » 2017/11/21 15:15:50

You’ll need to install sendmail and sasl:

yum install sendmail-cf cyrus-sasl-plain cyrus-sasl-md5 cyrus-sasl-gssapi cyrus-sasl-lib cyrus-sasl-devel cyrus-sasl

and enable / start it:

systemctl enable saslauthd.service
systemctl enable sendmail.service
systemctl start saslauthd.service
systemctl start sendmail.service


Then you’ll need to edit /etc/mail/sendmail.mc, make sure these two lines are not commented out (they are by default):

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

and then enable submission:

DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl

Then you’ll need to enable encryption certificates:

define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/CA_bundle.pem')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/server.crt')dnl
define(`confSERVER_KEY', `/etc/pki/tls/private/server.key')dnl

and you’re basically done. Simply rebuild the sendmail configuration and restart it:

/etc/mail/make
systemctl restart sendmail.service


You’ll then need to ensure port 587 is not firewalled.

Then you’ll need a standard SMART_HOST entry line, but with the added options of telling it to use port 587 (submission) and a link to the file with the authentication information:

define(`SMART_HOST', `smarthost.example.org')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')
define(`ESMTP_MAILER_ARGS', `TCP $h 587')
FEATURE(`authinfo',`Hash -o /etc/mail/authinfo.db')dnl

You’ll also need to create an /etc/mail/authinfo file with contents such as:

AuthInfo:smarthost.example.org "U:user_name" "P:password_here" "M:PLAIN"

and build it using the makemap program:

makemap hash /etc/mail/authinfo < /etc/mail/authinfo

You can then restart sendmail and it should work.

Let me know the status.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by TrevorH » 2017/11/21 15:20:20

The point of using ssmtp is so you don't need a full blown mailer daemon. And if you do then postfix is a hundred times easier to configure than sendmail.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Tadas.juska
Posts: 8
Joined: 2017/11/02 12:26:50

Re: STARTTLS not working / Cannot open smtp.gmail.com:587

Post by Tadas.juska » 2017/11/21 16:08:12

akhtar4ever wrote:You’ll need to install sendmail and sasl:

yum install sendmail-cf cyrus-sasl-plain cyrus-sasl-md5 cyrus-sasl-gssapi cyrus-sasl-lib cyrus-sasl-devel cyrus-sasl

and enable / start it:

systemctl enable saslauthd.service
systemctl enable sendmail.service
systemctl start saslauthd.service
systemctl start sendmail.service


Then you’ll need to edit /etc/mail/sendmail.mc, make sure these two lines are not commented out (they are by default):

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

and then enable submission:

DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl

Then you’ll need to enable encryption certificates:

define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/CA_bundle.pem')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/server.crt')dnl
define(`confSERVER_KEY', `/etc/pki/tls/private/server.key')dnl

and you’re basically done. Simply rebuild the sendmail configuration and restart it:

/etc/mail/make
systemctl restart sendmail.service


.
Did everything till here, when installed "sendmail-cf cyrus-sasl-plain cyrus-sasl-md5 cyrus-sasl-gssapi cyrus-sasl-lib cyrus-sasl-devel cyrus-sasl"
tried to start systemctl start sendmail.service but getting error:

Code: Select all

Job for sendmail.service failed because a configured resource limit was exceeded. See "systemctl status sendmail.service" and "journalctl -xe" for details.
systemctl status sendmail.service

Code: Select all

 sendmail.service - Sendmail Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled; vendor preset: disabled)
   Active: failed (Result: resources) since Tue 2017-11-21 18:01:39 EET; 33s ago
  Process: 20286 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
  Process: 20278 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
  Process: 20277 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)

Nov 21 18:01:39 zabbix-centos systemd[1]: Starting Sendmail Mail Transport Agent...
Nov 21 18:01:39 zabbix-centos sendmail[20286]: -bd is not supported by sSMTP
Nov 21 18:01:39 zabbix-centos systemd[1]: PID file /run/sendmail.pid not readable (yet?) after start.
Nov 21 18:01:39 zabbix-centos systemd[1]: Failed to start Sendmail Mail Transport Agent.
Nov 21 18:01:39 zabbix-centos systemd[1]: Unit sendmail.service entered failed state.
Nov 21 18:01:39 zabbix-centos systemd[1]: sendmail.service failed.

Post Reply