tonix (Antonio Nati) wrote:
Can you check if you have the variable SENDER_NOCHECK (#define *CHKUSER_SENDER_NOCHECK_VARIABLE*) set in some way?

This line is commented out.

Perhaps I should point out that I am using the default chkuser_settings.c straight from the 2.0.7 install tar.gz.


Otherwise please post your qmail-smtpd starting script and your chkuser_settings.h (if message is too long post it privately).

I've stripped the comments from the file and am left with the attached file -- Cheers Alastair Battrick www.battrick.org

At 27/10/2004 27/10/2004 +0100, you wrote:

J. Kendzorra wrote:

Alastair Battrick:

I've applied the patches for 2.0.7 and made the qmail-smtpd binary.
When I try and run the binary with ./qmail-smtpd I am not getting an
error message when I 'MAIL FROM' a non existent domain or from an
invalid email address. The previous version gives a "571 sorry,
sender address has invalid format (#5.7.1 - chkuser)"


Check your chkuser_settings.h if
,-----
|#define CHKUSER_SENDER_MX
|#define CHKUSER_SENDER_FORMAT
`----
are commented out.


They are not commented out
#define CHKUSER_DEBUG 
#define CHKUSER_VPOPMAIL
#define CHKUSER_ENABLE_UIDGID
#define CHKUSER_DOMAIN_WANTED
#define CHKUSER_ENABLE_USERS
#define CHKUSER_ENABLE_ALIAS
#define CHKUSER_EZMLM_DASH '-'
#define CHKUSER_BOUNCE_STRING "bounce-no-mailbox"
#define CHKUSER_ENABLE_LOGGING
#define CHKUSER_LOG_VALID_RCPT
#define CHKUSER_RCPT_FORMAT
#define CHKUSER_RCPT_MX
#define CHKUSER_SENDER_FORMAT
#define CHKUSER_SENDER_MX
#define CHKUSER_MIN_DOMAIN_LEN 4
#define CHKUSER_LOG_VALID_SENDER
#define CHKUSER_RCPT_LIMIT_VARIABLE "CHKUSER_RCPTLIMIT"
#define CHKUSER_WRONGRCPT_LIMIT_VARIABLE "CHKUSER_WRONGRCPTLIMIT"
#define CHKUSER_MBXQUOTA_VARIABLE "CHKUSER_MBXQUOTA"
#define CHKUSER_ERROR_DELAY 1000
#define CHKUSER_ERROR_DELAY_INCREASE 100
#define CHKUSER_RCPT_DELAY_ANYERROR
#define CHKUSER_SENDER_DELAY_ANYERROR
#define CHKUSER_NORCPT_STRING "511 sorry, no mailbox here by that name (#5.1.1 - 
chkuser)\r\n"
#define CHKUSER_RESOURCE_STRING "430 system temporary unavailable, try again later 
(#4.3.0 - chkuser)\r\n"
#define CHKUSER_MBXFULL_STRING "522 sorry, recipient mailbox is full (#5.2.2 - 
chkuser)\r\n"
#define CHKUSER_MAXRCPT_STRING "571 sorry, reached maximum number of recipients for 
one session (#5.7.1 - chkuser)\r\n"
#define CHKUSER_MAXWRONGRCPT_STRING "571 sorry, you are violating our security 
policies (#5.1.1 - chkuser)\r\n"
#define CHKUSER_DOMAINMISSING_STRING "511 sorry, you must specify a domain (#5.1.1 - 
chkuser)\r\n"
#define CHKUSER_RCPTFORMAT_STRING "511 sorry, recipient address has invalid format 
(#5.1.1 - chkuser)\r\n"
#define CHKUSER_RCPTMX_STRING "511 sorry, can't find a valid MX for rcpt domain 
(#5.1.1 - chkuser)\r\n"
#define CHKUSER_SENDERFORMAT_STRING "571 sorry, sender address has invalid format 
(#5.7.1 - chkuser)\r\n"
#define CHKUSER_SENDERMX_STRING "511 sorry, can't find a valid MX for sender domain 
(#5.1.1 - chkuser)\r\n"
#define CHKUSER_INTRUSIONTHRESHOLD_STRING "571 sorry, you are violating our security 
policies (#5.7.1 - chkuser)\r\n"
#define CHKUSER_NORELAY_STRING "553 sorry, that domain isn't in my list of allowed 
rcpthosts (#5.5.3 - chkuser)\r\n"
#define CHKUSER_ACCEPT_NULL_SENDER
#define CHKUSER_ENABLE_EZMLM_LISTS
#define CHKUSER_IDENTIFY_REMOTE_VARIABLE "CHKUSER_IDENTIFY"
#define CHKUSER_USERS_DASH '-'
#define CHKUSER_RCPTMX_TMP_STRING "451 DNS temporary failure (#4.5.1 - chkuser)\r\n"
#define CHKUSER_SENDERMX_TMP_STRING "451 DNS temporary failure (#4.5.1 - chkuser)\r\n"
#define CHKUSER_MAILMAN_STRING "mailman"
#define CHKUSER_MAILMAN_DASH '-'
#define CHKUSER_DB_CLEANUP

Reply via email to