Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have 2 VPSes running Debian Squeeze. Both were set up pretty much identically. They are named Sam and Taz.

Taz, as far as e-mail goes works almost perfectly. Sam has had issues. Originally I posted on here because despite using the almost identical config files, Sam was relaying messages to spamassassin on Taz and unfortunately no one was able to figure out why.

I ended up blowing away postfix/dovecot/spamassassing on Sam and set it up again from scratch. My issue now is that spamassassin is not checking mail. I've found the issue but can't seem to figure out how to correct it.

Looking at /var/lib/spamasassin/spamd.log on Sam, I found:

[3254] warn: spamd: unauthorized connection from sam.domain.com [PUBLIC IP] at port 44206 >at /usr/sbin/spamd line 1238.

[3252] info: prefork: child states: II

On Taz, all entries seem to be coming from the localhost/127.0.0.1. I'm at a loss as to why it's using the public IP when it's all local, but I must have something configured wrong somewhere. I know I could allow the public IP access to spamassassin which would resolve the problem, but that doesn't seem like the best approach to me.

/etc/spamassassin/local.cf on Sam:

rewrite_header Subject *****SPAM*****
 required_score 5.0
 use_bayes 1
 use_razor2 1
 use_pyzor 1
 bayes_auto_learn 1
 ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
 endif # Mail::SpamAssassin::Plugin::Shortcircuit

/etc/postfix/master.cf on Sam:

submission inet n       -       -       -       -       smtpd
  -o smtpd_sasl_auth_enable=yes
smtps     inet  n       -       -       -       -       smtpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       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}
dovecot   unix  -       n       n       -       -       pipe
    flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
spamassassin unix -    n        n      -       -       pipe
    user=spamd argv=/usr/bin/spamc -f -e
    /usr/sbin/sendmail -oi -f ${sender} ${recipient}

I imagine sendmail has something to do with it, but despite a few hours of googling I can't seem to find anything that would explain the issue or ways to correct it. If I missed any config files that need to be posted, please let me know.

share|improve this question
    
Does your local server use localhost, or is the domain you're sending to mapped to the public IP? If it's mapped to a public IP, sendmail (even the postfix version) will send it there, because it doesn't know it needs to send it internally. –  NickW May 29 '13 at 15:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.