Spam check and bounced email's body
Hi, I use spamassassin to filter spam. So I configured a rule in mailman that detect the string "{Spam}" in the subject of the email and then defer the email.
The problem is that mailman sent to owner of the list the email that is spam with the body of the email. So, spamassassin detects the body and mark the email as spam, and mailman differ the mail sended to the owner.
My question is: how can I configure mailman to not sent the body of the email in the notification to the owner of the list?
Many thanks Oliver
-- Oliver Schulze L. <oliver@samera.com.py>
Oliver Schulze L. wrote:
My question is: how can I configure mailman to not sent the body of the email in the notification to the owner of the list?
You can turn off admin_immed_notify so the admin/moderator only gets a daily summary of held posts. There's no other option for it.
If the daily summary is not sufficient, you could increase the frequency of the cron/checkdbs job in mailman's crontab.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark, ok, I will try to find a solution in my spam filter. Will not scan if the email is relayed by mailman.
But still will have problem if the owner's mail server have a spam solution. Maybe my mailman email server can get black listed for sending spam :(
I think its a nice feature request to ask, "do not send body of the deffered email" ;)
Thanks Oliver
Mark Sapiro wrote:
Oliver Schulze L. wrote:
My question is: how can I configure mailman to not sent the body of the email in the notification to the owner of the list?
You can turn off admin_immed_notify so the admin/moderator only gets a daily summary of held posts. There's no other option for it.
If the daily summary is not sufficient, you could increase the frequency of the cron/checkdbs job in mailman's crontab.
-- Oliver Schulze L. <oliver@samera.com.py>
If you're using sendmail, I have a solution that I implemented that seems to work quite well:
Put together a script (e.g., an init script in /etc/init.d, on Debian) that will run the following on startup:
sendmail OPTIONS="-bd -ODeliveryMode=defer -ODaemonPortOptions=Name=MSA,Port=3276,M=E,Addr=127.0.0.1
Also, you'll need to adjust your mailman config so that it delivers to the new port (3276, above). In mm_cfg.py, add:
SMTPPORT = 3276
(If my or your mail client chopped that up, it should be all on one line)
This basically starts a sendmail daemon that listens only to localhost, and bypasses all filters and stuff to stick whatever it receives directly in the outgoing queue. If the mail to the admin is being delivered locally, this means it won't be scanned by spamassassin at any time.
This also significantly decreased the time it took for a message to get out to a list, versus having mailman SMTP to the normal sendmail. Which is understandable, since it means that 90 messages weren't getting scanned by clamav and spamassassin anymore. :)
- Patrick Bogen
On 2/22/06, Oliver Schulze L. <oliver@samera.com.py> wrote:
Hi Mark, ok, I will try to find a solution in my spam filter. Will not scan if the email is relayed by mailman.
But still will have problem if the owner's mail server have a spam solution. Maybe my mailman email server can get black listed for sending spam :(
I think its a nice feature request to ask, "do not send body of the deffered email" ;)
Thanks Oliver
Mark Sapiro wrote:
Oliver Schulze L. wrote:
My question is: how can I configure mailman to not sent the body of the email in the notification to the owner of the list?
You can turn off admin_immed_notify so the admin/moderator only gets a daily summary of held posts. There's no other option for it.
If the daily summary is not sufficient, you could increase the frequency of the cron/checkdbs job in mailman's crontab.
-- Oliver Schulze L. <oliver@samera.com.py>
Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/pdbogen%40gmail.com
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
--
- Patrick Bogen
At 11:39 PM -0600 2006-02-22, Patrick Bogen wrote:
This basically starts a sendmail daemon that listens only to localhost, and bypasses all filters and stuff to stick whatever it receives directly in the outgoing queue. If the mail to the admin is being delivered locally, this means it won't be scanned by spamassassin at any time.
This is precisely the same sort of thing that we recommend for
people who are running postfix, and is discussed in the FAQ. If this isn't mentioned in the FAQ for people using sendmail, then what we should probably do is add this as part of a separate generic MTA performance enhancement page and then point all the MTA-specific pages to that one, as well as adding their own particular details.
-- Brad Knowles, <brad@stop.mail-abuse.org>
"Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
LOPSA member since December 2005. See <http://www.lopsa.org/>.
Hi Patrick, seems a nice solution, will give it a try.
Cheers, Oliver
Patrick Bogen wrote:
If you're using sendmail, I have a solution that I implemented that seems to work quite well:
Put together a script (e.g., an init script in /etc/init.d, on Debian) that will run the following on startup:
sendmail OPTIONS="-bd -ODeliveryMode=defer -ODaemonPortOptions=Name=MSA,Port=3276,M=E,Addr=127.0.0.1
Also, you'll need to adjust your mailman config so that it delivers to the new port (3276, above). In mm_cfg.py, add:
SMTPPORT = 3276
(If my or your mail client chopped that up, it should be all on one line)
This basically starts a sendmail daemon that listens only to localhost, and bypasses all filters and stuff to stick whatever it receives directly in the outgoing queue. If the mail to the admin is being delivered locally, this means it won't be scanned by spamassassin at any time.
This also significantly decreased the time it took for a message to get out to a list, versus having mailman SMTP to the normal sendmail. Which is understandable, since it means that 90 messages weren't getting scanned by clamav and spamassassin anymore. :)
- Patrick Bogen
On 2/22/06, Oliver Schulze L. <oliver@samera.com.py> wrote:
Hi Mark, ok, I will try to find a solution in my spam filter. Will not scan if the email is relayed by mailman.
But still will have problem if the owner's mail server have a spam solution. Maybe my mailman email server can get black listed for sending spam :(
I think its a nice feature request to ask, "do not send body of the deffered email" ;)
Thanks Oliver
Mark Sapiro wrote:
Oliver Schulze L. wrote:
My question is: how can I configure mailman to not sent the body of the email in the notification to the owner of the list?
You can turn off admin_immed_notify so the admin/moderator only gets a daily summary of held posts. There's no other option for it.
If the daily summary is not sufficient, you could increase the frequency of the cron/checkdbs job in mailman's crontab.
-- Oliver Schulze L. <oliver@samera.com.py>
Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/pdbogen%40gmail.com
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
--
- Patrick Bogen
-- Oliver Schulze L. <oliver@samera.com.py>
Hi Mark, I understand.
The solution I'm looking is to hack the code to not send the body of the differed/rejected email.
It would be nice to hace and option for this, since anti-spam software get installed more and more every day.
Thanks for your reply, Oliver
Mark Sapiro wrote:
Oliver Schulze L. wrote:
My question is: how can I configure mailman to not sent the body of the email in the notification to the owner of the list?
You can turn off admin_immed_notify so the admin/moderator only gets a daily summary of held posts. There's no other option for it.
If the daily summary is not sufficient, you could increase the frequency of the cron/checkdbs job in mailman's crontab.
-- Oliver Schulze L. <oliver@samera.com.py>
participants (4)
-
Brad Knowles
-
Mark Sapiro
-
Oliver Schulze L.
-
Patrick Bogen