Jump to content

Вопрос по логике msmtp


Recommended Posts

12 часа назад, Meccep45 сказал:

отправил. если не доверять людям, тогда и не узнаешь порядочных людей.

Для проверки на свои менять, потому они без надобности... )))

~ # diff -uraN msmtp/etc/php.ini /opt/etc/php.ini
--- msmtp/etc/php.ini	2021-06-09 09:11:00.000000000 +0300
+++ /opt/etc/php.ini	2021-08-13 07:41:32.579970752 +0300
@@ -214,7 +214,8 @@
 ;SMTP = localhost
 ;smtp_port = 25
 ;sendmail_from = no-reply@xxx.yyy.zzz
-sendmail_path = "/opt/sbin/sendmail -t"
+;;sendmail_path = "/opt/sbin/sendmail -t"
+sendmail_path = "/opt/bin/msmtp -t"
 ;mail.force_extra_parameters =
 ;mail.add_x_header = Off
 mail.log = "/opt/var/log/php8/php-mail.log"
~ #
~ # cat /opt/var/log/php8/php-mail.log 

[13-Aug-2021 07:46:44 Europe/Moscow] mail() on [/opt/share/www/ext-ui/msmtp.php:2]: To: receipient@domain.com -- Headers:  -- Subject: A Subject Here
Aug 13 07:46:52 host=smtp.gmail.com tls=on auth=on user=xxx@gmail.com from=root@xxx recipients=receipient@domain.com mailsize=173 smtpstatus=250 smtpmsg='250 2.0.0 OK  1628830012 v63sm612505pgv.59 - gsmtp' exitcode=EX_OK
[13-Aug-2021 07:46:59 Europe/Moscow] mail() on [/opt/share/www/ext-ui/msmtp1.php:5]: To: receipient@yandex.ru -- Headers:  -- Subject: my subject
Aug 13 07:47:06 host=smtp.gmail.com tls=on auth=on user=xxx@gmail.com from=root@xxx recipients=receipient@yandex.ru mailsize=122 smtpstatus=250 smtpmsg='250 2.0.0 OK  1628830026 t19sm455174pfg.216 - gsmtp' exitcode=EX_OK
~ # 

 

Edited by TheBB
Link to comment
Share on other sites

3 часа назад, Meccep45 сказал:

всё также bool(false)

локализовано ))) проблема тут

passwordeval gpg --no-tty -q -d ~/.msmtp-password.gpg

не может добраться и расшифровать

...
[pid 20278] rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, 16) = 0
[pid 20278] rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 16) = 0
[pid 20278] stat64("/sbin/gpg", 0x7ff48d78) = -1 ENOENT (No such file or directory)
[pid 20278] stat64("/usr/sbin/gpg", 0x7ff48d78) = -1 ENOENT (No such file or directory)
[pid 20278] stat64("/bin/gpg", 0x7ff48d78) = -1 ENOENT (No such file or directory)
[pid 20278] stat64("/usr/bin/gpg", 0x7ff48d78) = -1 ENOENT (No such file or directory)
[pid 20278] write(2, "/opt/bin/sh: ", 13) = 13
[pid 20278] write(2, "gpg: not found", 14) = 14
[pid 20278] write(2, "\n", 1)           = 1
[pid 20278] exit_group(127)             = ?
[pid 20278] +++ exited with 127 +++
[pid 20277] <... read resumed>"", 4096) = 0
[pid 20277] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20278, si_uid=65534, si_status=127, si_utime=0, si_stime=0} ---
[pid 20277] close(6)                    = 0
[pid 20277] waitpid(20278, [{WIFEXITED(s) && WEXITSTATUS(s) == 127}], 0) = 20278
[pid 20277] write(2, "msmtp: ", 7)      = 7
[pid 20277] write(2, "cannot read output of 'gpg --qui"..., 94) = 94
[pid 20277] write(2, "\n", 1)           = 1
[pid 20277] close(4)
...

будем посмотреть дальше...

Link to comment
Share on other sites

15 часов назад, Meccep45 сказал:

попробовал дать пароль без шифрования. та же не удача.

Все логи отправки, что выше, были с паролем "открытым текстом" (для гугляпочты дополнительно сгенерен в настройках аккаунта, яндикс страдает той же фигнёй ))) ).

ковыряния привели к Permission denied

Скрытый текст

 

...
[pid 23775] getuid()                    = 65534
[pid 23775] mlock(0x77dfa000, 32768)    = 0
[pid 23775] geteuid()                   = 65534
[pid 23775] access("/opt/root/.gnupg/gpg.conf-2.2.23", R_OK) = -1 EACCES (Permission denied)
[pid 23775] access("/opt/root/.gnupg/gpg.conf-2.2", R_OK) = -1 EACCES (Permission denied)
[pid 23775] access("/opt/root/.gnupg/gpg.conf-2", R_OK) = -1 EACCES (Permission denied)
[pid 23775] access("/opt/root/.gnupg/gpg.conf", R_OK) = -1 EACCES (Permission denied)
[pid 23775] access("/opt/root/.gnupg/options", R_OK) = -1 EACCES (Permission denied)
[pid 23775] stat64("/opt/root/.gnupg", {st_dev=makedev(0x8, 0x1), st_ino=1324634, st_mode=S_IFDIR|0700, st_nlink=5, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=4096, st_atime=1628868670 /* 2021-08-13T18:31:10.723995861+0300 */, st_atime_nsec=723995861, st_mtime=1628930041 /* 2021-08-14T11:34:01.123989002+0300 */, st_mtime_nsec=123989002, st_ctime=1628930041 /* 2021-08-14T11:34:01.123989002+0300 */, st_ctime_nsec=123989002}) = 0
[pid 23775] stat64("/opt/root", {st_dev=makedev(0x8, 0x1), st_ino=1321921, st_mode=S_IFDIR|0755, st_nlink=16, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=24, st_size=12288, st_atime=1625899748 /* 2021-07-10T09:49:08+0300 */, st_atime_nsec=0, st_mtime=1628889461 /* 2021-08-14T00:17:41.123993538+0300 */, st_mtime_nsec=123993538, st_ctime=1628889461 /* 2021-08-14T00:17:41.123993538+0300 */, st_ctime_nsec=123993538}) = 0
[pid 23775] getuid()                    = 65534
[pid 23775] write(2, "gpg: WARNING: unsafe ownership o"..., 59) = 59
[pid 23775] write(2, "'\n", 2)          = 2
[pid 23775] openat(AT_FDCWD, "/opt/root/.gnupg/gpg.conf", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
[pid 23775] access("/opt/root/.gnupg/random_seed", F_OK) = -1 EACCES (Permission denied)
[pid 23775] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.gpg", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
[pid 23775] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
[pid 23775] access("/opt/root/.gnupg/pubring.kbx", F_OK) = -1 EACCES (Permission denied)
[pid 23775] access("/opt/root/.gnupg", F_OK) = 0
[pid 23775] getpid()                    = 23775
[pid 23775] uname({sysname="Linux", nodename="Keenetic-6065", release="4.9-ndm-5", version="#2 SMP Thu Aug 12 16:12:48 MSK 2021", machine="mips", domainname="WORKGROUP"}) = 0
[pid 23775] getpid()                    = 23775
[pid 23775] openat(AT_FDCWD, "/opt/root/.gnupg/.#lk0x006a1720.Keenetic-6065.23775", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0644) = -1 EACCES (Permission denied)
[pid 23775] write(2, "gpg: failed to create temporary "..., 109) = 109
[pid 23775] write(2, "\n", 1)           = 1
[pid 23775] write(2, "gpg: keyblock resource '/opt/roo"..., 72) = 72
[pid 23775] write(2, "\n", 1)           = 1
[pid 23775] access("/opt/root/.gnupg/secring.gpg", F_OK) = -1 EACCES (Permission denied)
[pid 23775] openat(AT_FDCWD, "/opt/etc/.mail.gpg", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
[pid 23775] write(2, "gpg: can't open '/opt/etc/.mail."..., 55) = 55
[pid 23775] write(2, "\n", 1)           = 1
[pid 23775] write(2, "gpg: decrypt_message failed: Per"..., 46) = 46
[pid 23775] write(2, "\n", 1)           = 1
[pid 23775] munmap(0x77dfa000, 32768)   = 0
[pid 23775] exit_group(2)               = ?
[pid 23775] +++ exited with 2 +++
[pid 23774] <... read resumed>"", 4096) = 0
[pid 23774] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23775, si_uid=65534, si_status=2, si_utime=2, si_stime=3} ---
[pid 23774] close(6)                    = 0
[pid 23774] waitpid(23775, [{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0) = 23775
[pid 23774] write(2, "msmtp: ", 7)      = 7
[pid 23774] write(2, "cannot read output of 'gpg --qui"..., 94) = 94
[pid 23774] write(2, "\n", 1)           = 1
[pid 23774] close(4)                    = 0
[pid 23774] _llseek(0, -58, 0x7fcdd380, SEEK_CUR) = -1 ESPIPE (Illegal seek)
[pid 23774] exit_group(78)              = ?
[pid 23774] +++ exited with 78 +++
<... waitpid resumed>[{WIFEXITED(s) && WEXITSTATUS(s) == 78}], 0) = 23774
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23774, si_uid=65534, si_status=78, si_utime=2, si_stime=3} ---
chdir("/opt/root")                      = 0
times({tms_utime=1, tms_stime=5, tms_cutime=8, tms_cstime=15}) = 1727850946
setitimer(ITIMER_PROF, {it_interval={tv_sec=0, tv_usec=0}, it_value={tv_sec=0, tv_usec=0}}, NULL) = 0
write(3, "\1\6\0\1\0:\6\0Content-type: text/html;"..., 88) = 88
shutdown(3, SHUT_WR)                    = 0
recv(3, "\1\5\0\1\0\0\0\0", 8, 0)       = 8
recv(3, "", 8, 0)                       = 0
close(3)                                = 0
write(2, "\0fscf\0", 6)                 = 6
accept(5, ^Cstrace: Process 23295 detached
 <detached ...>
~ # 

 

стало совсем не секурно )))

Скрытый текст

 

...
[pid 28930] getuid()                    = 65534
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/gpg.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 28930] access("/opt/root/.gnupg/random_seed", F_OK) = 0
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.gpg", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = 6
[pid 28930] fstat64(6, {st_dev=makedev(0x8, 0x1), st_ino=1324647, st_mode=S_IFREG|0644, st_nlink=1, st_uid=65534, st_gid=0, st_blksize=4096, st_blocks=8, st_size=1458, st_atime=1628869457 /* 2021-08-13T18:44:17.339995773+0300 */, st_atime_nsec=339995773, st_mtime=1628869457 /* 2021-08-13T18:44:17.339995773+0300 */, st_mtime_nsec=339995773, st_ctime=1628934481 /* 2021-08-14T12:48:01.087988506+0300 */, st_ctime_nsec=87988506}) = 0
[pid 28930] read(6, "\0\0\0 \1\1\0\2KBXf\0\0\0\0a\26\220>a\26\220>\0\0\0\0\0\0\0\0"..., 4096) = 1458
[pid 28930] close(6)                    = 0
[pid 28930] access("/opt/root/.gnupg/pubring.kbx", F_OK) = 0
[pid 28930] access("/opt/root/.gnupg/pubring.kbx", R_OK) = 0
[pid 28930] access("/opt/root/.gnupg/pubring.kbx", W_OK) = 0
[pid 28930] getpid()                    = 28930
[pid 28930] uname({sysname="Linux", nodename="Keenetic-6065", release="4.9-ndm-5", version="#2 SMP Thu Aug 12 16:12:48 MSK 2021", machine="mips", domainname="WORKGROUP"}) = 0
[pid 28930] getpid()                    = 28930
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/.#lk0x0094e720.Keenetic-6065.28930", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0644) = 6
[pid 28930] write(6, "     28930\n", 11) = 11
[pid 28930] write(6, "Keenetic-6065", 13) = 13
[pid 28930] write(6, "\n", 1)           = 1
[pid 28930] close(6)                    = 0
[pid 28930] stat64("/opt/root/.gnupg/.#lk0x0094e720.Keenetic-6065.28930", {st_dev=makedev(0x8, 0x1), st_ino=1324662, st_mode=S_IFREG|0644, st_nlink=1, st_uid=65534, st_gid=65534, st_blksize=4096, st_blocks=8, st_size=25, st_atime=1628934717 /* 2021-08-14T12:51:57.607988480+0300 */, st_atime_nsec=607988480, st_mtime=1628934717 /* 2021-08-14T12:51:57.607988480+0300 */, st_mtime_nsec=607988480, st_ctime=1628934717 /* 2021-08-14T12:51:57.607988480+0300 */, st_ctime_nsec=607988480}) = 0
[pid 28930] link("/opt/root/.gnupg/.#lk0x0094e720.Keenetic-6065.28930", "/opt/root/.gnupg/.#lk0x0094e720.Keenetic-6065.28930x") = 0
[pid 28930] stat64("/opt/root/.gnupg/.#lk0x0094e720.Keenetic-6065.28930", {st_dev=makedev(0x8, 0x1), st_ino=1324662, st_mode=S_IFREG|0644, st_nlink=2, st_uid=65534, st_gid=65534, st_blksize=4096, st_blocks=8, st_size=25, st_atime=1628934717 /* 2021-08-14T12:51:57.607988480+0300 */, st_atime_nsec=607988480, st_mtime=1628934717 /* 2021-08-14T12:51:57.607988480+0300 */, st_mtime_nsec=607988480, st_ctime=1628934717 /* 2021-08-14T12:51:57.607988480+0300 */, st_ctime_nsec=607988480}) = 0
[pid 28930] unlink("/opt/root/.gnupg/.#lk0x0094e720.Keenetic-6065.28930x") = 0
[pid 28930] link("/opt/root/.gnupg/.#lk0x0094e720.Keenetic-6065.28930", "/opt/root/.gnupg/pubring.kbx.lock") = 0
[pid 28930] stat64("/opt/root/.gnupg/.#lk0x0094e720.Keenetic-6065.28930", {st_dev=makedev(0x8, 0x1), st_ino=1324662, st_mode=S_IFREG|0644, st_nlink=2, st_uid=65534, st_gid=65534, st_blksize=4096, st_blocks=8, st_size=25, st_atime=1628934717 /* 2021-08-14T12:51:57.607988480+0300 */, st_atime_nsec=607988480, st_mtime=1628934717 /* 2021-08-14T12:51:57.607988480+0300 */, st_mtime_nsec=607988480, st_ctime=1628934717 /* 2021-08-14T12:51:57.611988480+0300 */, st_ctime_nsec=611988480}) = 0
[pid 28930] access("/opt/root/.gnupg/pubring.kbx", W_OK) = 0
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = 6
[pid 28930] _llseek(6, 0, [0], SEEK_CUR) = 0
[pid 28930] fstat64(6, {st_dev=makedev(0x8, 0x1), st_ino=1324647, st_mode=S_IFREG|0644, st_nlink=1, st_uid=65534, st_gid=0, st_blksize=4096, st_blocks=8, st_size=1458, st_atime=1628869457 /* 2021-08-13T18:44:17.339995773+0300 */, st_atime_nsec=339995773, st_mtime=1628869457 /* 2021-08-13T18:44:17.339995773+0300 */, st_mtime_nsec=339995773, st_ctime=1628934481 /* 2021-08-14T12:48:01.087988506+0300 */, st_ctime_nsec=87988506}) = 0
[pid 28930] read(6, "\0\0\0 \1\1\0\2KBXf\0\0\0\0a\26\220>a\26\220>\0\0\0\0\0\0\0\0"..., 4096) = 1458
[pid 28930] time(NULL)                  = 1628934717 (2021-08-14T12:51:57+0300)
[pid 28930] _llseek(6, 0, [0], SEEK_SET) = 0
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.kbx.tmp", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 7
[pid 28930] time(NULL)                  = 1628934717 (2021-08-14T12:51:57+0300)
[pid 28930] read(6, "\0\0\0 \1\1\0\2KBXf\0\0\0\0a\26\220>a\26\220>\0\0\0\0\0\0\0\0"..., 4096) = 1458
[pid 28930] time(NULL)                  = 1628934717 (2021-08-14T12:51:57+0300)
[pid 28930] fstat64(7, {st_dev=makedev(0x8, 0x1), st_ino=1324663, st_mode=S_IFREG|0644, st_nlink=1, st_uid=65534, st_gid=65534, st_blksize=4096, st_blocks=0, st_size=0, st_atime=1628934717 /* 2021-08-14T12:51:57.615988480+0300 */, st_atime_nsec=615988480, st_mtime=1628934717 /* 2021-08-14T12:51:57.615988480+0300 */, st_mtime_nsec=615988480, st_ctime=1628934717 /* 2021-08-14T12:51:57.615988480+0300 */, st_ctime_nsec=615988480}) = 0
[pid 28930] read(6, "", 4096)           = 0
[pid 28930] close(6)                    = 0
[pid 28930] write(7, "\0\0\0 \1\1\0\2KBXf\0\0\0\0a\26\220>a\27\222=\0\0\0\0\0\0\0\0"..., 1458) = 1458
[pid 28930] close(7)                    = 0
[pid 28930] unlink("/opt/root/.gnupg/pubring.kbx.tmp") = 0
[pid 28930] access("/opt/root/.gnupg/pubring.kbx", W_OK) = 0
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.kbx.lock", O_RDONLY|O_LARGEFILE) = 6
[pid 28930] read(6, "     28930\nKeenetic-6065\n", 25) = 25
[pid 28930] close(6)                    = 0
[pid 28930] getpid()                    = 28930
[pid 28930] unlink("/opt/root/.gnupg/pubring.kbx.lock") = 0
[pid 28930] access("/opt/root/.gnupg/secring.gpg", F_OK) = -1 ENOENT (No such file or directory)
[pid 28930] openat(AT_FDCWD, "/opt/etc/.mail.gpg", O_RDONLY|O_LARGEFILE) = 6
[pid 28930] read(6, "\205\1\f\3D3 ^&\206{\31\1\10\0\250\345>I\32)H\277vA\256z\343\230\350*+"..., 8192) = 339
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = 7
[pid 28930] _llseek(7, 0, [0], SEEK_CUR) = 0
[pid 28930] fstat64(7, {st_dev=makedev(0x8, 0x1), st_ino=1324647, st_mode=S_IFREG|0644, st_nlink=1, st_uid=65534, st_gid=0, st_blksize=4096, st_blocks=8, st_size=1458, st_atime=1628869457 /* 2021-08-13T18:44:17.339995773+0300 */, st_atime_nsec=339995773, st_mtime=1628869457 /* 2021-08-13T18:44:17.339995773+0300 */, st_mtime_nsec=339995773, st_ctime=1628934481 /* 2021-08-14T12:48:01.087988506+0300 */, st_ctime_nsec=87988506}) = 0
[pid 28930] read(7, "\0\0\0 \1\1\0\2KBXf\0\0\0\0a\26\220>a\26\220>\0\0\0\0\0\0\0\0"..., 4096) = 1458
[pid 28930] _llseek(7, 0, [1458], SEEK_CUR) = 0
[pid 28930] getuid()                    = 65534
[pid 28930] stat64("/opt/var/run/user/65534", 0x7fd17b40) = -1 ENOENT (No such file or directory)
[pid 28930] getuid()                    = 65534
[pid 28930] stat64("/opt/var/run/user/65534", 0x7fd17b40) = -1 ENOENT (No such file or directory)
[pid 28930] stat("/opt/root/.gnupg/S.gpg-agent", {st_dev=makedev(0x8, 0x1), st_ino=1324642, st_mode=S_IFSOCK|0700, st_nlink=1, st_uid=65534, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=1628933124 /* 2021-08-14T12:25:24.835988658+0300 */, st_atime_nsec=835988658, st_mtime=1628933124 /* 2021-08-14T12:25:24.835988658+0300 */, st_mtime_nsec=835988658, st_ctime=1628934481 /* 2021-08-14T12:48:01.083988506+0300 */, st_ctime_nsec=83988506}) = 0
[pid 28930] socket(AF_UNIX, SOCK_STREAM, 0) = 8
[pid 28930] stat("/opt/root/.gnupg/S.gpg-agent", {st_dev=makedev(0x8, 0x1), st_ino=1324642, st_mode=S_IFSOCK|0700, st_nlink=1, st_uid=65534, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=1628933124 /* 2021-08-14T12:25:24.835988658+0300 */, st_atime_nsec=835988658, st_mtime=1628933124 /* 2021-08-14T12:25:24.835988658+0300 */, st_mtime_nsec=835988658, st_ctime=1628934481 /* 2021-08-14T12:48:01.083988506+0300 */, st_ctime_nsec=83988506}) = 0
[pid 28930] connect(8, {sa_family=AF_UNIX, sun_path="/opt/root/.gnupg/S.gpg-agent"}, 30) = 0
[pid 28930] read(8, "OK Pleased to meet you, process "..., 1002) = 38
[pid 28930] write(8, "RESET", 5)        = 5
[pid 28930] write(8, "\n", 1)           = 1
[pid 28930] read(8, "OK\n", 1002)       = 3
[pid 28930] ioctl(0, TCGETS, 0x7fd179e8) = -1 ENOTTY (Inappropriate ioctl for device)
[pid 28930] ioctl(0, TCGETS, 0x7fd179e8) = -1 ENOTTY (Inappropriate ioctl for device)
[pid 28930] write(8, "GETINFO version", 15) = 15
[pid 28930] write(8, "\n", 1)           = 1
[pid 28930] read(8, "D 2.2.23\nOK\n", 1002) = 12
[pid 28930] write(8, "OPTION allow-pinentry-notify", 28) = 28
[pid 28930] write(8, "\n", 1)           = 1
[pid 28930] read(8, "OK\n", 1002)       = 3
[pid 28930] write(8, "OPTION agent-awareness=2.1.0", 28) = 28
[pid 28930] write(8, "\n", 1)           = 1
[pid 28930] read(8, "OK\n", 1002)       = 3
[pid 28930] write(8, "HAVEKEY 103B54970B29926CE0C3D6CE"..., 48) = 48
[pid 28930] write(8, "\n", 1)           = 1
[pid 28930] read(8, "OK\n", 1002)       = 3
[pid 28930] close(7)                    = 0
[pid 28930] openat(AT_FDCWD, "/opt/root/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = 7
[pid 28930] _llseek(7, 0, [0], SEEK_CUR) = 0
[pid 28930] fstat64(7, {st_dev=makedev(0x8, 0x1), st_ino=1324647, st_mode=S_IFREG|0644, st_nlink=1, st_uid=65534, st_gid=0, st_blksize=4096, st_blocks=8, st_size=1458, st_atime=1628869457 /* 2021-08-13T18:44:17.339995773+0300 */, st_atime_nsec=339995773, st_mtime=1628869457 /* 2021-08-13T18:44:17.339995773+0300 */, st_mtime_nsec=339995773, st_ctime=1628934481 /* 2021-08-14T12:48:01.087988506+0300 */, st_ctime_nsec=87988506}) = 0
[pid 28930] read(7, "\0\0\0 \1\1\0\2KBXf\0\0\0\0a\26\220>a\26\220>\0\0\0\0\0\0\0\0"..., 4096) = 1458
[pid 28930] _llseek(7, 0, [1458], SEEK_CUR) = 0
[pid 28930] write(8, "HAVEKEY DC7B773FB778B1FAF9BA1365"..., 89) = 89
[pid 28930] write(8, "\n", 1)           = 1
[pid 28930] read(8, "OK\n", 1002)       = 3
[pid 28930] time(NULL)                  = 1628934717 (2021-08-14T12:51:57+0300)
[pid 28930] time(NULL)                  = 1628934717 (2021-08-14T12:51:57+0300)
[pid 28930] time(NULL)                  = 1628934717 (2021-08-14T12:51:57+0300)
[pid 28930] time(NULL)                  = 1628934717 (2021-08-14T12:51:57+0300)
[pid 28930] time(NULL)                  = 1628934717 (2021-08-14T12:51:57+0300)
[pid 28930] write(8, "HAVEKEY 103B54970B29926CE0C3D6CE"..., 48) = 48
[pid 28930] write(8, "\n", 1)           = 1
[pid 28930] read(8, "OK\n", 1002)       = 3
...

 

[14-Aug-2021 12:49:13 Europe/Moscow] mail() on [/opt/share/nginx/html/msmtp.php:2]: To: receipient@domain.com -- Headers:  -- Subject: A Subject Here
Aug 14 12:49:28 host=smtp.gmail.com tls=on auth=on user=xxx@gmail.com from=root@xxx recipients=receipient@domain.com errormsg='cannot locate host smtp.gmail.com: Temporary failure in name resolution' exitcode=EX_NOHOST
[14-Aug-2021 12:49:31 Europe/Moscow] mail() on [/opt/share/nginx/html/msmtp.php:2]: To: receipient@domain.com -- Headers:  -- Subject: A Subject Here
Aug 14 12:49:39 host=smtp.gmail.com tls=on auth=on user=xxx@gmail.com from=root@xxx recipients=receipient@domain.com mailsize=173 smtpstatus=250 smtpmsg='250 2.0.0 OK  1628934579 b20sm4744690pfl.9 - gsmtp' exitcode=EX_OK
[14-Aug-2021 12:51:43 Europe/Moscow] mail() on [/opt/share/nginx/html/msmtp.php:2]: To: receipient@domain.com -- Headers:  -- Subject: A Subject Here
Aug 14 12:51:50 host=smtp.gmail.com tls=on auth=on user=xxx@gmail.com from=nobody@xxx recipients=receipient@domain.com mailsize=175 smtpstatus=250 smtpmsg='250 2.0.0 OK  1628934710 r10sm4993668pff.7 - gsmtp' exitcode=EX_OK
[14-Aug-2021 12:51:57 Europe/Moscow] mail() on [/opt/share/nginx/html/msmtp1.php:5]: To: receipient@yandex.ru -- Headers:  -- Subject: my subject
Aug 14 12:52:04 host=smtp.gmail.com tls=on auth=on user=xxx@gmail.com from=nobody@xxx recipients=receipient@yandex.ru mailsize=124 smtpstatus=250 smtpmsg='250 2.0.0 OK  1628934724 125sm5255156pfy.17 - gsmtp' exitcode=EX_OK
Aug 14 12:52:37 host=smtp.gmail.com tls=on auth=on user=xxx@gmail.com from=root@xxx recipients=username@domain.com mailsize=87 smtpstatus=250 smtpmsg='250 2.0.0 OK  1628934756 f1sm5229922pfk.115 - gsmtp' exitcode=EX_OK
Aug 14 12:52:54 host=smtp.gmail.com tls=on auth=on user=xxxo@gmail.com from=root@xxx recipients=username@domain.com mailsize=87 smtpstatus=250 smtpmsg='250 2.0.0 OK  1628934774 r16sm4273396pje.10 - gsmtp' exitcode=EX_OK
~ # 

убил систему... )))

___

по "паролю" оно работает, по "крипте" надо или настраивать многопользовательскую систему (и не факт, что взлетит), или установить debian (надо проверять).

Link to comment
Share on other sites

1 час назад, TheBB сказал:

Все логи отправки, что выше, были с паролем "открытым текстом"

я делал пароли для приложений в google. а у вас версия msmtp c ssl или nossl?

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...