소스 검색

Improving mailing list

Bob Mottram 11 년 전
부모
커밋
a03b6ae049
1개의 변경된 파일65개의 추가작업 그리고 3개의 파일을 삭제
  1. 65
    3
      beaglebone.txt

+ 65
- 3
beaglebone.txt 파일 보기

3297
 
3297
 
3298
 Mailing lists are old skool but still remain as a common and easy way of communicating on the internet.  If you're running a public organisation such as an open source project or community group then you may want to set one up.
3298
 Mailing lists are old skool but still remain as a common and easy way of communicating on the internet.  If you're running a public organisation such as an open source project or community group then you may want to set one up.
3299
 
3299
 
3300
+*** Installation
3301
+
3300
 #+BEGIN_SRC: bash
3302
 #+BEGIN_SRC: bash
3303
+export HOSTNAME=mydomainname.com
3301
 apt-get install mailman
3304
 apt-get install mailman
3302
 newlist mailman
3305
 newlist mailman
3303
 #+END_SRC
3306
 #+END_SRC
3344
 Save and exit.
3347
 Save and exit.
3345
 
3348
 
3346
 #+BEGIN_SRC: bash
3349
 #+BEGIN_SRC: bash
3350
+emacs /etc/exim4/conf.d/main/000_localmacros
3351
+#+END_SRC
3352
+
3353
+Append the following:
3354
+
3355
+#+BEGIN_SRC: bash
3356
+SYSTEM_ALIASES_PIPE_TRANSPORT = address_pipe
3357
+SYSTEM_ALIASES_USER = list
3358
+SYSTEM_ALIASES_GROUP = list
3359
+#+END_SRC
3360
+
3361
+Save and exit.
3362
+
3363
+#+BEGIN_SRC: bash
3347
 emacs /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt
3364
 emacs /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt
3348
 #+END_SRC
3365
 #+END_SRC
3349
 
3366
 
3404
 Save and exit.
3421
 Save and exit.
3405
 
3422
 
3406
 #+BEGIN_SRC: bash
3423
 #+BEGIN_SRC: bash
3424
+chown root:list /var/lib/mailman/mail/mailman
3425
+update-exim4.conf.template -r
3407
 update-exim4.conf
3426
 update-exim4.conf
3408
 service exim4 restart
3427
 service exim4 restart
3409
 emacs /etc/apache2/conf.d/mailman
3428
 emacs /etc/apache2/conf.d/mailman
3447
 
3466
 
3448
 #+BEGIN_SRC: bash
3467
 #+BEGIN_SRC: bash
3449
 newlist mymailinglistname
3468
 newlist mymailinglistname
3450
-/var/lib/mailman/bin/genaliases -q
3451
 #+END_SRC
3469
 #+END_SRC
3452
 
3470
 
3453
 With a browser visit https://$HOSTNAME/cgi-bin/mailman/admin/mymailinglistname to configure the mailing list.
3471
 With a browser visit https://$HOSTNAME/cgi-bin/mailman/admin/mymailinglistname to configure the mailing list.
3458
 
3476
 
3459
 Also change these settings for the account within https://$HOSTNAME/cgi-bin/mailman/admin/mailman
3477
 Also change these settings for the account within https://$HOSTNAME/cgi-bin/mailman/admin/mailman
3460
 
3478
 
3461
-To test that the mailing list works:
3479
+#+BEGIN_SRC: bash
3480
+emacs /etc/aliases
3481
+#+END_SRC
3482
+
3483
+Append the following, replacing /mymailinglistname/ with your mailing list name:
3484
+
3485
+#+BEGIN_SRC: bash
3486
+mymailinglistname:              "|/var/lib/mailman/mail/mailman post mymailinglistname"
3487
+mymailinglistname-admin:        "|/var/lib/mailman/mail/mailman admin mymailinglistname"
3488
+mymailinglistname-bounces:      "|/var/lib/mailman/mail/mailman bounces mymailinglistname"
3489
+mymailinglistname-confirm:      "|/var/lib/mailman/mail/mailman confirm mymailinglistname"
3490
+mymailinglistname-join:         "|/var/lib/mailman/mail/mailman join mymailinglistname"
3491
+mymailinglistname-leave:        "|/var/lib/mailman/mail/mailman leave mymailinglistname"
3492
+mymailinglistname-owner:        "|/var/lib/mailman/mail/mailman owner mymailinglistname"
3493
+mymailinglistname-request:      "|/var/lib/mailman/mail/mailman request mymailinglistname"
3494
+mymailinglistname-subscribe:    "|/var/lib/mailman/mail/mailman subscribe mymailinglistname"
3495
+mymailinglistname-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe mymailinglistname"
3496
+#+END_SRC
3497
+
3498
+Save and exit.  Then to test that the mailing list works:
3462
 
3499
 
3463
 #+BEGIN_SRC: bash
3500
 #+BEGIN_SRC: bash
3464
-exim -d -bt mymailinglistname@$HOSTNAME
3501
+exim -d+route -bt mymailinglistname@$HOSTNAME
3465
 #+END_SRC
3502
 #+END_SRC
3466
 
3503
 
3467
 If everything is working then this shouldn't show any problems.
3504
 If everything is working then this shouldn't show any problems.
3468
 
3505
 
3506
+*** Using the mailing list
3507
+Direct subscribers towards:
3508
+
3509
+#+BEGIN_SRC: bash
3510
+https://mydomainname.com/cgi-bin/mailman/listinfo/mymailinglistname
3511
+#+END_SRC
3512
+
3513
+To administrate the list visit:
3514
+
3515
+#+BEGIN_SRC: bash
3516
+https://mydomainname.com/cgi-bin/mailman/admin/mymailinglistname
3517
+#+END_SRC
3518
+
3519
+To add another mailing list:
3520
+
3521
+#+BEGIN_SRC: bash
3522
+newlist mymailinglistname
3523
+#+END_SRC
3524
+
3525
+To delete a mailing list:
3526
+
3527
+#+BEGIN_SRC: bash
3528
+rmlist -a mymailinglistname
3529
+#+END_SRC
3530
+
3469
 ** Install Tripwire
3531
 ** Install Tripwire
3470
 
3532
 
3471
 #+BEGIN_VERSE
3533
 #+BEGIN_VERSE