[Dovecot] dovecot & dspam
Osvaldo Alvarez Pozo
nebano at gmail.com
Mon Sep 28 19:26:07 EEST 2009
Hi
since several day ago I'am trying to deliver to dovecot from dspam but
I hve several errors
in /var/log/dovecot-deliver.log I have
" Error: Can't connect to auth server at /var/run/dovecot/auth-master:
Permission denied"
in /var/log/mail.log I have
Delivery agent returned exit code 75: /usr/lib/dovecot/deliver -d toto at domai.tld
Sep 28 18:28:52 mx1 postfix/lmtp[23238]: 80222DE2ED:
to=<toto at domain.tld>, relay=127.0.0.1[127.0.0.1]:2424, delay=15601,
delays=15601/0.04/0.04/0.1, dsn=4.3.0, status=deferred (host
127.0.0.1[127.0.0.1] said: 421 4.3.0 <toto at domain.tld>
Auto-Whitelisted (in reply to end of DATA command))
My conf dovecot dovecot.conf
-------------------------------------------------
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
protocols = imap pop3 imaps pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
syslog_facility = mail
mail_location = maildir:/var/vmail/%d/%u/Maildir
mail_privileged_group = mail
mail_debug = yes
maildir_copy_with_hardlinks = yes
first_valid_uid = 109
last_valid_uid = 150
first_valid_gid = 8
last_valid_gid = 8
ssl_cert_file = /etc/ssl/oc3n.net/mailserver/mail-cert.pem
ssl_key_file = /etc/ssl/oc3n.net/mailserver/mail-key.pem
protocol imap {
# Login executable location.
login_executable = /usr/lib/dovecot/imap-login
mail_executable = /usr/lib/dovecot/imap
imap_max_line_length = 65536
}
protocol pop3 {
login_executable = /usr/lib/dovecot/pop3-login
mail_executable = /usr/lib/dovecot/pop3
pop3_uidl_format = %08Xu%08Xv
mail_plugin_dir = /usr/lib/dovecot/modules/pop3
}
protocol lda {
postmaster_address = postmaster at mydomain.com
log_path = /var/log/dovecot-deliver.log
info_log_path = /var/log/dovecot-deliver.log
}
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
auth default {
mechanisms = plain login
passdb sql {
# Path for SQL configuration file
args = /etc/dovecot/dovecot-sql.conf
}
userdb sql {
# Path for SQL configuration file
args = /etc/dovecot/dovecot-sql.conf
}
user = nobody
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = vmail
group = mail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = mail
}
}
}
dict {
}
plugin {
trash = /etc/dovecot-trash.conf
}
file /etc/dovecot/dovecot-sql.conf
--------------------------------------------------------
driver = mysql
connect = host=localhost dbname=postfixadmin user=postfixadmin password="secret"
default_pass_scheme = MD5
user_query = SELECT '/var/vmail/%d/%n' AS home,
'maildir:/var/vmail/%d/%n' AS mail, 150 AS uid, 8 AS gid,
CONCAT('dirsize:storage=', quota) AS quota FR OM mailbox WHERE
username = '%u' AND active = '1'
password_query = SELECT username AS user, password, '/var/vmail/%d/%n'
AS userdb_home, 'maildir:/var/vmail/%d/%n' AS userdb_mail, 150 AS
userdb_uid, 8 AS userdb_gid FROM mailbox WHERE username = '%u' AND
active = '1'
My conf dspam /etc/dspam/dspam.conf
-----------------------------------------------------------------
Home /var/spool/dspam
StorageDriver /usr/lib/dspam/libmysql_drv.so
TrustedDeliveryAgent "/usr/lib/dovecot/deliver -d %u"
UntrustedDeliveryAgent "/usr/lib/dovecot/deliver -d %u"
QuarantineAgent "/usr/lib/dovecot/deliver -d %u -m SPAM"
OnFail error
Trust vmail
Trust root
Trust dspam
Trust mail
Trust mailnull
Trust smmsp
Trust daemon
Debug *
TrainingMode teft
TestConditionalTraining on
Tokenizer chained
Feature whitelist
Algorithm graham burton
PValue graham
Preference "spamAction=tag"
Preference "signatureLocation=message" # 'message' or 'headers'
Preference "showFactors=on"
Preference "spamSubject=[SPAM]"
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
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 full
ServerPort 2424
ServerPID /var/run/dspam/dspam.pid
ServerMode standard
ServerParameters "--deliver=innocent"
ServerIdent "localhost.localdomain"
ProcessorBias on
Include /etc/dspam/dspam.d/
Any Idea???
Thanks
More information about the dovecot
mailing list