Страница 1 из 2

CentOS 8 Spamassasin

Добавлено: Чт июл 30, 2020 7:11 pm
morphay
Установка по дефолту, ничего не добавлялось и не менялось.
Проблема: Входящая почта не работала.

Логи:

Код: Выделить всё

/var/log/exim/main.log
2020-07-30 19:16:01 Delay 0s for mail-ej1-f46.google.com [209.85.218.46] with HELO=mail-ej1-f46.google.com. Mail from morphays@gmail.com to admin@upweb.me.
2020-07-30 19:16:01 1k1BDt-001uHw-1v spam acl condition: spamd: failed to connect to any address for 127.0.0.1: Connection refused
2020-07-30 19:16:01 1k1BDt-001uHw-1v spam acl condition: all spamd servers failed
2020-07-30 19:16:01 1k1BDt-001uHw-1v H=mail-ej1-f46.google.com [209.85.218.46] I=[46.10.178.152]:25 Warning: ACL "warn" statement skipped: condition test deferred
2020-07-30 19:16:01 1k1BDt-001uHw-1v spam acl condition: spamd: failed to connect to any address for 127.0.0.1: Connection refused
2020-07-30 19:16:01 1k1BDt-001uHw-1v spam acl condition: all spamd servers failed
2020-07-30 19:16:01 1k1BDt-001uHw-1v H=mail-ej1-f46.google.com [209.85.218.46] I=[46.10.178.152]:25 Warning: ACL "warn" statement skipped: condition test deferred
2020-07-30 19:16:01 1k1BDt-001uHw-1v spam acl condition: spamd: failed to connect to any address for 127.0.0.1: Connection refused
2020-07-30 19:16:01 1k1BDt-001uHw-1v spam acl condition: all spamd servers failed
2020-07-30 19:16:01 1k1BDt-001uHw-1v H=mail-ej1-f46.google.com [209.85.218.46] I=[46.10.178.152]:25 Warning: ACL "warn" statement skipped: condition test deferred
2020-07-30 19:16:01 1k1BDt-001uHw-1v spam acl condition: spamd: failed to connect to any address for 127.0.0.1: Connection refused
2020-07-30 19:16:01 1k1BDt-001uHw-1v spam acl condition: all spamd servers failed
2020-07-30 19:16:01 1k1BDt-001uHw-1v H=mail-ej1-f46.google.com [209.85.218.46] I=[46.10.178.152]:25 X=TLSv1.3:TLS_AES_128_GCM_SHA256:128 CV=no F=<morphays@gmail.com> temporarily rejected after DATA

Код: Выделить всё

/var/log/exim/panic.log
2020-07-30 20:11:43 1k1C5n-0022uq-No spam acl condition: all spamd servers failed
2020-07-30 20:11:43 1k1C5n-0022uq-No spam acl condition: all spamd servers failed
2020-07-30 20:11:43 1k1C5n-0022uq-No spam acl condition: all spamd servers failed
2020-07-30 20:11:43 1k1C5n-0022uq-No spam acl condition: all spamd servers failed
2020-07-30 20:16:13 1k1CA9-0024x0-57 spam acl condition: all spamd servers failed
2020-07-30 20:16:13 1k1CA9-0024x0-57 spam acl condition: all spamd servers failed
2020-07-30 20:16:13 1k1CA9-0024x0-57 spam acl condition: all spamd servers failed
2020-07-30 20:16:13 1k1CA9-0024x0-57 spam acl condition: all spamd servers failed
Решение: Переустановил Spamassasin и ошибки исчезли...

Re: CentOS 8 Spamassasin

Добавлено: Пт июл 31, 2020 11:58 am
sbury
мы проверим этот момент

Re: CentOS 8 Spamassasin

Добавлено: Ср ноя 29, 2023 3:59 pm
Cramac
Здравствуйте. Подскажите, в логах постоянно:

Код: Выделить всё

Nov 29 16:41:53 host spamd[3206792]: spamd: connection from 127.0.0.1 [127.0.0.1]:36028 to port 783, fd 6
Nov 29 16:41:53 host spamd[3206792]: spamd: setuid to nobody succeeded
Nov 29 16:41:53 host spamd[3206792]: spamd: creating default_prefs: /nonexistent/.spamassassin/user_prefs
Nov 29 16:41:53 host spamd[3206792]: config: cannot create user preferences file /nonexistent/.spamassassin/user_prefs: No such file or directory
Nov 29 16:41:53 host spamd[3206792]: spamd: failed to create readable default_prefs: /nonexistent/.spamassassin/user_prefs
Nov 29 16:41:53 host spamd[3206792]: spamd: checking message <S0x512f5FsAAAAAAAsq/qwAAAAAAAAQu> for nobody:65534
Nov 29 16:41:54 host spamd[3206792]: spamd: clean message (1.2/5.0) for nobody:65534 in 0.4 seconds, 160526 bytes.
Nov 29 16:41:54 host spamd[3206792]: spamd: result: . 1 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_FONT_LOW_CONTRAST,HTML_IMAGE_RATIO_06,HTML_MESSAGE,INVALID_MSGID,MIME_HTML_ONLY,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_ZEN_BLOCKED_OPENDNS,SPF_HELO_NONE,SPF_PASS,T_KAM_HTML_FONT_INVALID,URIBL_BLOCKED,URIBL_DBL_BLOCKED_OPENDNS,URIBL_ZEN_BLOCKED_OPENDNS scantime=0.4,size=160526,user=nobody,uid=65534,required_score=5.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=36028,mid=<S0x512f5FsAAAAAAAsq/qwAAAAAAAAQu>,autolearn=no autolearn_force=no

Re: CentOS 8 Spamassasin

Добавлено: Чт ноя 30, 2023 7:40 am
sbury
Покажите выводы

Код: Выделить всё

cat /etc/exim/exim.conf |  grep nobody
ps -auxww | grep spamd

Re: CentOS 8 Spamassasin

Добавлено: Чт ноя 30, 2023 11:34 am
Cramac
root@host:~# cat /etc/exim/exim.conf | grep nobody
spam = nobody:true
spam = nobody:true
spam = nobody:true
spam = nobody:true
root@host:~# ps -auxww | grep spamd
root 3821140 0.0 0.5 108644 82948 ? Ss Nov29 0:12 /usr/bin/perl -T -w /usr/sbin/spamd -d --pidfile=/run/spamd.pid --create-prefs --max-children 5 --helper-home-dir
root 3821141 0.0 0.6 121072 102032 ? S Nov29 0:05 spamd child
root 3821142 0.0 0.5 112372 93192 ? S Nov29 0:00 spamd child
root 4168748 0.0 0.0 6432 720 pts/1 S+ 14:33 0:00 grep --color=auto spamd
root@host:~#
пока решил, создав в ручную и поставил 777

Re: CentOS 8 Spamassasin

Добавлено: Чт ноя 30, 2023 12:03 pm
sbury
попробуйте заменить в конфиге все строки
spam = nobody:true
на
spam = mailnull:true
и перезапустить exim

Re: CentOS 8 Spamassasin

Добавлено: Чт ноя 30, 2023 12:19 pm
Cramac
Не помогло
Nov 30 15:18:30 host spamd[4184727]: spamd: connection from 127.0.0.1 [127.0.0.1]:40516 to port 783, fd 6
Nov 30 15:18:30 host spamd[4184727]: spamd: setuid to nobody succeeded
Nov 30 15:18:30 host spamd[4184727]: spamd: creating default_prefs: /nonexistent/.spamassassin/user_prefs
Nov 30 15:18:30 host spamd[4184727]: config: cannot create user preferences file /nonexistent/.spamassassin/user_prefs: No such file or directory
Nov 30 15:18:30 host spamd[4184727]: spamd: failed to create readable default_prefs: /nonexistent/.spamassassin/user_prefs
Nov 30 15:18:30 host spamd[4184727]: spamd: checking message <1701346709.630866437@f189.i.mail.ru> for nobody:65534
Nov 30 15:18:31 host spamd[4184727]: spamd: clean message (1.6/5.0) for nobody:65534 in 0.3 seconds, 5022 bytes.
Nov 30 15:18:31 host spamd[4184727]: spamd: result: . 1 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,MISSING_SUBJECT,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_ZEN_BLOCKED_OPENDNS,SPF_HELO_PASS,SPF_PASS scantime=0.3,size=5022,user=nobody,uid=65534,required_score=5.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=40516,mid=<1701346709.630866437@f189.i.mail.ru>,autolearn=no autolearn_force=no
Nov 30 15:18:31 host spamd[4184726]: prefork: child states: II

Код: Выделить всё

# ps -auxww | grep spamd
root       10439  0.0  0.0   6432   720 pts/1    S+   15:19   0:00 grep --color=auto spamd
root     4184726  0.0  0.6 108740 98748 ?        Ss   15:08   0:00 /usr/bin/perl -T -w /usr/sbin/spamd -d --pidfile=/run/spamd.pid --create-prefs --max-children 5 --helper-home-dir
root     4184727  0.0  0.6 111224 99452 ?        S    15:08   0:00 spamd child
root     4184728  0.0  0.5 108740 92136 ?        S    15:08   0:00 spamd child

Re: CentOS 8 Spamassasin

Добавлено: Чт ноя 30, 2023 12:44 pm
sbury
Nov 30 15:18:30 host spamd[4184727]: spamd: setuid to nobody succeeded

Вы сервис перезапустили? Так как он продолжает видить в вашем конфиге nobody. Перезапустите оба, exim и spamd

Re: CentOS 8 Spamassasin

Добавлено: Чт ноя 30, 2023 2:01 pm
Cramac
перезагрузил exim и spamd
Nov 30 16:59:52 host spamd[67640]: spamd: connection from 127.0.0.1 [127.0.0.1]:54650 to port 783, fd 6
Nov 30 16:59:52 host spamd[67640]: spamd: setuid to mailnull succeeded
Nov 30 16:59:52 host spamd[67640]: spamd: creating default_prefs: /var/spool/mqueue/.spamassassin/user_prefs
Nov 30 16:59:52 host spamd[67640]: config: cannot create user preferences file /var/spool/mqueue/.spamassassin/user_prefs: No such file or directory
Nov 30 16:59:52 host spamd[67640]: spamd: failed to create readable default_prefs: /var/spool/mqueue/.spamassassin/user_prefs
Nov 30 16:59:52 host spamd[67640]: spamd: checking message <1701352791.782345964@f304.i.mail.ru> for mailnull:47
Nov 30 16:59:53 host spamd[67640]: spamd: clean message (1.6/5.0) for mailnull:47 in 0.6 seconds, 5009 bytes.
Nov 30 16:59:53 host spamd[67640]: spamd: result: . 1 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,MISSING_SUBJECT,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_ZEN_BLOCKED_OPENDNS,SPF_HELO_PASS,SPF_PASS scantime=0.6,size=5009,user=mailnull,uid=47,required_score=5.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=54650,mid=<1701352791.782345964@f304.i.mail.ru>,autolearn=no autolearn_force=no
Nov 30 16:59:53 host spamd[67638]: prefork: child states: II
у меня в /var/spool/ нет папки mqueue

Re: CentOS 8 Spamassasin

Добавлено: Чт ноя 30, 2023 3:24 pm
sbury
А вы когда панель устанавливали и какова ее версия?