Mailman tips & hacks

Using UTF-8

if you changed apache to 'AddDefaultCharset UTF-8` then you need to fix this:

  • edit /var/lib/mailman/messages/sl/LC_MESSAGES/mailman.po and change Content-Type to read: “Content-Type: text/plain; charset=UTF-8\n”
  • run

  iconv --verbose  -f ISO_8859-2 -t UTF-8  mailman.po > mailman.mo
  

  • and add to /etc/mailman/mm_cfg.py

  DEFAULT_CHARSET = "UTF-8"
  VERBATIM_ENCODING = ['UTF-8']
  add_language('sl','Slovenian','utf-8','ltr')
  

Massive mailing (spamming)

master.cf

127.0.0.1:10025 inet    n       -       y       -       -       smtpd
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o content_filter=
        -o smtpd_delay_reject=no
        -o smtpd_client_restrictions=permit_mynetworks,reject
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o smtpd_data_restrictions=reject_unauth_pipelining
        -o smtpd_end_of_data_restrictions=
        -o smtpd_restriction_classes=
        -o mynetworks=127.0.0.0/8
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
        -o smtpd_client_connection_count_limit=0
        -o smtpd_client_connection_rate_limit=0
        -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
        -o local_header_rewrite_clients=

main.cf

# Mailman / Postfix tunnnig
qmgr_message_active_limit = 40000
qmgr_message_recipient_limit = 40000
default_destination_concurrency_limit=50
default_destination_recipient_limit=50
default_process_limit=150
smtp_mx_session_limit=100
smtpd_client_connection_count_limit=100
smtp_destination_concurrency_limit=100
maximal_backoff_time = 1000s
minimal_backoff_time = 300s

mailman (mm_cfg.py)

MTA = "None"
QRUNNER_LOCK_LIFETIME = hours(10)
QRUNNER_PROCESS_LIFETIME = minutes(15)
QRUNNER_MAX_MESSAGES = 500

SMTP_MAX_RCPTS = 10
SMTP_MAX_SESSIONS_PER_CONNECTION = 0

SMTPHOST = 'localhost'
SMTPPORT = 10025

Mailman settings if you're having problems with memory .. turn off bounces / redirect bounce aliase to /dev/null.

mailman.txt · Last modified: 2014/08/19 12:53 by zagi
CC Attribution-Noncommercial-Share Alike 4.0 International
Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 ipv6 ready