Hi all.

I have finally, *finally* gotten postfix and dbmail working on my desktop :) I can send mail and have it delivered into dbmail, and fetch the mail via imap from Thunderbird.

I'm now following the instructions at:
http://www.dbmail.org/dokuwiki/doku.php?id=postfix_-_dspam_-_dbmail
to integrate dspam as well. As far as I can tell, though, nothing is being sent to dspam. Here is a list of all the places where dspam is mentioned in my postfix config files ( I'm posting the full config files at the bottom ):

---

dkasak postfix # pwd
/etc/postfix
dkasak postfix # grep dspam *
master.cf:# dspam
master.cf:dspam unix - n n - - pipe flags= \ master.cf: user=dspam:dspam argv=/usr/bin/dspam --deliver=innocent --user ${recipient} master.cf:dspam-spam unix - n n - - pipe flags= \
master.cf:  user=dspam:dspam argv=/usr/local/bin/register-spam ${recipient}
master.cf:dspam-ham unix - n n - - pipe flags= \
master.cf:  user=dspam:dspam argv=/usr/localbin/unregister-spam ${recipient}
transport:nusconsulting.com.au   dspam:
transport:spam.nusconsulting.com.au  dspam-spam:
transport:ham.nusconsulting.com.au  dspam-ham:
Binary file transport.db matches
dkasak postfix #

---

I tried sending some spam to myself, and didn't notice any dspam process start, any mention of dspam in my log files, or any attempt at stopping the spam from being delivered.

The instructions at: http://dspamwiki.expass.de/Installation/Postfix/NealesSetup mention that you should set up a filter file at /etc/postfix/dspam_filter_access. Is this the part I'm missing? I'm not really sure how all the parts are linked together at the moment, and I've been reading a number of other howtos that describe different ways of doing basically the same thing, but I don't want to mix up different parts from different instructions and make a big mess.

Some config files:

/etc/postfix/main.cf

---

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
mydestination = $myhostname, nusconsulting.com.au, mail.nusconsulting.com.au spam.nusconsulting.com.au, ham.nusconsulting.com.au
local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf
unknown_local_recipient_reject_code = 550
mailbox_transport = dbmail-lmtp:127.0.0.1:24
debug_peer_level = 2
debugger_command =
        PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
        xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.3.2/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.3.2/readme

---

/etc/postfix/master.cf

---

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  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
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
       -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     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
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
 flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
 flags=R user=cyrus argv=/usr/lib/cyrus/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus     unix  -       n       n       -       -       pipe
flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m ${extension} ${user}
# Cyrus with "virtdomains: yes"
# Also specify in main.cf: virtual_transport = virt-cyrus
virt-cyrus     unix  -       n       n       -       -       pipe
flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m ${recipient} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient

# dspam

dspam         unix  -       n       n       -       -       pipe flags= \
user=dspam:dspam argv=/usr/bin/dspam --deliver=innocent --user ${recipient}

dspam-spam    unix  -       n       n       -       -       pipe flags= \
 user=dspam:dspam argv=/usr/local/bin/register-spam ${recipient}

dspam-ham    unix  -       n       n       -       -       pipe flags= \
 user=dspam:dspam argv=/usr/localbin/unregister-spam ${recipient}

dbmail-lmtp   unix  -       -       n       -       -       lmtp -v

---

/etc/postfix/transport

---

nusconsulting.com.au   dspam:
spam.nusconsulting.com.au  dspam-spam:
ham.nusconsulting.com.au  dspam-ham:

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

Reply via email to