[SOLVED] Setup Spamassassin

Kernels & Hardware, configuring network, installing services

[SOLVED] Setup Spamassassin

Postby jalisco » 2019-01-04 07:39

Hello.

I got my mail server able to send and receive mails, now working on setting up adjacent applications.

Atm, stuck on spam assassin. It doesn't appear to be filtering any spam. =/

I suspect this is my problem, when I type: spamd -D
I get the following message..
Code: Select all
Jan  4 09:19:47.349 [8742] dbg: logger: adding facilities: all
Jan  4 09:19:47.350 [8742] dbg: logger: logging level is DBG
Jan  4 09:19:47.375 [8742] dbg: logger: calling setlogsock(unix)
Jan  4 09:19:47.375 [8742] dbg: logger: opening syslog with unix socket
Jan  4 09:19:47.375 [8742] dbg: logger: successfully connected to syslog/unix
Jan  4 09:19:47.376 [8742] dbg: logger: successfully added syslog method
Jan  4 09:19:47.376 [8742] dbg: spamd: will perform setuids? 1
Jan  4 09:19:47.377 [8742] dbg: spamd: socket module of choice: IO::Socket::IP 0.37, Socket 2.020_03, have PF_INET, have PF_INET6, using legacy Socket6::getaddrinfo, AI_ADDRCONFIG is supported
Jan  4 09:19:47.377 [8742] dbg: spamd: socket specification: "localhost", IP address: localhost, port: 783
Jan  4 09:19:47.378 [8742] dbg: spamd: attempting to listen on IP addresses: ::1, 127.0.0.1, port 783
Jan  4 09:19:47.378 [8742] dbg: spamd: creating IO::Socket::IP socket: Listen: 128, LocalAddr: ::1, LocalPort: 783, Proto: tcp, ReuseAddr: 1, Type: 1, V6Only: 1
Jan  4 09:19:47.380 [8742] dbg: spamd: could not create IO::Socket::IP socket on [::1]:783: Address already in use
Jan  4 09:19:47.380 [8742] dbg: spamd: creating IO::Socket::IP socket: Listen: 128, LocalAddr: 127.0.0.1, LocalPort: 783, Proto: tcp, ReuseAddr: 1, Type: 1, V6Only: 1
Jan  4 09:19:47.382 [8742] dbg: spamd: could not create IO::Socket::IP socket on [127.0.0.1]:783: Address already in use
spamd: could not create IO::Socket::IP socket on [::1]:783: Address already in use


the system retries to connect the socket 10 times, before stopping. I assume, that is why there is no filtering going on. By filtering, I mean, I try to run the GTUBE test.

Anyone familiar with spamassassin, able to give tips or hints?

I get the same warning about socket already in use, when I check my /var/log/mail.log.



Oh last thing, I have been using this tutorial for setting it up. More or less, everything had simply just worked before with a minor changes.
https://vorkbaard.nl/installing-a-mails ... amassassin

I went through and double checked, and ensured that there was white spaces where required, and that everything was correctly entered. My eyes the biggest causes of my programming problems =)

Thanks in advance, I will keep trying to figure it out.

EDIT: I was able to figure this out, but can't really say how. I think it was based on the simple fact that I was sending the email from my own email server (to myself), and I guess it was whitelisted (my localhost). I know you are supposed to send the spam from an external email, but many email server (at least my current email address) will filter it before it even gets sent!
jalisco
 
Posts: 88
Joined: 2013-09-01 17:30

Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable