On 06/05/2013 01:36 PM, Garith Dugmore wrote:
> Hi All,
> 
> When releasing a quarantined email via the webfrontend Dspam releases
> it to, what I assume is, the 'username' in the 'dspam_virtual_uids'
> rather than the original "rcpt to".
> 

Why don't you make dspam use the e-mail addfress as the username? When
checking your config files, it seems to me that you should already be
doing that. Where does the e-mail address => username translation
currently happen?

> My remote SMTP host(zimbra) then rejects the email as it isn't in the
> form "per...@example.com" but rather just "person".
> 
> Is it possible for dspam to release the mail from quarantine using
> the entire email address and not the 'username'?
> 
> Also worth noting is all other non quarantined email going through
> dspam is delivered properly.
> 
> I'm running Debian 7(wheezy) with dspam version 3.10.1+dfsg-11. Dspam
> is using Mysql as a backend and using ldap(zimbra) for extlookups.
> Postfix is at version 2.9.6-2.
> 
> My current configs:
> 
> ================ /etc/dspam/dspam.conf ============================
> 
> Home /var/spool/dspam StorageDriver
> /usr/lib/i386-linux-gnu/dspam/libmysql_drv.so TrustedDeliveryAgent
> "/usr/bin/procmail" UntrustedDeliveryAgent "/usr/bin/procmail -d %u" 
> DeliveryHost          xxx.xxx.xxx.xxx # remote zimbra host DeliveryPort       
>         25 
> DeliveryIdent         XXXXX DeliveryProto             SMTP OnFail error Trust 
> root 
> Trust dspam Trust www-data Trust mail Trust daemon Trust amavis Trust
> nobody Debug * TrainingMode teft TestConditionalTraining on Feature
> whitelist Algorithm graham burton Tokenizer chain PValue bcr WebStats
> on Preference "trainingMode=TEFT"             # { TOE | TUM | TEFT | NOTRAIN }
> -> default:teft Preference "spamAction=tag"           # { quarantine | tag |
> deliver } -> default:quarantine Preference "spamSubject="             # { 
> string
> } -> default:[SPAM] Preference "statisticalSedation=5"        # { 0 - 10 }
> -> default:0 Preference "enableBNR=on"                # { on | off } ->
> default:off Preference "enableWhitelist=on"           # { on | off } ->
> default:on Preference "signatureLocation=message"     # { message |
> headers } -> default:message Preference "tagSpam=off"         # { on | off
> } Preference "tagNonspam=off"         # { on | off } Preference
> "showFactors=on"              # { on | off } -> default:off Preference
> "optIn=off"                   # { on | off } Preference "optOut=off"          
>         # { on | off
> } Preference "whitelistThreshold=10"  # { Integer } -> default:10 
> Preference "makeCorpus=off"           # { on | off } -> default:off Preference
> "storeFragments=off"          # { on | off } -> default:off Preference
> "localStore="         # { on | off } -> default:username Preference
> "processorBias=on"            # { on | off } -> default:on Preference
> "fallbackDomain=off"          # { on | off } -> default:off Preference
> "trainPristine=off"           # { on | off } -> default:off Preference
> "optOutClamAV=off"            # { on | off } -> default:off Preference
> "ignoreRBLLookups=off"        # { on | off } -> default:off Preference
> "RBLInoculate=off"            # { on | off } -> default:off Preference
> "notifications=off"           # { on | off } -> default:off AllowOverride
> enableBNR AllowOverride enableWhitelist AllowOverride fallbackDomain 
> AllowOverride ignoreGroups AllowOverride ignoreRBLLookups 
> AllowOverride localStore AllowOverride makeCorpus AllowOverride
> optIn AllowOverride optOut AllowOverride optOutClamAV AllowOverride
> processorBias AllowOverride RBLInoculate AllowOverride showFactors 
> AllowOverride signatureLocation AllowOverride spamAction 
> AllowOverride spamSubject AllowOverride statisticalSedation 
> AllowOverride storeFragments AllowOverride tagNonspam AllowOverride
> tagSpam AllowOverride trainPristine AllowOverride trainingMode 
> AllowOverride whitelistThreshold AllowOverride
> dailyQuarantineSummary AllowOverride notifications Notifications      off 
> PurgeSignatures 28    # 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/8 SystemLog     on UserLog              on Opt out 
> TrackSources
> spam nonspam virus ParseToHeaders on ChangeModeOnParse on 
> ChangeUserOnParse full ServerPID              /var/run/dspam/dspam.pid 
> ServerQueueSize         32 ServerMode              standard 
> ServerParameters        "--deliver=innocent" ServerIdent
> "XXXXXXXXXXX" ServerDomainSocketPath
> /var/spool/postfix/tmp/dspam.sock ProcessorURLContext on 
> ProcessorBias on StripRcptDomain off Include /etc/dspam/dspam.d/ 
> =========================================================== 
> ================= /etc/dspam/dspam.d/extlookup.conf =======
> 
> ExtLookup             on ExtLookupMode                strict ExtLookupDriver  
>         ldap 
> ExtLookupServer               XXXXXXX # zimbra server ExtLookupPort           
> 389 
> ExtLookupDB           "ou=people,dc=XXXXX,dc=XXX,dc=XXX" ExtLookupQuery
> "(mail=%u)" ExtLookupLDAPAttribute    "uid" ExtLookupLogin
> "uid=zimbra,cn=admins,cn=zimbra" ExtLookupPassword    XXXXX 
> =========================================================== 
> ================= /etc/dspam/dspam.d/mysql.conf =========== 
> MySQLServer           XXXXXXXXXXXXXX # remote mysql server MySQLPort          
> 3306 
> MySQLUser             dspam MySQLPass         XXXXXXXXXX MySQLDb              
>         dspam MySQLCompress
> true MySQLReconnect           true 
> =========================================================== 
> ================= /etc/postfix/main.cf ==================== biff =
> no append_dot_mydomain = no mailbox_command = /usr/bin/procmail 
> alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases 
> mydestination = $myhostname, localhost.$mydomain, localhost 
> myhostname = XXXXXXXX mynetworks = XXXXXXXXXXXXXXXX inet_interfaces =
> all recipient_delimiter = + virtual_destination_recipient_limit = 1 
> virtual_transport       = lmtp:unix:/tmp/dspam.sock 
> virtual_mailbox_domains = XXXXXXXXXXXXXXXXXXXXXXX # Domains 
> virtual_mailbox_maps    = ldap:zimbra_ldap virtual_alias_maps =
> hash:/etc/postfix/virtual_aliases zimbra_ldap_server_host     =
> XXX.XXX.XXX.XXX # zimbra host zimbra_ldap_search_base         =
> ou=people,dc=XXXX,dc=XX,dc=XX zimbra_ldap_query_filter        = (mail=%s) 
> zimbra_ldap_result_attribute  = mail zimbra_ldap_bind                 = yes 
> zimbra_ldap_bind_dn           = uid=zimbra,cn=admins,cn=zimbra 
> zimbra_ldap_bind_pw           = XXXXXXX 
> =========================================================== 
> ================= /etc/postfix/virtual_aliases ============ 
> spam-train...@saao.ac.za      spam-training # (these point to local
> scripts in /etc/aliases that do the training for me) 
> notspam-train...@saao.ac.za   notspam-training # (these point to local
> scripts in /etc/aliases that do the training for me) 
> ===========================================================
> 


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to