• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Qmail / Spamassasin problems

K

kalss

Guest
Hi there, I had a migration from a box to ahother box from FC1 to FC2, and new installation is having some problems:

1.- Spamassasin doesn't work, don't kno why, i see this error on maillog:
Aug 3 19:11:45 trix qmail: 1123089105.833245 info msg 279062: bytes 1766 from <[email protected]> qp 31994 uid 2020
Aug 3 19:11:45 trix qmail: 1123089105.838854 starting delivery 67: msg 279062 to local [email protected]
Aug 3 19:11:45 trix qmail: 1123089105.838901 status: local 1/10 remote 0/20
Aug 3 19:11:45 trix spamc[31998]: connect(AF_UNIX) to spamd /tmp/spamd_light.sock failed: No such file or directory
Aug 3 19:11:45 trix qmail: 1123089105.861204 delivery 67: success: did_1+0+2/did_0+0+1/
Aug 3 19:11:45 trix qmail: 1123089105.861407 status: local 0/10 remote 0/20
Aug 3 19:11:45 trix qmail: 1123089105.861449 end msg 279062
Aug 3 19:11:50 trix qmail: 1123089110.791578 new msg 279053
Aug 3 19:11:50 trix qmail: 1123089110.791629 info msg 279053: bytes 3823 from <[email protected]> qp 31989 uid 2020
Aug 3 19:11:50 trix qmail: 1123089110.797637 starting delivery 68: msg 279053 to local [email protected]
Aug 3 19:11:50 trix qmail: 1123089110.797676 status: local 1/10 remote 0/20
Aug 3 19:11:50 trix qmail: 1123089110.797713 starting delivery 69: msg 279053 to local [email protected]
Aug 3 19:11:50 trix qmail: 1123089110.797747 status: local 2/10 remote 0/20
Aug 3 19:11:50 trix spamc[32015]: connect(AF_UNIX) to spamd /tmp/spamd_light.sock failed: No such file or directory
Aug 3 19:11:50 trix spamc[32016]: connect(AF_UNIX) to spamd /tmp/spamd_light.sock failed: No such file or directory
Aug 3 19:11:50 trix qmail: 1123089110.831559 delivery 68: success: did_1+0+2/did_0+0+1/
Aug 3 19:11:50 trix qmail: 1123089110.831641 status: local 1/10 remote 0/20
Aug 3 19:11:50 trix qmail: 1123089110.833924 delivery 69: success: did_1+0+2/did_0+0+1/
Aug 3 19:11:50 trix qmail: 1123089110.834046 status: local 0/10 remote 0/20

How can I fix this ?

2.- Qmail service sometimes gets stopped, why ?
 
/tmp/spamd_light.sock failed: No such file or directory
Check to see if this file exists and what the ownership and permissions are.

Interesting that it is referencing the 'light' instead of 'full' sock file. My test server (RH/Plesk 7.5.3) shows:

srw-rw-rw- 1 popuser root 0 Jul 23 04:26 spamd_full.sock
 
The light vs. full socket depends on the spamassasin settings on the mailbox (wether the mailbox is set to use the server or user filter settings)

So thats normal nothing wrong there.
 
I have both files, and permissions are this:

[root@punk root]# ls -al /tmp/spamd_* -al
srw-rw-rw- 1 popuser root 0 ago 3 20:47 /tmp/spamd_full.sock
srw-rw-rw- 1 popuser root 0 ago 3 20:47 /tmp/spamd_light.sock

I'll check spamassasin settings on the mailbox for the user ....
 
Hello, I have a seemed problem, leaves the same error to me and the smtp falls, you could give with some solution?

Willy Acuña
 
Tengo problemas con el servicio de Correo, revisando los LOGS encuentro lo que copio abajo, cuando sucede ese error el SMTP de cae, y tambien tengo instalado el Watchdog para monitorear y me manda el siguiente mensaje:

[Sun, 09 Oct 2005 01:13:15 -0500] qmail on keey.yarkan.com.pe: Connection failed. 'qmail' failed protocol test [SMTP] at INET[localhost:25].


Copio parte del /usr/local/psa/var/log/maillog

Oct 9 01:13:15 keey qmail: 1128838395.315427 starting delivery 3315: msg 4554895 to remote [email protected]
Oct 9 01:13:15 keey qmail: 1128838395.315507 status: local 0/10 remote 1/20
Oct 9 01:13:15 keey qmail: 1128838395.315536 starting delivery 3316: msg 4554895 to remote [email protected]
Oct 9 01:13:15 keey qmail: 1128838395.315556 status: local 0/10 remote 2/20
Oct 9 01:13:15 keey qmail: 1128838395.315574 new msg 4554957
Oct 9 01:13:15 keey qmail: 1128838395.315591 info msg 4554957: bytes 623 from <[email protected]> qp 15026 uid 2020
Oct 9 01:13:15 keey pop3d-ssl: Connection, ip=[127.0.0.1]
Oct 9 01:13:15 keey pop3d-ssl: LOGOUT, ip=[127.0.0.1]
Oct 9 01:13:15 keey pop3d: Connection, ip=[127.0.0.1]
Oct 9 01:13:15 keey pop3d: LOGOUT, ip=[127.0.0.1]
Oct 9 01:13:15 keey imapd-ssl: Connection, ip=[127.0.0.1]
Oct 9 01:13:15 keey imapd: Connection, ip=[127.0.0.1]
Oct 9 01:13:15 keey imapd: 1128838395.499616 LOGOUT, ip=[127.0.0.1], rcvd=12, sent=308, maildir=/etc/rc.d/init.d
Oct 9 01:13:15 keey qmail: 1128838395.510975 starting delivery 3317: msg 4554957 to local [email protected]
Oct 9 01:13:15 keey qmail: 1128838395.511043 status: local 1/10 remote 2/20
Oct 9 01:13:15 keey imapd-ssl: 1128838395.520954 LOGOUT, ip=[127.0.0.1], rcvd=12, sent=310, maildir=/etc/rc.d/init.d
Oct 9 01:13:15 keey spamc[15052]: connect(AF_UNIX) to spamd /tmp/spamd_full.sock failed: No such file or directory
Oct 9 01:13:15 keey qmail: 1128838395.548071 delivery 3315: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
Oct 9 01:13:15 keey qmail: 1128838395.569546 status: local 1/10 remote 1/20
Oct 9 01:13:15 keey qmail: 1128838395.578673 delivery 3317: success: did_1+0+2/did_0+0+1/
Oct 9 01:13:15 keey qmail: 1128838395.579430 status: local 0/10 remote 1/20
Oct 9 01:13:15 keey qmail: 1128838395.580186 end msg 4554957
Oct 9 01:13:15 keey qmail: 1128838395.832408 alert: cannot start: qmail-send is already running
Oct 9 01:13:16 keey qmail: 1128838396.040531 delivery 3316: deferral: Sorry,_I_couldn't_find_any_host_by_that_name._(#4.1.2)/
Oct 9 01:13:16 keey qmail: 1128838396.040609 status: local 0/10 remote 0/20 exitasap
Oct 9 01:13:16 keey qmail: 1128838396.040637 status: exiting

Cuando sucede eso el Qmail se cae (el SMTP)

Algunos datos adicionales:

Procesos activos:

root 2393 0.0 0.0 25400 276 ? S Oct05 0:01 /usr/bin/spamd -d -c -a -m5 -H
popuser 4615 0.0 1.9 22912 20356 ? S 13:16 0:03 /usr/bin/spamd --username=popuser --daemonize --helper-home-dir=/var/qmail --max-children 20 --create-prefs --nouser-config --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --pidfile=/var/run/spamd/spamd_full.pid --socketpath=/tmp/spamd_full.sock
popuser 4617 0.0 1.9 23032 20460 ? S 13:16 0:01 /usr/bin/spamd --username=popuser --daemonize --helper-home-dir=/var/qmail --max-children 20 --create-prefs --nouser-config --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --pidfile=/var/run/spamd/spamd_light.pid --socketpath=/tmp/spamd_light.sock --siteconfigpath=/dev/null
root 11378 0.0 0.0 3680 652 pts/0 S 14:42 0:00 grep spamd


Permisos de los archivos:

[root@keey error]# ls -al /tmp/spamd_*
srw-rw-rw- 1 popuser root 0 Oct 9 13:16 /tmp/spamd_full.sock
srw-rw-rw- 1 popuser root 0 Oct 9 13:16 /tmp/spamd_light.sock

COmo veran tengo activo en Spamassassin, pero unos días atra active el "Habilitar protección de spam" y agregue:
bl.spamcop.net;relays.ordb.org;sbl.spamhaus.org;sbl-xbl.spamhaus.org

No sera que se esten cruzando o algo asi?
Alguna idea

Gracias de antemano por sus comentarios.

Willy Acuña.
 
Back
Top