Score:0

I need help removing spamassassin completely

us flag
Jim

I've got an AWS EC2 instance running Xenial which has Postfix installed and at some point in the past I was messing around with settings and spamassassin.

I (used to) use it to forward all emails to my gmail account. Lets say that I own the domain fub.ar; and anyone emails me at "[email protected]", it will forward that email seamlessly to [email protected] (it'll appear in my gmail as from whoever it was from).

I have this for a number of domains and gmail addresses that I have for a few people.

It used to work untill I played with it too much (the story of my life).

Now, I realised that I didn't really need spamassassin as the Google spam handling is pretty robust, and is less work if I just let Google deal with the spam.

So I tried to remove spamassassin. This was a long time ago and I've not really dealt with it since. I've left it hanging for way too long and want to get it fixed now.

I believe that I tried removing it with the apt remove spamassassin as well as purging it.

But I'm still getting lines in the /var/log/mail.log that look like this:

Mar 12 11:15:48 mx postfix/qmgr[2186]: warning: connect to transport private/spamassassin: Connection refused

And naturally, no emails are actaully reaching my [email protected] that are addressed to *@fub.ar.

Here's cat /etc/postfix/master.cf | egrep -v '^#':

smtp      inet  n       -       y       -       -       smtpd -v
submission inet n       -       y       -       -       smtpd
smtps     inet  n       -       y       -       -       smtpd
pickup    unix  n       -       y       60      1       pickup
cleanup   unix  n       -       y       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       y       1000?   1       tlsmgr
rewrite   unix  -       -       y       -       -       trivial-rewrite
bounce    unix  -       -       y       -       0       bounce
defer     unix  -       -       y       -       0       bounce
trace     unix  -       -       y       -       0       bounce
verify    unix  -       -       y       -       1       verify
flush     unix  n       -       y       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       y       -       -       smtp
relay     unix  -       -       y       -       -       smtp
showq     unix  n       -       y       -       -       showq
error     unix  -       -       y       -       -       error
retry     unix  -       -       y       -       -       error
discard   unix  -       -       y       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       y       -       -       lmtp
anvil     unix  -       -       y       -       1       anvil
scache    unix  -       -       y       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

Here's cat /etc/postfix/main.cf:

compatibility_level = 2
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix/sbin
data_directory = /var/lib/postfix
inet_interfaces = all
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8

virtual_alias_domains = fub.ar fub2.ar buf.ra
virtual_alias_maps = hash:/etc/postfix/virtual

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5
inet_protocols = ipv4
smtpd_sender_restrictions = hash:/etc/postfix/access

Here's cat /etc/postfix/virtual:

# fub.ar
fub.ar                       VIRTUAL
@fub.ar                      [email protected]

# fub2.ar
fub2.ar             VIRTUAL
@fub2.ar            [email protected]

# buf.ra
buf.ra                   VIRTUAL
@buf.ra                  [email protected]

And here's the contents of /etc/postfix/

-rw-r--r--   1 root root    14 Oct 22  2018 access
-rw-r--r--   1 root root 12288 Oct 22  2018 access.db
-rw-r--r--   1 root root    50 Jul  4  2020 domains
-rw-r--r--   1 root root   108 Jul 31  2018 dynamicmaps.cf
-rw-r--r--   1 root root   595 May 19  2020 main.cf
-rw-r--r--   1 root root 27422 Jun 13  2019 main.cf.2109-06-13
-rw-r--r--   1 root root 27126 Jul 31  2018 main.cf.proto
-rw-r--r--   1 root root  6289 Mar 12 10:34 master.cf
-rw-r--r--   1 root root  6068 Aug  1  2018 master.cf.orig
-rw-r--r--   1 root root  6068 Jul 31  2018 master.cf.proto
-rw-r--r--   1 root root 21233 Jan 17  2018 postfix-files
-rwxr-xr-x   1 root root  9344 Jan 17  2018 postfix-script*
-rwxr-xr-x   1 root root 29446 Jan 17  2018 post-install*
drwxr-xr-x   2 root root  4096 Jan 17  2018 sasl/
-rw-r--r--   1 root root   296 Mar 12 09:49 virtual
-rw-r--r--   1 root root 12288 Mar 12 10:35 virtual.db
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.