Portál AbcLinuxu, 6. května 2025 14:16
# ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd -o content_filter=dspam ... dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -a ${recipient} dspam unix - n n - 10 pipe flags=Ru user=dspam argv=/usr/local/bin/dspam --deliver=innocent --user $user -i -f $sender -- $recipientmain.cf
#################### GENERAL SETTINGS ################# smtpd_banner = $myhostname - Restricted SMTP server is waiting for your HELO/EHLO myhostname = mx1.xxxxxx.com mydestination = $mynetworks mynetworks = 127.0.0.1 inet_interfaces = all disable_vrfy_command = yes virtual_mailbox_base = /var/vmail/ message_size_limit = 30720000 virtual_transport = dovecot dovecot_destination_recipient_limit = 1 dspam_destination_recipient_limit = 1 smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_auth_enable = yes inet_protocols = ipv4dspam.conf
Home /var/spool/dspam StorageDriver /usr/lib/dspam/libhash_drv.so TrustedDeliveryAgent "/usr/sbin/sendmail" OnFail error Trust root Trust postfix Trust dspam Trust mail Trust mailnull Trust smmsp Trust daemon TrainingMode teft TestConditionalTraining on Feature chained Feature whitelist Algorithm graham burton PValue graham ImprobabilityDrive on Preference "spamAction=tag" Preference "signatureLocation=headers" # 'message' or 'headers' Preference "showFactors=on" AllowOverride trainingMode AllowOverride spamAction spamSubject AllowOverride statisticalSedation AllowOverride enableBNR AllowOverride enableWhitelist AllowOverride signatureLocation AllowOverride showFactors AllowOverride optIn optOut AllowOverride whitelistThreshold HashRecMax 98317 HashAutoExtend on HashMaxExtents 0 HashExtentSize 49157 HashMaxSeek 100 HashConnectionCache 10 Notifications off LocalMX 127.0.0.1 SystemLog on UserLog on Opt in ProcessorBias onNutno podotknout, že se v logách neobjevuje ohledně dspam nic kromě klasického zpracování pošty externím filtrem:
Oct 12 23:33:40 mx1 postfix/pipe[24384]: ADDD429F88E6: to=somebody@somewhere, relay=dspam, delay=0.16, delays=0.14/0/0/0.02, dsn=2.0.0, status=sent (delivered via dspam service)Pokud vezmu nějaký email a proženu jej příkazem:
cat email.txt | dspam --user somebody@somewhere --stdout --deliver=innocent,spam --mode=notrain --debug...výstupem je naprosto identický email opět bez změny hlavičky. Zkoušel jsem dspam nakonfigurovat i jako démona, se kterým by postfix komukoval skrz sockety, ale výsledek byl naprosto stejný. Pomalu si začínám myslet, že jsem buď přehlídnul něco naprosto zásadního anebo je v tomto debianím balíčku bug. Byl bych velmi vděčný za jakoukoliv pomoc.
Na otázku zatím nikdo bohužel neodpověděl.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.