FREEDOM. FRIENDS. FEATURES. FIRST.
페도라 한국 사용자 모임

mailman+sendmail 설치하기

게시판 Tech/Tip mailman+sendmail 설치하기

  • This topic has 2개 답변, 2명 참여, and was last updated 11 years 전에 by 인베인. This post has been viewed 24 times
  • 만든이
    게시글
  • #12118
    인베인
    참가자
    • 게시글141
    • 댓글379
    • 총합520
    • ★★
    @leemgs

    http://www.gnu.org/software/mailman/mailman.html

    -OS : FC6 (2.6.20.kernel)
    -Requirement: sendmail-devel-8.13.8-2
                sendmail-8.13.8-2
                sendmail-doc-8.13.8-2
                sendmail-cf-8.13.8-2
                mailman-2.1.5-35.fc4
    - RPM 설치시에 sendmail start & mailman start가  Faile되는 경우가 종종 있는데 이경우
     설치된 sendmail & mailman 의 RPM을 제거후에 다시 설치를 하면 된다.

    1. sendmail 설치하기
    FC#> rpm -ivh sendmail*
    FC#> ntsysv (sendmail 체크하기)
    FC#> /etc/init.d/sendmail start
    FC#> netstat -nat |grep 25

    2. mailman 설치하기

    FC#> rpm -ivh mailman-2.1.5-35.fc4.i386.rpm
    Preparing...                ########################################### [100%]
      1:mailman                ########################################### [100%]
    FC#>
    FC#> /usr/lib/mailman/bin/check_perms  (mailman 퍼미션 정상여부 검사)
    FC#> /usr/lib/mailman/bin/check_perms  -f ( mailman 퍼미션  자동수정)
    FC#> /etc/init.d/mailman start
    mailman (을)를 시작합니다: Site list is missing: mailman        [실패]
    (* /etc/aliases 환경화일이  newaliases명령으로 generate 되지 않는경우 발생함.)

    FC#> /usr/lib/mailman/bin/mmsitepass  (메일링 리스트 생성시 필요한 보안암호 만들기)
    New site password:
    Again to confirm password:
    Password changed.
    FC#>

    FC#> /usr/lib/mailman/bin/newlist mailman
    Enter the email of the person running the list: demo@demosite.com
    Initial mailman password:
    To finish creating your mailing list, you must edit your /etc/aliases (or
    equivalent) file by adding the following lines, and possibly running the
    `newaliases' program:

    ## mailman mailing list
    mailman: "|/usr/local/mailman/mail/mailman post mailman"
    mailman-admin: "|/usr/local/mailman/mail/mailman admin mailman"
    mailman-bounces: "|/usr/local/mailman/mail/mailman bounces mailman"
    mailman-confirm: "|/usr/local/mailman/mail/mailman confirm mailman"
    mailman-join: "|/usr/local/mailman/mail/mailman join mailman"
    mailman-leave: "|/usr/local/mailman/mail/mailman leave mailman"
    mailman-owner: "|/usr/local/mailman/mail/mailman owner mailman"
    mailman-request: "|/usr/local/mailman/mail/mailman request mailman"
    mailman-subscribe: "|/usr/local/mailman/mail/mailman subscribe mailman"
    mailman-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe mailman"

    Hit enter to notify mailman owner...

    FC#> vi /etc/aliases
    ## mailman mailing list
    mailman: "|/usr/local/mailman/mail/mailman post mailman"
    mailman-admin: "|/usr/local/mailman/mail/mailman admin mailman"
    mailman-bounces: "|/usr/local/mailman/mail/mailman bounces mailman"
    mailman-confirm: "|/usr/local/mailman/mail/mailman confirm mailman"
    mailman-join: "|/usr/local/mailman/mail/mailman join mailman"
    mailman-leave: "|/usr/local/mailman/mail/mailman leave mailman"
    mailman-owner: "|/usr/local/mailman/mail/mailman owner mailman"
    mailman-request: "|/usr/local/mailman/mail/mailman request mailman"
    mailman-subscribe: "|/usr/local/mailman/mail/mailman subscribe mailman"
    mailman-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe mailman"

    ## root mailing list
    root:              "|/usr/lib/mailman/mail/mailman post root"
    root-admin:        "|/usr/lib/mailman/mail/mailman admin root"
    root-bounces:      "|/usr/lib/mailman/mail/mailman bounces root"
    root-confirm:      "|/usr/lib/mailman/mail/mailman confirm root"
    root-join:         "|/usr/lib/mailman/mail/mailman join root"
    root-leave:        "|/usr/lib/mailman/mail/mailman leave root"
    root-owner:        "|/usr/lib/mailman/mail/mailman owner root"
    root-request:      "|/usr/lib/mailman/mail/mailman request root"
    root-subscribe:    "|/usr/lib/mailman/mail/mailman subscribe root"
    root-unsubscribe:  "|/usr/lib/mailman/mail/mailman unsubscribe root"

    FC#> newaliases
    FC#> /etc/init.d/mailman start
    mailman (을)를 시작합니다:                                 [  OK  ]

    3. 환경설정

    FC#> vi /etc/httpd/conf.d/mailman.conf
    -----------------------------------------------------------------------------
    #
    #  httpd configuration settings for use with mailman.
    #

    ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
    < Directory /usr/lib/mailman/cgi-bin/>
       AllowOverride None
       Options ExecCGI
       Order allow,deny
       Allow from all
    < /Directory>

    Alias /pipermail/ /var/lib/mailman/archives/public/
    < Directory /var/lib/mailman/archives/public>
       Options Indexes MultiViews FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
    < /Directory>

    # Uncomment the following line, replacing www.example.com with your server's
    # name, to redirect queries to /mailman to the listinfo page (recommended).

    # RedirectMatch ^/mailman[/]*$ http://www.example.com/mailman/listinfo
    -----------------------------------------------------------------------------

    4. mailman 사용하기
    FC#> firefox http://localhost/pipermail/

    FC#> http://localhost/mailman/listinfo/
    (※주의: 콘솔에서 메일링 리스트 생성시에 웹에서 메일링리스트(Name)이 보이지 않으므로,
       콘솔에서 생성한 것을 ./bin/rmlist  mailman 으로 삭제한후 웹에서 다시 생성해야 함.)
    FC#> http://localhost/mailman/create/

    FC#> http://localhost/mailman/admin/

    FC#> date | /usr/lib/sendmail -v <생성된 메일링리스트 메일주소>
       다음과 같은 메세지를 받을 수 있을 것입니다.
     "|/home/mailman/mail/wrapper post test"... Connecting to prog...
     "|/home/mailman/mail/wrapper post test"... Sent
        성공입니다.!!

    4. TroubleShooting

    4.1 mailman업데이트후에  "Site list is missing: mailman" 에러 발생시
      FC#> /usr/bin/python2 /home/mailman/bin/mailmanctl -s -q start

    end of line.

    * 오픈소스는 Open Innovationa & 윈윈전략을 도모할 지언정 절대 공짜(무료)임을 뜻하지 않는다.치

1 답변 글타래를 보이고 있습니다
  • 글쓴이
    답변
    • #12727
      ELem
      참가자
      • 게시글67
      • 댓글672
      • 총합739
      • ★★
      @Bardisch

      아마 groupinstall에 들어가있던거군요...

    • #12728
      인베인
      참가자
      참가자
      • 게시글141
      • 댓글379
      • 총합520
      • ★★
      @leemgs

      groupinstall 이요?

      * 오픈소스는 Open Innovationa & 윈윈전략을 도모할 지언정 절대 공짜(무료)임을 뜻하지 않는다.치

1 답변 글타래를 보이고 있습니다
  • 답변은 로그인 후 가능합니다.