multisites
asked on
How to make Spamassassin process just outgoing not incoming emails
I have a Linux Server (let's call it Server-1), running Spamassassin, Sendmail, which works as POP and SMTP Server for hundreds of Domains. Normally it processes incoming as well as outgoing emails.
But now, all the incoming emails comes from and through another Server (let's call it Server-2) which works like a gateway. This Server-2 runs Postfix with MailScanner, Amavis and Spamassassin, so my Server-1 doesn't need anymore to again scan incoming emails, just outgoing emails.I want to lower its load.
Question: how to accomplish it? Is it possible to configure this just at its parameters?
Thanks.
Mario./
But now, all the incoming emails comes from and through another Server (let's call it Server-2) which works like a gateway. This Server-2 runs Postfix with MailScanner, Amavis and Spamassassin, so my Server-1 doesn't need anymore to again scan incoming emails, just outgoing emails.I want to lower its load.
Question: how to accomplish it? Is it possible to configure this just at its parameters?
Thanks.
Mario./
ASKER
Sorry, as I am just an intermediate user, not a technician, I don't know exactly what the sequence is, maybe it is this way you mention.
Anyway, what I need is to scan with Spamassassin just the outgoing emails, not the incoming ones because these ones are already scanned and cleaned at the gateway Server. So, how to accomplish it?
Thanks.
Anyway, what I need is to scan with Spamassassin just the outgoing emails, not the incoming ones because these ones are already scanned and cleaned at the gateway Server. So, how to accomplish it?
Thanks.
Spamassassin itself does not have that functionality. It just scans everything it is given.
You have to configure whatever mail software you are running not to pass the mail to spamassassin if you dont want it checked.
The way in which you do this will vary according to whatever mail software you are running (sendmail, qmail, exim, postfix etc...)
You have to configure whatever mail software you are running not to pass the mail to spamassassin if you dont want it checked.
The way in which you do this will vary according to whatever mail software you are running (sendmail, qmail, exim, postfix etc...)
ASKER
Ok, I understood. In this case, I found out the it is procmail which pass the email on to Spamassassin. So, how could I configure it at procmail?
Probably configuring it so that only if the senders email address is in one of your domains would be sufficient.
Sorry but I dont know procmail filters so I will need to leave this to someone else to answer.
Sorry but I dont know procmail filters so I will need to leave this to someone else to answer.
ASKER
Well, I was thinking that, as all the incoming emails come already cleaned from a gateway Server, which has an specific IP address and host name, may be this could be the test to be done. But I don't know where and how to configure this test.
ASKER
Hi,
As a matter of fact I didn't receive a real solution to my question. What I need to know is how to configure Procmail so that it can recognize that the incoming email comes from the gateway server (by the IP address), so, as it comes already cleaned, it should not be scanned twice. Please, see my previous comment. And if there's no solution I suggest that someone in community closes the question for me. Thanks.
Mario./
As a matter of fact I didn't receive a real solution to my question. What I need to know is how to configure Procmail so that it can recognize that the incoming email comes from the gateway server (by the IP address), so, as it comes already cleaned, it should not be scanned twice. Please, see my previous comment. And if there's no solution I suggest that someone in community closes the question for me. Thanks.
Mario./
I would suggest you post in the support area and request this question be closed.
Then post a new question specifically asking about how to write the procmail filter.
Then post a new question specifically asking about how to write the procmail filter.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Normally Sendmail would accept the incoming mail and then there would be a filter (something like spamassass-milt) which acts as a filter and passes the mail to spamassassin.