Re: [Dspam-user] invalid data waiting for code 250: 502 5.5.2 Error: command not recognized^M
Brought to you by:
paulcockings,
sbajic
From: Doug L. <lai...@ho...> - 2009-05-26 17:16:48
|
The ^M is usually a <CR> code, caused by saving the message in a Windows editor, then viewing it in a Unix one. Unix uses just LF. Windows uses LF + CR, and when you view it in a Unix editor, the LF is accepted, and the CR shows up as ^M (Ctrl-M). That won't be your real problem. Having a config file saved that way may be, though. Doug. On Tue, 26 May 2009 11:36:19 pm lenny wrote: > Dear dspam users, > > I am currently testing dspam for the first time (always used spamassassin > in the past)on my netbsd 5.0 stable machine. > I am experiencing a very weird problem that perhaps might be due to a > software bug but I am not sure as I don't have enough experience > with this piece of software. I am using dspam as a content filter for > postfix and tried to configure it through a socket file > (I also did a test through a tcp port but i get exactly the same error) > > dspam version 3.8.0nb2 > postfix version 2.5.4 > > dspam has been build with options (mk.conf) > PKG_OPTIONS.dspam = clamav syslog graphs dspam-virtualusers > DSPAM_STORAGE_DRIVER = mysql > > Error: > May 26 14:45:31 crow postfix/qmgr[21095]: 221EEF984: > from=<te...@my...>, size=370, nrcpt=1 (queue active) > May 26 14:45:31 crow postfix/smtpd[18345]: connect from > localhost[127.0.0.1] > May 26 14:45:31 crow postfix/smtpd[18234]: connect from > localhost[127.0.0.1] > May 26 14:45:31 crow dspam[26402]: Invalid data waiting for code 250: 502 > 5.5.2 Error: command not recognized^M > May 26 14:45:31 crow dspam[26402]: Invalid data waiting for code 250: 502 > 5.5.2 Error: command not recognized^M > May 26 14:48:31 crow dspam[26402]: Invalid data waiting for code 250: 421 > 4.4.2 mail.mydomain.com Error: timeout exceeded^M > May 26 14:48:31 crow postfix/smtpd[18345]: timeout after UNKNOWN from > localhost[127.0.0.1] > May 26 14:48:31 crow postfix/smtpd[18345]: disconnect from > localhost[127.0.0.1] > May 26 14:48:31 crow dspam[26402]: Received error in response to LHLO: 421 > 4.4.2 mail.mydomain.com Error: timeout exceeded^M > May 26 14:48:31 crow dspam[26402]: Delivery failed completely > May 26 14:48:31 crow postfix/lmtp[3453]: 8B8B0F940: > to=<te...@my...>, relay=mail.mydomain2.com[/tmp/dspam.sock], > delay=12991, delays=12811/0.01/0.01/180, dsn=4.3.0, status=deferred (host > crow.alternic.be[/tmp/dspam.sock] said: 421 4.3.0 <te...@my...> > LHLO: 421 4.4.2 crow.alternic.be Error: timeout exceeded (in reply to end > of DATA command)) > > > dspam.conf: > Home /var/dspam > DeliveryHost 127.0.0.1 > DeliveryPort 10026 > DeliveryIdent DSPAM > DeliveryProto LMTP > OnFail error > Trust root > Trust mail > Trust mailnull > Trust smmsp > Trust daemon > TrainingMode teft > TestConditionalTraining on > Feature whitelist > Algorithm graham burton > Tokenizer chain > PValue bcr > WebStats on > Preference "spamAction=quarantine" > Preference "signatureLocation=message" # '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 > MySQLServer /tmp/mysql.sock > MySQLUser dspam > MySQLPass dspam > MySQLDb dspam > MySQLCompress true > HashRecMax 98317 > HashAutoExtend on > HashMaxExtents 0 > HashExtentSize 49157 > HashPctIncrease 10 > HashMaxSeek 10 > 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 > ClamAVPort 3310 > ClamAVHost 127.0.0.1 > ClamAVResponse reject > ServerPID /var/run/dspam/dspam.pid > ServerMode auto > ServerParameters "--deliver=innocent -d %u" > ServerIdent "mail.mydomain.com" > ServerDomainSocketPath "/tmp/dspam.sock" > ProcessorURLContext on > ProcessorBias on > > > postfix: master.cf > smtp inet n - n - - smtpd > -o content_filter=lmtp:unix:/tmp/dspam.sock > pickup fifo n - n 60 1 pickup > cleanup unix n - n - 0 cleanup > qmgr unix n - n 300 1 qmgr > 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 > proxywrite unix - - n - 1 proxymap > smtp unix - - n - - smtp > relay unix - - n - - smtp > -o smtp_fallback_relay= > showq unix n - n - - showq > error unix - - n - - error > retry 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 > > localhost:10026 inet n - n - - smtpd > -o content_filter= > -o > receive_override_options=no_unknown_recipient_checks,no_header_body_checks > -o smtpd_helo_restrictions= > -o smtpd_client_restrictions= > -o smtpd_sender_restrictions= > -o smtpd_recipient_restrictions=permit_mynetworks,reject > -o mynetworks=127.0.0.0/8 > -o smtpd_authorized_xforward_hosts=127.0.0.0/8 > > postfix main.cf: > smtpd_banner = $myhostname ESMTP > biff = no > append_dot_mydomain = no > delay_warning_time = 4h > myhostname = mail.mydomain.be.be > alias_maps = hash:/etc/postfix/aliases > transport_maps = hash:/etc/postfix/transport > myorigin = mail.mydomain.be > mydestination = mail.mydomain.be, localhost > relay_domains = $mydestination,$transport_maps > mailbox_size_limit = 0 > recipient_delimiter = + > inet_interfaces = $myhostname, localhost > smtp_sasl_auth_enable = no > mynetworks = 127.0.0.1,$my_ip > smtpd_helo_restrictions =permit_mynetworks, > reject_unauth_destination, > reject_non_fqdn_sender, > reject_non_fqdn_recipient, > reject_unknown_recipient_domain, > reject_non_fqdn_hostname, > reject_invalid_hostname, > reject_unauth_pipelining > smtpd_recipient_restrictions =permit_mynetworks, > reject_invalid_hostname, > reject_non_fqdn_hostname, > reject_non_fqdn_sender, > reject_non_fqdn_recipient, > reject_unknown_sender_domain, > reject_unknown_recipient_domain, > reject_unauth_pipelining, > reject_unauth_destination, > smtpd_sender_restrictions =permit_mynetworks, > reject_non_fqdn_sender, > reject_non_fqdn_recipient, > reject_unknown_recipient_domain, > reject_unauth_pipelining > smtpd_client_restrictions =reject_rbl_client sbl.spamhaus.org, > reject_rbl_client list.dsbl.org, > reject_rbl_client cbl.abuseat.org, > reject_rbl_client dul.dnsbl.sorbs.net, > reject_rbl_client zombie.dnsbl.sorbs.net, > reject_rbl_client bl.spamcop.net > smtpd_data_restrictions = reject_unauth_pipelining > smtpd_delay_reject = yes > smtpd_helo_required = yes > strict_rfc821_envelopes = yes > bounce_size_limit = 65536 > header_size_limit = 32768 > smtpd_recipient_limit = 128 > smtpd_timeout = 180 > smtpd_etrn_restriction = reject > disable_vrfy_command = yes > > What worries me a bit is the "^M" in the error. I have the impression that > the smtp commands are not correctly piped to the network socket. > Has anyone a clue what might be going on? Perhaps i made an error in the > config? Is anyone else experiencing the same error? > Many thanks in advance and my apologies for my poor english > > Kind regards, > > lenny (lenny dot qwaqwa dot be) > > > > --------------------------------------------------------------------------- >--- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is > a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Dspam-user mailing list > Dsp...@li... > https://lists.sourceforge.net/lists/listinfo/dspam-user > > !DSPAM:4a1c03f377398362916074! |