Hi everyone.

I´m new with postfix and I´m having a problem when I activate the daemon for
Spamassassin. What happens is that I stop to receive local messages, the
server writes the log with an unknown user message.

I remove the daemon configuration in master.cf and everything works fine.

I´m using dovecot for delivery and I´m not using virtual domains.

Here is my configuration:

-------------------MASTER.CF:

smtp      inet  n       -       n       -       -       smtpd
       -o content_filter=spamassassin

pickup    unix  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
#qmgr     unix  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache

###### Spamassassin Settings
spamassassin unix -    n       n       -       -       pipe
        flags=DRhu user=spamd argv=/usr/local/bin/spamc -u spamd -e
/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d {recipient}

-------------------- MAIN.CF

myhostname = boi.decosvaldo.com.br
mydomain = decosvaldo.com.br
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
boi.$mydomain
mynetworks_style = subnet
mynetworks = 127.0.0.0/8, 172.16.1.0/24
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
home_mailbox = Maildir/
mailbox_command = /usr/local/libexec/dovecot/dovecot-lda -f "$SENDER" -a
"$RECIPIENT"

---------------------DOVECOT.CONF

protocols = imap pop3
!include conf.d/*.conf

protocol lda {
  # Space separated list of plugins to load (default is global
mail_plugins).
  #mail_plugins = $mail_plugins
  log_path = /var/log/dovecot-lda-errors.log
  info_log_path = /var/log/dovecot-lda.log
}
postmaster_address = d...@decosvaldo.com.br
hostname = boi.decosvaldo.com.br

mail_location = maildir:~/Maildir


---------------

The rest is configured with the default values. As you can see, this is a
fresh configuration in a test environment before I put it into production.

When I remove the line: spamassassin unix -    n       n       -       -      
pipe
in master.cf and exclude the -o content_filter=spamassassin, the local
accounts receive mail. If I pipe the messages to the spamassassin service,
the spam check is performed, but postfix don´t forward the local mail to the
local mailboxes.

Dovecot is performing authentication with PAM also with the default values
for now.

The error is this:
Dec 10 11:32:03 boi spamd[9965]: spamd: processing message
<14317739244243998AF878633F48E0AB@user8bace6c069> for spamd:58
Dec 10 11:32:10 boi spamd[9965]: spamd: clean message (-1.0/5.0) for
spamd:58 in 6.5 seconds, 1425 bytes.
Dec 10 11:32:10 boi spamd[9965]: spamd: result: . 0 -
ALL_TRUSTED,HTML_MESSAGE
scantime=6.5,size=1425,user=spamd,uid=58,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=47492,mid=<14317739244243998AF878633F48E0AB@user8bace6c069>,autolearn=ham
Dec 10 11:32:10 boi spamd[9964]: prefork: child states: II
Dec 10 11:32:10 boi postfix/pipe[11524]: 7CF1422B53:
to=<d...@decosvaldo.com.br>, relay=spamassassin, delay=6.8,
delays=0.14/0.02/0/6.6, dsn=5.1.1, status=bounced (user unknown)
Dec 10 11:32:10 boi postfix/cleanup[11523]: 3D370244DA:
message-id=<20121210133210.3d37024...@boi.decosvaldo.com.br>
Dec 10 11:32:10 boi postfix/bounce[11529]: 7CF1422B53: sender non-delivery
notification: 3D370244DA
Dec 10 11:32:10 boi postfix/qmgr[11518]: 3D370244DA: from=<>, size=3219,
nrcpt=1 (queue active)
Dec 10 11:32:10 boi postfix/qmgr[11518]: 7CF1422B53: removed
Dec 10 11:32:10 boi postfix/local[11530]: 3D370244DA:
to=<johnlen...@decosvaldo.com.br>, relay=local, delay=0.08,
delays=0.01/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to command:
/usr/local/libexec/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT")
Dec 10 11:32:10 boi postfix/qmgr[11518]: 3D370244DA: removed

As you can see, the mail sended from johnlen...@decosvaldo.com.br to
d...@decosvaldo.com.br returned to johnlennon with an USER UNKNOWN message.

I hope you can help me.
Thanks a lot
Andre



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/Problem-with-local-delivery-using-FreeBSD-Postfix-Dovecot-and-Spamassassin-tp53098.html
Sent from the Postfix Users mailing list archive at Nabble.com.

Reply via email to