Discussion:
Cgate as a bu mail server for
Matt
2004-06-30 22:19:15 UTC
Permalink
Quick questions cgate 3.59 I have set up as a backup mail server for
domain.com. I entered
Hold mail for domain.com and added mx and a records for domain.com.

Do I need to enter a router entry. I am Backing up an exchange 5.5
server which is being moved tonight.

Does cgate automatically keep trying to send the dmains mail to the
primary server or do I have to
Manually trigger this?

Thanks

Matt

#############################################################
This message is sent to you because you are subscribed to
the mailing list <***@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-***@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-***@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-***@mail.stalker.com>
Send administrative queries to <CGatePro-***@mail.stalker.com>
Jorge R. Macias
2004-07-01 00:30:47 UTC
Permalink
Hi everyone

I have the following setup:

RedHat 8 Intel
CGP 4.1.8
CGPSA + SpamAssassin
CGPAV + ClamAV
MPP + Cybersoft

And for the plug-ins I have the rules as follow:

Priority 7: Applies MPP
Header Field is not X-Scanned-By: RAE MPP/Cybersoft
PA http://raeinternet.com/mpp*
Message Size greater than 1024
External Filter MPP

MPP runs in Add Header mode for SPAM, so when it finds SPAM it adds
a X-Spam-Flag: Yes header field (it asks CGP to add the header, right?)

Priorty 6: Applies CGPAV
Message Size greater than 1024
External Filter CGPAV

Priority 5: Applies CGPSA
Any Route is LOCAL*
Header Field is not X-TFF-CGPSA-Filter-Mexis*
External Filter CGPSA

Now, all this are server-wide rules, and I have a domain-wide rule:

Header Field is X-Spam-Flag: YES*
Store in ~/SPAM

and all this works, any message which MPP tags as SPAM ends in a SPAM
folder in the receipients account.

Now, I don't want to filter SPAM based on the header added by MPP, but I
want that header to be used by an spamassassin rule to add spam score to
the message, so I set the rule as follows in my cf file:

header MPP_FLAGGED_SPAM X-Spam-Flag =~ /YES/i
describe MPP_FLAGGED_SPAM MPP says this is spam
score MPP_FLAGGED_SPAM 4.5

I did spamassassin -d --lint, I reload the plugin an it works fine, but ....

no message actually trigers the rule, so I looked at the headers in some
of the messages:

X-Spam-Flag: YES
X-Scanned-By: RAE MPP/Cybersoft PA http://raeinternet.com/mpp
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mail.mexis.net
X-Spam-Level: *
X-Spam-Status: No, hits=1.6 required=9.0 tests=BAYES_40,HTML_MESSAGE, RCVD_NUMERIC_HELO autolearn=no version=2.63
X-TFF-CGPSA-Version: 1.3.2

there's the X-Spam-Flag header which should have triggered the MPP_FLAGGED_SPAM rule but the rule is not triggered as can be seen in X-Spam-Status ...
what puzzles me is the order of the headers ... is it possible that MPP tells CGP to add the header X-Spam-Flag but CGP won't add it until all rules have
been applied to the message? So when SA is run, the header hasn't been added and that's why the SA rule won't be triggered?

If this is the case, can anyone point any workaround?

If this is not the case, any clue about what's happening?

Thanks guys

Jorge




#############################################################
This message is sent to you because you are subscribed to
the mailing list <***@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-***@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-***@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-***@mail.stalker.com>
Send administrative queries to <CGatePro-***@mail.stalker.com>
Technical Support, Stalker Labs
2004-07-01 00:10:17 UTC
Permalink
Post by Jorge R. Macias
Hi everyone
RedHat 8 Intel
CGP 4.1.8
CGPSA + SpamAssassin
CGPAV + ClamAV
MPP + Cybersoft
Priority 7: Applies MPP
Header Field is not X-Scanned-By: RAE MPP/Cybersoft
PA http://raeinternet.com/mpp*
Message Size greater than 1024
External Filter MPP
MPP runs in Add Header mode for SPAM, so when it finds SPAM it adds
a X-Spam-Flag: Yes header field (it asks CGP to add the header, right?)
Priorty 6: Applies CGPAV
Message Size greater than 1024
External Filter CGPAV
Priority 5: Applies CGPSA
Any Route is LOCAL*
Header Field is not X-TFF-CGPSA-Filter-Mexis*
External Filter CGPSA
Header Field is X-Spam-Flag: YES*
Store in ~/SPAM
and all this works, any message which MPP tags as SPAM ends in a SPAM
folder in the receipients account.
Now, I don't want to filter SPAM based on the header added by MPP, but I
want that header to be used by an spamassassin rule to add spam score to
header MPP_FLAGGED_SPAM X-Spam-Flag =~ /YES/i
describe MPP_FLAGGED_SPAM MPP says this is spam
score MPP_FLAGGED_SPAM 4.5
I did spamassassin -d --lint, I reload the plugin an it works fine, but ....
no message actually trigers the rule, so I looked at the headers in some
X-Spam-Flag: YES
X-Scanned-By: RAE MPP/Cybersoft PA http://raeinternet.com/mpp
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mail.mexis.net
X-Spam-Level: *
X-Spam-Status: No, hits=1.6 required=9.0 tests=BAYES_40,HTML_MESSAGE,
RCVD_NUMERIC_HELO autolearn=no version=2.63
X-TFF-CGPSA-Version: 1.3.2
there's the X-Spam-Flag header which should have triggered the
MPP_FLAGGED_SPAM rule but the rule is not triggered as can be seen in
X-Spam-Status ...
what puzzles me is the order of the headers ... is it possible that MPP tells
CGP to add the header X-Spam-Flag but CGP won't add it until all rules have
been applied to the message?
The added headers are kept in memory, they're not written into the message
file. So, they're available from Rules but not visible to the filtering
program when it reads the message file directly.
Post by Jorge R. Macias
So when SA is run, the header hasn't been added
and that's why the SA rule won't be triggered?
If this is the case, can anyone point any workaround?
If this is not the case, any clue about what's happening?
Thanks guys
Jorge
#############################################################
This message is sent to you because you are subscribed to
Sincerely,
Roman




#############################################################
This message is sent to you because you are subscribed to
the mailing list <***@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-***@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-***@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-***@mail.stalker.com>
Send administrative queries to <CGatePro-***@mail.stalker.com>
Jorge R. Macias
2004-07-01 01:17:34 UTC
Permalink
Post by Technical Support, Stalker Labs
Post by Jorge R. Macias
Hi everyone
RedHat 8 Intel
CGP 4.1.8
CGPSA + SpamAssassin
CGPAV + ClamAV
MPP + Cybersoft
Priority 7: Applies MPP
Header Field is not X-Scanned-By: RAE MPP/Cybersoft
PA http://raeinternet.com/mpp*
Message Size greater than 1024
External Filter MPP
MPP runs in Add Header mode for SPAM, so when it finds SPAM it adds
a X-Spam-Flag: Yes header field (it asks CGP to add the header, right?)
Priorty 6: Applies CGPAV
Message Size greater than 1024
External Filter CGPAV
Priority 5: Applies CGPSA
Any Route is LOCAL*
Header Field is not X-TFF-CGPSA-Filter-Mexis*
External Filter CGPSA
Header Field is X-Spam-Flag: YES*
Store in ~/SPAM
and all this works, any message which MPP tags as SPAM ends in a SPAM
folder in the receipients account.
Now, I don't want to filter SPAM based on the header added by MPP, but I
want that header to be used by an spamassassin rule to add spam score to
header MPP_FLAGGED_SPAM X-Spam-Flag =~ /YES/i
describe MPP_FLAGGED_SPAM MPP says this is spam
score MPP_FLAGGED_SPAM 4.5
I did spamassassin -d --lint, I reload the plugin an it works fine, but ....
no message actually trigers the rule, so I looked at the headers in some
X-Spam-Flag: YES
X-Scanned-By: RAE MPP/Cybersoft PA http://raeinternet.com/mpp
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mail.mexis.net
X-Spam-Level: *
X-Spam-Status: No, hits=1.6 required=9.0 tests=BAYES_40,HTML_MESSAGE,
RCVD_NUMERIC_HELO autolearn=no version=2.63
X-TFF-CGPSA-Version: 1.3.2
there's the X-Spam-Flag header which should have triggered the
MPP_FLAGGED_SPAM rule but the rule is not triggered as can be seen in
X-Spam-Status ...
what puzzles me is the order of the headers ... is it possible that MPP tells
CGP to add the header X-Spam-Flag but CGP won't add it until all rules have
been applied to the message?
The added headers are kept in memory, they're not written into the message
file. So, they're available from Rules but not visible to the filtering
program when it reads the message file directly.
So spamassassin can't see the header as I supposed, any way to work
around this? Wouldn't it be helpful to have the capability to actually
add the headers after the rule is executed so the next filters can see it?
Post by Technical Support, Stalker Labs
Post by Jorge R. Macias
So when SA is run, the header hasn't been added
and that's why the SA rule won't be triggered?
If this is the case, can anyone point any workaround?
If this is not the case, any clue about what's happening?
Thanks guys
Jorge
#############################################################
This message is sent to you because you are subscribed to
Sincerely,
Roman
#############################################################
This message is sent to you because you are subscribed to
#############################################################
This message is sent to you because you are subscribed to
the mailing list <***@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-***@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-***@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-***@mail.stalker.com>
Send administrative queries to <CGatePro-***@mail.stalker.com>
Technical Support, Stalker Labs
2004-07-01 00:36:31 UTC
Permalink
Post by Jorge R. Macias
Post by Technical Support, Stalker Labs
Post by Jorge R. Macias
Hi everyone
RedHat 8 Intel
CGP 4.1.8
CGPSA + SpamAssassin
CGPAV + ClamAV
MPP + Cybersoft
Priority 7: Applies MPP
Header Field is not X-Scanned-By: RAE MPP/Cybersoft
PA http://raeinternet.com/mpp*
Message Size greater than 1024
External Filter MPP
MPP runs in Add Header mode for SPAM, so when it finds SPAM it adds
a X-Spam-Flag: Yes header field (it asks CGP to add the header, right?)
Priorty 6: Applies CGPAV
Message Size greater than 1024
External Filter CGPAV
Priority 5: Applies CGPSA
Any Route is LOCAL*
Header Field is not X-TFF-CGPSA-Filter-Mexis*
External Filter CGPSA
Header Field is X-Spam-Flag: YES*
Store in ~/SPAM
and all this works, any message which MPP tags as SPAM ends in a SPAM
folder in the receipients account.
Now, I don't want to filter SPAM based on the header added by MPP, but I
want that header to be used by an spamassassin rule to add spam score to
header MPP_FLAGGED_SPAM X-Spam-Flag =~ /YES/i
describe MPP_FLAGGED_SPAM MPP says this is spam
score MPP_FLAGGED_SPAM 4.5
I did spamassassin -d --lint, I reload the plugin an it works fine, but ....
no message actually trigers the rule, so I looked at the headers in some
X-Spam-Flag: YES
X-Scanned-By: RAE MPP/Cybersoft PA http://raeinternet.com/mpp
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mail.mexis.net
X-Spam-Level: *
X-Spam-Status: No, hits=1.6 required=9.0 tests=BAYES_40,HTML_MESSAGE,
RCVD_NUMERIC_HELO autolearn=no version=2.63
X-TFF-CGPSA-Version: 1.3.2
there's the X-Spam-Flag header which should have triggered the
MPP_FLAGGED_SPAM rule but the rule is not triggered as can be seen in
X-Spam-Status ...
what puzzles me is the order of the headers ... is it possible that MPP tells
CGP to add the header X-Spam-Flag but CGP won't add it until all rules have
been applied to the message?
The added headers are kept in memory, they're not written into the message
file. So, they're available from Rules but not visible to the filtering
program when it reads the message file directly.
So spamassassin can't see the header as I supposed, any way to work
around this? Wouldn't it be helpful to have the capability to actually
add the headers after the rule is executed so the next filters can see it?
No, otherwise if the server crash in the middle of the processing of a
message - the header will be added several times.
Post by Jorge R. Macias
Post by Technical Support, Stalker Labs
Post by Jorge R. Macias
So when SA is run, the header hasn't been added
and that's why the SA rule won't be triggered?
If this is the case, can anyone point any workaround?
If this is not the case, any clue about what's happening?
Thanks guys
Jorge
#############################################################
This message is sent to you because you are subscribed to
Sincerely,
Roman
#############################################################
This message is sent to you because you are subscribed to
#############################################################
This message is sent to you because you are subscribed to
Sincerely,
Roman




#############################################################
This message is sent to you because you are subscribed to
the mailing list <***@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-***@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-***@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-***@mail.stalker.com>
Send administrative queries to <CGatePro-***@mail.stalker.com>
Technical Support, Stalker Labs
2004-07-01 00:05:54 UTC
Permalink
Post by Matt
Quick questions cgate 3.59 I have set up as a backup mail server for
domain.com.
I entered
Hold mail for domain.com
You don't need this, so remove.
Post by Matt
and added mx and a records for domain.com.
Do I need to enter a router entry.
Yes, read <http://www.stalker.com/CommuniGatePro/HowTo.html#RelayDomain>
Post by Matt
I am Backing up an exchange 5.5
server which is being moved tonight.
Does cgate automatically keep trying to send the dmains mail to the
primary server
Yes, but since you've told it to hold mail - it won't do that before it
receives a wake-up command from the Exchange.
Post by Matt
or do I have to
Manually trigger this?
Thanks
Matt
#############################################################
This message is sent to you because you are subscribed to
Sincerely,
Roman



#############################################################
This message is sent to you because you are subscribed to
the mailing list <***@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-***@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-***@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-***@mail.stalker.com>
Send administrative queries to <CGatePro-***@mail.stalker.com>
Loading...