Re: [spamdyke-users] Problems Using spamdyke-qrv With Aliases In Alias Domain
This is correct -- spamdyke-qrv has a bug that doesn't correctly validate forward addresses that are not hosted locally. I hope to have a new version of spamdyke available very soon that will fix this problem (and several others). Just need to get all the test scripts to run successfully... -- Sam Clippinger On Jan 10, 2015, at 9:40 AM, Martin H. Sluka via spamdyke-users spamdyke-users@spamdyke.org wrote: Hi Konstantin, I have difficulties using spamdyke-qrv in combination with aliases on aliased domains with vpopmail. For example when I'm creating a new domain original-domain.com with alias domain alias-domain.com and then after creating forward al...@original-domain.com I expect to be receiving email on al...@alias-domain.com as well. But spamdyke-qrv filters it. :( maybe it's the bug explained here: http://comments.gmane.org/gmane.mail.spam.spamdyke.user/4055 At least, this one caused trouble at our site in connection with forwardings to remote addresses in .qmail files. Any ideas how to fix it? The following patch works for me as a workaround: --- spamdyke-5.0.0/spamdyke-qrv/validate-qrv.c 2014-01-27 23:28:00.0 +0100 +++ spamdyke-5.0.0/spamdyke-qrv/validate-qrv.c.patched 2014-12-30 01:30:37.405723118 +0100 @@ -1247,14 +1247,8 @@ break; case 47: - if (((return_value = validate(current_settings, qmail_lines[current_line] + ((qmail_lines[current_line][0] == QMAIL_FORWARD_START_CHAR) ? 1 : 0), (qmail_lines[current_line][i] == '@') ? (i - 1) : i, (qmail_lines[current_line][i] == '@') ? (qmail_lines[current_line] + i + 1) : , forwarded + 1)) == DECISION_VALID) || - (return_value == DECISION_ERROR)) -continue_processing = 0; - else -{ -current_line++; -current_step = 37; -} + return_value = DECISION_UNKNOWN; + continue_processing = 0; break; default: That is, instead of trying to recursively resolve aliases, I just consider their status as unknown, which lets spamdyke accept messages by default. If that does not work for you, please send the output of spamdyke-qrv -vv alias-domain.com alias to the list (assuming that you have configured and compiled spamdyke-qrv --with-excessive-output). Regards, Martin -- ___ _ Martin H. Sluka \ mailto:mar...@sluka.de / ASCII ribbon ( ) Breite Straße 3 \ tel +49-700-19751024 / campaign - against X D-90552 Röthenbach \-- http://unf.ug ---/ HTML email vcards / \ ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users
Re: [spamdyke-users] Problems Using spamdyke-qrv With Aliases In Alias Domain
Hi Martin, Thank you very much for you letter. On 2015-01-10 07:40, Martin H. Sluka wrote: Hi Konstantin, I have difficulties using spamdyke-qrv in combination with aliases on aliased domains with vpopmail. For example when I'm creating a new domain original-domain.com with alias domain alias-domain.com and then after creating forward al...@original-domain.com I expect to be receiving email on al...@alias-domain.com as well. But spamdyke-qrv filters it. :( maybe it's the bug explained here: http://comments.gmane.org/gmane.mail.spam.spamdyke.user/4055 At least, this one caused trouble at our site in connection with forwardings to remote addresses in .qmail files. It doesn't look like a problem with .qmail files to me, because I'm successfully using it with mailman installation which relies on these files. The following patch works for me as a workaround: --- spamdyke-5.0.0/spamdyke-qrv/validate-qrv.c 2014-01-27 23:28:00.0 +0100 +++ spamdyke-5.0.0/spamdyke-qrv/validate-qrv.c.patched 2014-12-30 That is, instead of trying to recursively resolve aliases, I just consider their status as unknown, which lets spamdyke accept messages by default. If that does not work for you, please send the output of spamdyke-qrv -vv alias-domain.com alias to the list (assuming that you have configured and compiled spamdyke-qrv --with-excessive-output). Thank you very much for you patch. I'll try to look through the spamdyke-qrv logic deeper now. Full excessive output is attached. But I think here is the problem with aliases on aliases domains starts: ... skipped... QRV-EXCESSIVE(validate()@validate-qrv.c:1060): found vpopmail command on line 0 QRV-EXCESSIVE(exec_command_argv()@exec-qrv.c:93): executing command as UID 89, GID 89: /var/vpopmail/bin/valias QRV-EXCESSIVE(exec_command_argv()@exec-qrv.c:192): command exited with code 255: /var/vpopmail/bin/valias QRV-EXCESSIVE(exec_command_argv()@exec-qrv.c:93): executing command as UID 89, GID 89: /var/vpopmail/bin/vuserinfo QRV-EXCESSIVE(exec_command_argv()@exec-qrv.c:134): child process output 39 bytes: no such user al...@original-domain.com QRV-EXCESSIVE(exec_command_argv()@exec-qrv.c:192): command exited with code 255: /var/vpopmail/bin/vuserinfo QRV-EXCESSIVE(validate@validate-qrv.c:1131): INVALID RECIPIENT recipient: al...@alias-domain.com resolved username: alias-domain.com-alias QRV-EXCESSIVE(validate()@validate-qrv.c:160): current_step = 37, tmp_username = alias-domain.com-alias, tmp_domain = alias-domain.com, tmp_name = , tmp_filename = .qmail-default, tmp_path = /var/vpopmail/domains/1/original-domain.com/.qmail-default, qmail_dash = -, qmail_ext = QRV-EXCESSIVE(read_file()@fs-qrv.c:370): opened file for reading: /var/vpopmail/domains/1/original-domain.com/.qmail-default valias can't find the required alias on aliased-domain probably because it exist only in mysql database of the original domain. When I'm using valias to show all aliases on alias-domain.com it gives empty result. mail ~ # valias -s original-domain.com al...@original-domain.com - postmas...@original-domain.com mail ~ # valias -s alias-domain.com mail ~ # But delivery without spamdyke's reject-recipient=invalid to postmas...@original-domain.com address using al...@alias-domain.com recipient in qmail works just fine. So I consider it as a spamdyke-qrv's easy reproducible bug. -- BR, KonstantinQRV-EXCESSIVE(process_command_line()@configuration-qrv.c:209): configured option VALIAS_PATH = /var/vpopmail/bin/valias QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:210): configured option VUSERINFO_PATH = /var/vpopmail/bin/vuserinfo QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:214): processed command line: qmail_percenthack_file = (NULL) QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:215): processed command line: qmail_locals_file = (NULL) QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:216): processed command line: qmail_virtualdomains_file = (NULL) QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:217): processed command line: qmail_assign_cdb = (NULL) QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:218): processed command line: qmail_defaultdelivery_file = (NULL) QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:219): processed command line: qmail_envnoathost_file = (NULL) QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:220): processed command line: qmail_me_file = (NULL) QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:221): processed command line: recipient_domain = alias-domain.com QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:222): processed command line: recipient_username = alias QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:256): final option value: qmail_percenthack_file = /var/qmail/control/percenthack QRV-EXCESSIVE(process_command_line()@configuration-qrv.c:257): final option value: qmail_locals_file =
Re: [spamdyke-users] Problems Using spamdyke-qrv With Aliases In Alias Domain
Hi Konstantin, I have difficulties using spamdyke-qrv in combination with aliases on aliased domains with vpopmail. For example when I'm creating a new domain original-domain.com with alias domain alias-domain.com and then after creating forward al...@original-domain.com I expect to be receiving email on al...@alias-domain.com as well. But spamdyke-qrv filters it. :( maybe it's the bug explained here: http://comments.gmane.org/gmane.mail.spam.spamdyke.user/4055 At least, this one caused trouble at our site in connection with forwardings to remote addresses in .qmail files. Any ideas how to fix it? The following patch works for me as a workaround: --- spamdyke-5.0.0/spamdyke-qrv/validate-qrv.c 2014-01-27 23:28:00.0 +0100 +++ spamdyke-5.0.0/spamdyke-qrv/validate-qrv.c.patched 2014-12-30 01:30:37.405723118 +0100 @@ -1247,14 +1247,8 @@ break; case 47: - if (((return_value = validate(current_settings, qmail_lines[current_line] + ((qmail_lines[current_line][0] == QMAIL_FORWARD_START_CHAR) ? 1 : 0), (qmail_lines[current_line][i] == '@') ? (i - 1) : i, (qmail_lines[current_line][i] == '@') ? (qmail_lines[current_line] + i + 1) : , forwarded + 1)) == DECISION_VALID) || - (return_value == DECISION_ERROR)) -continue_processing = 0; - else -{ -current_line++; -current_step = 37; -} + return_value = DECISION_UNKNOWN; + continue_processing = 0; break; default: That is, instead of trying to recursively resolve aliases, I just consider their status as unknown, which lets spamdyke accept messages by default. If that does not work for you, please send the output of spamdyke-qrv -vv alias-domain.com alias to the list (assuming that you have configured and compiled spamdyke-qrv --with-excessive-output). Regards, Martin -- ___ _ Martin H. Sluka \ mailto:mar...@sluka.de / ASCII ribbon ( ) Breite Straße 3 \ tel +49-700-19751024 / campaign - against X D-90552 Röthenbach \-- http://unf.ug ---/ HTML email vcards / \ signature.asc Description: Digital signature ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users
[spamdyke-users] Problems Using spamdyke-qrv With Aliases In Alias Domain
Hi guys, I have difficulties using spamdyke-qrv in combination with aliases on aliased domains with vpopmail. For example when I'm creating a new domain original-domain.com with alias domain alias-domain.com and then after creating forward al...@original-domain.com I expect to be receiving email on al...@alias-domain.com as well. But spamdyke-qrv filters it. :( In example below you can see how spamdyke rejects email to al...@alias-domain.com, but not to al...@original-domain.com mail # vadddomain original-domain.com test mail # vaddaliasdomain original-domain.com alias-domain.com mail # valias -i postmas...@original-domain.com al...@original-domain.com mail # telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.some-domain.com ESMTP HELO mail 250 mail.some-domain.com mail from: tes...@another-domain.com 250 ok rcpt to: al...@alias-domain.com 554 Refused. The recipient address does not exist. rcpt to: al...@original-domain.com 250 ok quit 221 mail.some-domain.com Connection closed by foreign host. My current spamdyke version is 5.0.0+TLS+CONFIGTEST+DEBUG mail # cat /etc/spamdyke/spamdyke.conf log-level=verbose qmail-rcpthosts-file=/var/qmail/control/rcpthosts tls-certificate-file=/var/qmail/control/servercert.pem graylist-level=always-create-dir graylist-dir=/var/tmp/spamdyke/graylist graylist-exception-rdns-dir=/etc/spamdyke/never-graylist graylist-exception-ip-file=/etc/spamdyke/graylist-exception-ip-file graylist-exception-rdns-file=/etc/spamdyke/graylist-exception-rdns-file graylist-max-secs=3369600 graylist-min-secs=50 reject-empty-rdns reject-unresolvable-rdns reject-sender=no-mx rejection-text-recipient-same-as-sender rhs-blacklist-entry=sbl-xbl.spamhaus.org greeting-delay-secs=0 max-recipients=100 connection-timeout-secs=1800 idle-timeout-secs=120 config-dir=/etc/spamdyke/config.d rdns-blacklist-file=/etc/spamdyke/rdns-keyword-blacklist-file reject-recipient=invalid recipient-validation-command=/usr/local/bin/spamdyke-qrv spamdyke-qrv was configured using vpopmail: ./configure --with-vpopmail-support VALIAS_PATH=/path/to/valias VUSERINFO_PATH=/path/to/vuserinfo Any ideas how to fix it? -- BR, Konstantin ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users