RE: [dspam-users] New DSPAM relay install - mail not being delivered

From: Kyle Gingerich <kyle@lincodiagnostics.com>
Date: Wed Nov 02 2005 - 14:34:54 EST

Sorry for not including pertinent information.

Postmap Config:

alias_maps = hash:/etc/aliases
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
empty_address_recipient = MAILER-DAEMON
html_directory = no
local_recipient_maps =
local_transport = error:local mail delivery is disabled
mail_owner = postfix
mailbox_size_limit = 100000000
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 20000000
mydestination =
mydomain = mycompaniesdomainname.com
mynetworks = 127.0.0.0/8 192.168.2.0/24
myorigin = spam.mycompaniesdomainname.com
newaliases_path = /usr/bin/newaliases
parent_domain_matches_subdomains = debug_peer_list smtpd_access_maps
queue_directory = /var/spool/postfix
queue_minfree = 40000000
readme_directory = no
relay_domains = $transport_maps
relay_recipient_maps = hash:/etc/postfix/relay_recipients
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP Postfix
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_mailbox_domains = spam.mycompaniesdomainname.com
virtual_mailbox_maps = mysql:/etc/postfix/vmailbox.cf
virtual_transport = lmtp:unix:/tmp/dspam.sock

________________________

Master.cf

smtp inet n - n - - smtpd
   -o content_filter=dspam:
dspam unix - n n - 10 pipe
   flags=Rhqu user=dspam argv=/usr/local/bin/dspam --deliver=innocent --user $(recipient) -f $(sender) -- $(recipient)
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=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 fifo - - n 300 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
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil

_____________________________________

transport

mycompaniesdomainname.com smtp:[server1.mycompaniesdomainname.com]

______________________________________

vmailbox.cf

user = dspam
password = ourmysqldbpass
dbname = dspam
query = SELECT username FROM dspam_virtual_uids WHERE username='%s'
table = dspam_virtual_uids
host = 127.0.0.1
select_field = username
where_field = username
additiona_conditions =

_______________________________________

dspam.conf

Home /usr/local/var/dspam
StorageDriver /usr/local/lib/libmysql_drv.so
TrustedDeliveryAgent "/usr/bin/procmail"
OnFail error
Trust dspam
Trust apache
Trust postfix
Trust root
Trust mail
Trust mailnull
Trust smmsp
Trust daemon
Debug *
TrainingMode teft
TestConditionalTraining on
Feature chained
Feature tb=5
Feature whitelist
Algorithm graham burton
PValue graham
Preference "spamAction=quarantine"
Preference "signatureLocation=message" # 'message' or 'headers'
Preference "showFactors=on"
AllowOverride localStore
AllowOverride trainingMode
AllowOverride spamAction spamSubject
AllowOverride statisticalSedation
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride signatureLocation
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
MySQLServer /var/lib/mysql/mysql.sock
MySQLPort 3306
MySQLUser dspam
MySQLPass ourmysqlpass
MySQLDb dspam
MySQLCompress true
HashRecMax 100000
HashAutoExtend on
HashMaxExtents 0
HashExtentSize 50000
Notifications on
PurgeSignatures 14 # Stale signatures
PurgeNeutral 90 # Tokens with neutralish probabilities
PurgeUnused 90 # Unused tokens
PurgeHapaxes 30 # Tokens with less than 5 hits (hapaxes)
PurgeHits1S 15 # Tokens with only 1 spam hit
PurgeHits1I 15 # Tokens with only 1 innocent hit
LocalMX 127.0.0.1
SystemLog on
UserLog on
Opt out
ParseToHeaders on
ChangeModeOnParse on
ChangeUserOnParse on
ServerQueueSize 32
ServerPID /var/run/dspam.pid
ServerMode standard
ServerParameters "--deliver=innocent"
ServerIdent "localhost.localdomain"
ServerDomainSocketPath "/tmp/dspam.sock"
ProcessorBias on

__________________________________________

Maillog One email session

Nov 2 10:03:18 spam postfix/smtpd[3472]: connect from kgingerich.ourcompanydomainname.com[192.168.2.66]
Nov 2 10:03:18 spam postfix/smtpd[3472]: 7513EE3228: client=kgingerich.ourcompanydomainname.com[192.168.2.66]
Nov 2 10:03:18 spam postfix/cleanup[3474]: 7513EE3228: message-id=<004001c5dfc6$c2a614b0$4202a8c0@ourcompanydomainname.com>
Nov 2 10:03:18 spam postfix/qmgr[3443]: 7513EE3228: from=<bla@yahoo.com>, size=1472, nrcpt=1 (queue active)
Nov 2 10:03:18 spam postfix/smtpd[3472]: disconnect from kgingerich.ourcompanydomainname.com[192.168.2.66]
Nov 2 10:03:18 spam postfix/pipe[3475]: 7513EE3228: to=<kyle@ourcompanydomainname.com>, relay=dspam, delay=0, status=sent (spam.ourcompanydomainname.com)
Nov 2 10:03:18 spam postfix/qmgr[3443]: 7513EE3228: removed

__________________________________

dspam debug output

3476: [11/02/2005 10:03:18] DSPAM Instance Startup
3476: [11/02/2005 10:03:18] input args: /usr/local/bin/dspam --deliver=innocent --user kyle@ourcompanydomainname.com -f bla@yahoo.com -- kyle@lincodiagnostics.com
3476: [11/02/2005 10:03:18] pass-thru args: /usr/bin/procmail -f bla@yahoo.com.com -- kyle@ourcompanydomainname.com
3476: [11/02/2005 10:03:18] processing user kyle@ourcompanydomainname.com
3476: [11/02/2005 10:03:18] uid = 2002, euid = 2002, gid = 2002, egid = 89
3476: [11/02/2005 10:03:18] loading preferences for user kyle@ourcompanydomainname.com
3476: [11/02/2005 10:03:18] Loading preferences for uid 1
3476: [11/02/2005 10:03:18] Loading preferences for uid 0
3476: [11/02/2005 10:03:18] default preferences empty. reverting to dspam.conf preferences.
3476: [11/02/2005 10:03:18] Loading preferences from dspam.conf
3476: [11/02/2005 10:03:18] using /usr/local/var/dspam/opt-in/local/1.dspam as path
3476: [11/02/2005 10:03:18] using /usr/local/var/dspam/opt-out/local/1.nodspam as path
3476: [11/02/2005 10:03:18] sedation level set to: 9
3476: [11/02/2005 10:03:18] [graham] [0.000100] X-MimeOLE*00 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] X-MimeOLE*00 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] X-MimeOLE*V6 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] X-MimeOLE*V6 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] Content (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] Content-Type*text+plain (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Type*text+plain (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] Content+Type (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content+Type (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] 1+META (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] 1+META (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] html+charset (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] html+charset (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] Content-Transfer-Encoding*8bit (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Transfer-Encoding*8bit (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Transfer-Encoding*8bit (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] X-MimeOLE*By (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] X-MimeOLE*By (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] message (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] message (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] Content-Type*charset+iso (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Type*charset+iso (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Type*charset+iso (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] MIME-Version*1 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] MIME-Version*1 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] Content-Type*NextPart+000 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Type*NextPart+000 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] FONT+face (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] FONT+face (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [graham] [0.000100] To*kyle (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] To*kyle (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] To*kyle (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] X-MimeOLE*Produced (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] size+2 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Type*000 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Type*8859+1 (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Content-Type*8859+1 (2frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Subject*test (2frq, 0s, 20i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Subject*test (2frq, 0s, 20i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] Reply-To*com (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] [burton] [0.000100] X-Mailer*2180 (1frq, 0s, 27i)
3476: [11/02/2005 10:03:18] Graham-Bayesian Probability: 0.000000 Samples: 15
3476: [11/02/2005 10:03:18] Burton-Bayesian Probability: 0.000000 Samples: 27
3476: [11/02/2005 10:03:18] no factors specified; using default
3476: [11/02/2005 10:03:18] Result Confidence: 1.00
3476: [11/02/2005 10:03:18] Control: [10 10] [10 11] Delta: [0 1]
3476: [11/02/2005 10:03:18] saving signature as 4368e34634769287233617
3476: [11/02/2005 10:03:18] libdspam returned probability of 0.000000
3476: [11/02/2005 10:03:18] message result: NOT SPAM
3476: [11/02/2005 10:03:18] delivering message
3476: [11/02/2005 10:03:18] Opening pipe to LDA: /usr/bin/procmail -f bla@yahoo.com -- kyle@ourcompanydomainname.com
3476: [11/02/2005 10:03:18] LDA returned success
3476: [11/02/2005 10:03:18] DSPAM Instance Shutdown. Exit Code: 0

_________________________________________

If there are other logs/configs that would be helpful please let me know.

Appreciate any help.

Kyle
Received on Wed Nov 2 14:36:32 2005

This archive was generated by hypermail 2.1.8 : Thu Nov 03 2005 - 00:00:01 EST