[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [magicmail-users] PATCH



Hi Pete,

It turns out this was a bug that has already been fixed and due for the next 
release. Here is a patch for anyone wishing to use it right now:


--- magic-smtpd.c.orig  2004-09-07 13:22:47.000000000 -0700
+++ magic-smtpd.c       2004-09-07 13:24:27.000000000 -0700
@@ -1301,6 +1301,8 @@
             if (config_qmail.tcprelayclient != NULL) {
                 syslog(LOG_NOTICE, "relayclient set.  Disabling valid helo 
domain spam rule.");
                 spam_rules.valid_helo_domain = 0;
+                syslog(LOG_NOTICE, "relayclient set.  Disabling check dynamic 
reverse dns spam rule.");
+                spam_rules.check_dynamic_reverse_dns = 0;
             }
 
             spam_rules_loaded_flag = 1;


Bart

On September 5, 2004 03:09 am, Pete AsIf wrote:
> I have a new problem. I have a couple of my friends domains on my
> server.. When I enable check_dynamic_reverse_dns I am unable to send
> email to a user account in the other domain, or even to users in my own
> domain. The following is a log from an attempt I made early this
> morning. Obviously I'm on a dynamic IP, and the rule picks that up.
> Shouldn't magic pick up the fact that I am authenticated and ignore my
> dynamic IP for the purposes?
>
> 192.168.1.16 is my internal IP address on my home LAN.
>
> Cheers, Pete
>
> Sep  5 00:46:20 host msd[19000]: Linux Magic SMTPD started: connection from
> 213.249.237.197 Sep  5 00:46:20 host msd[19000]: EHLO command received,
> args: [192.168.1.16] Sep  5 00:46:20 host msd[19000]: AUTH command
> received, args: LOGIN XXXXXXXX Sep  5 00:46:20 host msd[19000]: trying AUTH
> against external program Sep  5 00:46:20 host msd[19000]: AUTH success:
> [pete@whynap.net]
> Sep  5 00:46:20 host msd[19000]: EHLO command received, args:
> [192.168.1.16] Sep  5 00:46:21 host msd[19000]: MAIL command received,
> args: FROM:<pete@whynap.net> Sep  5 00:46:21 host msd[19000]: RCPT command
> received, args: TO:<debra@kiwiheart.co.nz> Sep  5 00:46:21 host msd[19000]:
> RCPT: debra@kiwiheart.co.nz
> Sep  5 00:46:21 host msd[19003]: running external check user program:
> [/etc/magic-mail/bin/validate_user.sh] [debra@kiwiheart.co.nz] Sep  5
> 00:46:21 host msd[19000]: result_buffer[/etc/magic-mail/spam] Sep  5
> 00:46:21 host msd[19000]: OUTSTRING: 0x805d048
> Sep  5 00:46:21 host msd[19000]: No globals to load
> Sep  5 00:46:21 host msd[19000]: Loading spam rule control files from
> /etc/magic-mail/spam/ Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD
> ALL_GLOBAL_RULES Sep  5 00:46:21 host msd[19000]: Couldn't open control
> file for reading...using default boolean value Sep  5 00:46:21 host
> msd[19000]: XXX LOADING VARIABLES
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD ALL_GLOBAL_RULES
> Sep  5 00:46:21 host msd[19000]: Couldn't open control file for
> reading...using default boolean value Sep  5 00:46:21 host msd[19000]: XXX
> TRYING TO LOAD SPAM_CHECK
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD VIRUS_CHECK
> Sep  5 00:46:21 host msd[19000]: Couldn't open control file for
> reading...using default boolean value Sep  5 00:46:21 host msd[19000]: XXX
> TRYING TO LOAD SMTP_CHECK
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD DELIVERY_CHECK
> Sep  5 00:46:21 host msd[19000]: Couldn't open control file for
> reading...using default boolean value Sep  5 00:46:21 host msd[19000]: XXX
> TRYING TO LOAD SMTP_BLOCKING
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD REQUIRE_FULL_ADDR
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD BLOCK_MAIL_FROM_SELF
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD BLOCK_IP_IN_ADDR
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD VALID_FROM_DOMAIN
> Sep  5 00:46:21 host msd[19000]: Couldn't open control file for
> reading...using default boolean value Sep  5 00:46:21 host msd[19000]: XXX
> TRYING TO LOAD VALID_BOUNCE
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD REQUIRE_HELO
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD VALID_HELO_DOMAIN
> Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD
> MAIL_FROM_STRICT_ADDR_PARSE Sep  5 00:46:21 host msd[19000]: Couldn't open
> control file for reading...using default boolean value Sep  5 00:46:21 host
> msd[19000]: XXX TRYING TO LOAD CHECK_IP_REVERSE_DNS Sep  5 00:46:21 host
> msd[19000]: Couldn't open control file for reading...using default boolean
> value Sep  5 00:46:21 host msd[19000]: XXX TRYING TO LOAD
> CHECK_DYNAMIC_REVERSE_DNS Sep  5 00:46:21 host msd[19000]: Couldn't open
> control file for reading...using default string value Sep  5 00:46:21 host
> msd[19000]: Couldn't open control file for reading...using default boolean
> value Sep  5 00:46:21 host msd[19000]: Couldn't open control file for
> reading...using default string value Sep  5 00:46:21 host msd[19000]:
> Couldn't open control file for reading...using default boolean value Sep  5
> 00:46:21 host msd[19000]: Couldn't open control file for reading...using
> default string value Sep  5 00:46:21 host msd[19000]: Couldn't open control
> file for reading...using default boolean value Sep  5 00:46:21 host
> msd[19000]: Couldn't open control file for reading...using default boolean
> value Sep  5 00:46:21 host msd[19000]: loaded spam rules from spamdir
> Sep  5 00:46:21 host msd[19000]: config_spam_rule_load() took 0.024806
> seconds Sep  5 00:46:21 host msd[19000]: User spam rules loaded
> successfully Sep  5 00:46:21 host msd[19000]: relayclient set.  Disabling
> valid helo domain spam rule. Sep  5 00:46:21 host msd[19000]: User spam
> checking enabled
> Sep  5 00:46:21 host msd[19000]: IP country code[GB]
> Sep  5 00:46:21 host msd[19000]: checking rule: spam_check
> Sep  5 00:46:21 host msd[19000]: checking rule: smtp_check
> Sep  5 00:46:21 host msd[19000]: checking rule: require_full_addr
> Sep  5 00:46:21 host msd[19000]: checking rule: block_mail_from_self
> Sep  5 00:46:21 host msd[19000]: checking rule: block_ip_in_addr
> Sep  5 00:46:21 host msd[19000]: checking rule: block_ip_in_addr
> Sep  5 00:46:21 host msd[19000]: checking rule: valid_bounce
> Sep  5 00:46:21 host msd[19000]: Successfull bounce check connection to
> 'mail.whynap.net' Sep  5 00:46:21 host msd[19000]: checking rule:
> require_helo
> Sep  5 00:46:21 host msd[19000]: checking rule: check_dynamic_reverse_dns
> Sep  5 00:46:21 host msd[19000]:
> addSpamLog(check_dynamic_reverse_dns,(null),1,0) Sep  5 00:46:21 host
> msd[19000]: checking global whitelist: helo
> Sep  5 00:46:21 host msd[19000]: checking personal whitelist: helo
> Sep  5 00:46:21 host msd[19000]: checking global blacklist: helo
> Sep  5 00:46:21 host msd[19000]: checking personal black list: helo
> Sep  5 00:46:21 host msd[19000]: checking personal whitelist: country
> Sep  5 00:46:21 host msd[19000]: checking personal black list: country
> Sep  5 00:46:21 host msd[19000]: checking personal whitelist: from
> Sep  5 00:46:21 host msd[19012]: Linux Magic SMTPD started: connection from
> 80.84.66.10 Sep  5 00:46:21 host msd[19000]: checking personal black list:
> from Sep  5 00:46:21 host msd[19012]: Premature end of input data
> Sep  5 00:46:21 host msd[19000]: checking personal whitelist: country
> Sep  5 00:46:21 host msd[19000]: checking personal black list: country
> Sep  5 00:46:21 host msd[19000]: checking global whitelist: ip
> Sep  5 00:46:21 host msd[19000]: checking personal whitelist: ip
> Sep  5 00:46:21 host msd[19000]: checking global blacklist: ip
> Sep  5 00:46:21 host msd[19000]: checking personal black list: ip
> Sep  5 00:46:21 host msd[19000]: checking personal whitelist: country
> Sep  5 00:46:21 host msd[19000]: checking personal black list: country
> Sep  5 00:46:21 host msd[19000]: SPAM_HIT 213.249.237.197
> R:debra@kiwiheart.co.nz F:pete@whynap.net check_dynamic_reverse_dns Sep  5
> 00:46:21 host msd[19000]: BLOCK: Any mail data received will not be
> delivered. Sep  5 00:46:21 host msd[19000]: QUIT command received, args:

-- 
Bart Trzeciak - Jr. Consultant

LinuxAdministration - Internet Services

NetworkServices - Programming - Security

Wizard IT Services http://www.wizard.ca <http://www.wizard.ca/> 

Linux Support Specialist - http://www.linuxmagic.com
<http://www.linuxmagic.com/> 

LinuxMagic is a Registered TradeMark of Wizard Tower TechnoServices Ltd.

--------------------------------------------------------

(604)589-0037 Beautiful British Columbia, Canada

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which they
are addressed. If you have received this email in error please notify
the system manager. Please note that any views or opinions presented in
this email are solely those of the author and do not necessarily
represent those of the company.