The "wtf" reply is used for unknown smtp commands, and yes, the reply could
be more meaningful. It seems that spmfilter thinks, the data command is already
done...I'll check this.
I've seen, that you've configured a SQLite database as backend,
but without a sql user query. In that case the log messages
May 24 00:46:22 x300 spmfilter[4252]: [0x8439e28] Debug:[smtpd] load(+380): client smtp dialog: 'MAIL FROM:<p...@patrick.example.com>'
May 24 00:46:22 x300 spmfilter[4252]: [0x8439e28] Debug:[smtpd] load(+455): SMTP: 'mail from' received
May 24 00:46:22 x300 spmfilter[4252]: [0x8439e28] Debug:[smtpd] load(+518): session->envelope_from: p...@patrick.example.com
May 24 00:46:22 x300 spmfilter[4252]: [0x8439e28] Debug:[smtpd] load(+527): [p...@patrick.example.com] is local [1]
May 24 00:46:22 x300 spmfilter[4252]: [0x8439e28] Debug:[smtpd] load(+380): client smtp dialog: 'RCPT TO:<p...@patrick.example.com>'
May 24 00:46:22 x300 spmfilter[4252]: [0x8439e28] Debug:[smtpd] load(+545): SMTP: 'rcpt to' received
May 24 00:46:22 x300 spmfilter[4252]: [0x8439e28] Debug:[smtpd] load(+562): session->envelope_to[0]: p...@patrick.example.com
May 24 00:46:22 x300 spmfilter[4252]: [0x8439e28] Debug:[smtpd] load(+567): [p...@patrick.example.com] is local [1]
are a little bit confusing. They are indicating that the email address p...@patrick.example.com
is found in the local sqlite datebase, but without a sql query it's not possible. Maybe
it's a bug, I've to check it.
Bye,
Axel
I fixed that and spmfilter is able to tell my recipient is local now.
Then I did a more or less RFC compliant telnet session where I sent required
headers (except for the date since I was too lazy to run date -R on a second
terminal).
Results:
- spmfilter stopped yelling 'wtf' at me. That's good. ;)
I will investigate a little more, since I changed two things at the same
time and I am not sure if adding a database or doing an RFC compliant
session did the trick.
- But I believe spmfilter rejected the message when it shouldn't. Take a look
at the log below. I sent the message as envelope sender "<>" and if I read
the log correctly spmfilter rejected that sender, which it must not.
May 24 22:22:16 x300 postfix/smtpd[3277]: connect from localhost.localdomain[127.0.0.1]
May 24 22:22:35 x300 postfix/smtpd[3277]: D4F914036F: client=localhost.localdomain[127.0.0.1]
May 24 22:23:21 x300 postfix/cleanup[3281]: D4F914036F: message-id=<201005242022...@patrick.example.com>
May 24 22:23:21 x300 postfix/qmgr[1789]: D4F914036F: from=<>, size=363, nrcpt=1 (queue active)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+132): settings->engine: smtpd
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+134): settings->modules: clamav
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+136): settings->module_fail: 3
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+137): settings->nexthop: 127.0.0.1:2525
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+140): settings->backend: sql
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+143): settings->backend_connection: failover
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+155): settings->add_header: 1
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+161): settings->max_size: 0
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+166): settings->tls: 0
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+169): settings->tls_pass: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+197): settings->sql_driver: sqlite
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+198): settings->sql_name: /etc/spmfilter/spmfilter.db
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+204): settings->sql_port: 0
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+205): settings->sql_user: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+206): settings->sql_pass: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+207): settings->sql_user_query: SELECT * FROM users WHERE email='%s'
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+208): settings->sql_encoding: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+209): settings->sql_max_connections: 3
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+263): settings->ldap_uri: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+269): settings->ldap_port: 389
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+270): settings->ldap_binddn: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+271): settings->ldap_bindpw: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+272): settings->ldap_base: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+273): settings->ldap_referrals: 0
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+274): settings->ldap_scope: subtree
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+275): settings->ldap_user_query: (null)
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+290): settings->nexthop_fail_code: 451
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[settings] smf_settings_parse_config(+291): settings->nexthop_fail_msg: Requested action aborted: local error in processing
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[session] smf_session_get(+42): initialize session data
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+380): client smtp dialog: 'EHLO patrick.example.com'
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+421): SMTP: 'ehlo' received
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+427): session->helo: patrick.example.com
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+380): client smtp dialog: 'XFORWARD NAME=localhost.localdomain ADDR=127.0.0.1'
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+435): SMTP: 'xforward name' received
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+437): session->xforward_addr: 127.0.0.1
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+380): client smtp dialog: 'XFORWARD PROTO=SMTP HELO=localhost SOURCE=LOCAL'
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+380): client smtp dialog: 'MAIL FROM:<>'
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+455): SMTP: 'mail from' received
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+518): session->envelope_from:
May 24 22:23:21 x300 postfix/smtp[3282]: D4F914036F: to=<p...@patrick.example.com>, relay=127.0.0.1[127.0.0.1]:10025, delay=52, delays=52/0.01/0.02/0, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 501 Syntax: MAIL FROM:<address> (in reply to MAIL FROM command))
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+380): client smtp dialog: 'RSET'
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+592): SMTP: 'rset' received
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[session] smf_session_free(+67): destroy session data
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[session] smf_session_get(+42): initialize session data
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+380): client smtp dialog: 'QUIT'
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[smtpd] load(+383): SMTP: 'quit' received
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[session] smf_session_free(+67): destroy session data
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[spmfilter] main(+131): processing time: 0.00000 sec.
May 24 22:23:21 x300 spmfilter[3284]: [0x835ae28] Debug:[spmfilter] main(+131): processing time: 0.00000 sec.
May 24 22:23:21 x300 postfix/qmgr[1789]: D4F914036F: removed
May 24 22:23:23 x300 postfix/smtpd[3277]: disconnect from localhost.localdomain[127.0.0.1]
>
> Bye,
> Axel
As promised, I've fixed now the problem with nullsender and some other stuff.
The patch should apply cleanly to the 0.4.1 tarball.
Bye,
Axel