¥á¡¼¥ë¥·¥¹¥Æ¥à¤ÎÁ´ÂÎÁü

  1. ÍѸì¤ÎÀ°Íý
    • MTA(Mail Transfer Agent)
      • MTAƱ»Î¤Ç¥á¡¼¥ë¤òÇÛ¿®¤¹¤ë(SMTP)
      • Postfix , sendmail , qmai
    • MDA(Mail Delivery Agent)
      • MTA¤«¤é¥á¡¼¥ë¤ò¼õ¤±¼è¤êMail³ÊǼÎΰè¤Ë³ÊǼ¤¹¤ë¡£¤½¤ÎºÝ¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ä¥¦¥¤¥ë¥¹¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤â¤Î¤â¤¢¤ë
      • Fetchmail , Procmail
    • MRA(Mail Retrival Agent)
      • Mail³ÊǼÎΰ褫¤éMUA¤Ë¥á¡¼¥ë¤òÇÛ¿®¤¹¤ë¡£
      • Qpopper , Courier-IMAP
    • MUA(Mail User Agent)
      • ¥æ¡¼¥¶¡¼¤¬¥á¡¼¥ë¤ò±ÜÍ÷¤¹¤ë¥¢¥×¥ê
      • Squirrelmail , Becky!2 , Outlook
  2. ¤³¤Î¥·¥¹¥Æ¥à¤ÎÊý¿Ë
    Mail1.png
    ¥»¥­¥å¥ê¥Æ¥£ÀßÄê¤ò´Êñ¤Ë¤¹¤ë¤¿¤á¤Ë¡¢
    • ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¦¤«¤é¥á¡¼¥ë¥Ü¥Ã¥¯¥¹¤ò±ÜÍ÷¤·¤Þ¤»¤ó(¥ë¡¼¥¿¡¼¤ÇPOP3¤òLANÆâ¤ËÆþ¤ì¤Ê¤¤)
    • ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¦¤«¤é¥á¡¼¥ë¤ò½Ð¤·¤Þ¤»¤ó
      • ¤³¤Î¥µ¡¼¥Ð°¸¤ËÍ褿¥á¡¼¥ë¤ÏÁ´¤Æ¼õ¿®¤·¤Þ¤¹
      • ¾¤ÎSMTP¥µ¡¼¥Ð¤Ø¤ÎÃæ·Ñ¤Ï¡¢LANÆâ(192.168.1.0/24,127.0.0.1)¤«¤é¤Î¥á¡¼¥ë¤Î¤ß
      • ÍפÏSPAMer¤ÎƧ¤ßÂæ¤Ë¤Ê¤é¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤È¸À¤¦¤³¤È¤Ç¤¹¡£

Postfix¤ÎÀßÄê

  1. [Yast]-[¥Í¥Ã¥È¥ï¡¼¥¯¥µ¡¼¥Ó¥¹]-[¥á¥Ã¥»¡¼¥¸Å¾Á÷µ¡Ç½ÂÎ]¤òÁªÂò¤·¤Þ¤¹¡£
    Mail2.png
  2. ¤Þ¤º¤Ï¡¢¾ï»þÀܳ¤ËÀßÄꤷ¤Þ¤¹
    Mail3.png
  3. ¤³¤Î¥Þ¥·¥ó¤ò¸Ä¿Í¤ÎÀêͭüËö¤È¤·¤Æ»È¤¦¤È¤­¤ÎÀßÄê¤Ç¤¹¡£º£²ó¤Ï¥µ¡¼¥Ð¡¼¥Þ¥·¥ó¤È¤·¤ÆÀßÄꤹ¤ë¤Î¤ÇÆäËÀßÄꤹ¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó
    Mail4.png
  4. ¼õ¿®¥á¡¼¥ë¤Ç¤Ï¡¢¥ê¥â¡¼¥ÈSMTPÀܳ¤òµö²Ä¤·¡¢¥Õ¥¡¥¤¥¢¡¼¥¦¥©¡¼¥ë¤ò³«¤±¤Þ¤¹¡£¡Ö¥À¥¦¥ó¥í¡¼¥É¡×¤ÏÁ°²èÌ̤ÈƱÍͤ˸ĿÍüËö¤È¤·¤Æ»È¤¦¤È¤­¤ÎÀßÄê¤Ê¤Î¤ÇɬÍפ¢¤ê¤Þ¤»¤ó¡£
    Mail5.png
  5. ÀßÄê¥Õ¥¡¥¤¥ë¤ÎÁàºî
    1. Yast¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤¿ /etc/postfix/main.cf ¤ò¸µ¤Ë¡¢vi¤ÇÊÔ½¸¤·¤Þ¤¹¡£(Yast¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤¿main.cf¤Ï¡¢ÊÔ½¸Á°¤Ëmain.cf.original¤È¸À¤¦Ì¾Á°¤Ç¥³¥Ô¡¼¤·¤Æ¤ª¤­¤Þ¤¹)
      Êѹ¹²Õ½ê¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¡¢¾å¤¬¥ª¥ê¥¸¥Ê¥ë²¼¤¬Êѹ¹¸å¡£Êѹ¹²Õ½ê¤Ë¤Ï"!"¤¬ÉÕ¤¤¤Æ¤¤¤Þ¤¹¡£ grape:/etc/postfix # diff -c main.cf.original main.cf
      *** main.cf.original    Sun Mar  4 14:12:53 2007 [#s90cd2c8]
      --- main.cf     Sun Mar  4 23:12:23 2007
      *************** [#wa6a4b2f]
      *** 35,41 **** [#g0a72112]
        # See the files in examples/chroot-setup for setting up Postfix chroot
        # environments on different UNIX systems.
        #
      - queue_directory = /var/spool/postfix
       
        # The command_directory parameter specifies the location of all
        # postXXX commands.
      --- 35,40 ----
      *************** [#y6beb3be]
      *** 57,63 **** [#s6e6f00d]
        # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
        # USER.
        #
      - mail_owner = postfix
       
        # The default_privs parameter specifies the default rights used by
        # the local delivery agent for delivery to external file or command.
      --- 56,61 ----
      *************** [#oe5c2bd1]
      *** 81,87 **** [#s3c536fe]
        # $mydomain is used as a default value for many other configuration
        # parameters.
        #
      ! #mydomain = domain.tld
       
        # SENDING MAIL
        #
      --- 79,85 ----
        # $mydomain is used as a default value for many other configuration
        # parameters.
        #
      ! mydomain = hondou.homedns.org
       
        # SENDING MAIL
        #
      *************** [#od5cf211]
      *** 97,103 **** [#vd3622eb]
        # to recipient addresses that have no @domain part.
        #
        #myorigin = $myhostname
      ! #myorigin = $mydomain
       
        # RECEIVING MAIL
       
      --- 95,101 ----
        # to recipient addresses that have no @domain part.
        #
        #myorigin = $myhostname
      ! myorigin = $mydomain
       
        # RECEIVING MAIL
       
      *************** [#h5f317c6]
      *** 258,264 **** [#dfc71b7b]
        # of listing the patterns here. Specify type:table for table-based lookups
        # (the value on the table right-hand side is not used).
        #
      ! #mynetworks = 168.100.189.0/28, 127.0.0.0/8
        #mynetworks = $config_directory/mynetworks
        #mynetworks = hash:/etc/postfix/network_table
       
      --- 256,262 ----
        # of listing the patterns here. Specify type:table for table-based lookups
        # (the value on the table right-hand side is not used).
        #
      ! mynetworks = 192.168.1.0/24, 127.0.0.0/8
        #mynetworks = $config_directory/mynetworks
        #mynetworks = hash:/etc/postfix/network_table
       
      *************** [#ibc1d51a]
      *** 290,296 **** [#j90e0ee0]
        # list this system as their primary or backup MX host. See the
        # permit_mx_backup restriction description in postconf(5).
        #
      ! #relay_domains = $mydestination
       
        # INTERNET OR INTRANET
       
      --- 288,294 ----
        # list this system as their primary or backup MX host. See the
        # permit_mx_backup restriction description in postconf(5).
        #
      ! relay_domains = $mydestination
       
        # INTERNET OR INTRANET
       
      *************** [#a2557033]
      *** 413,419 **** [#t541c95c]
        # "Maildir/" for qmail-style delivery (the / is required).
        #
        #home_mailbox = Mailbox
      ! #home_mailbox = Maildir/
       
        # The mail_spool_directory parameter specifies the directory where
        # UNIX-style mailboxes are kept. The default setting depends on the
      --- 411,417 ----
        # "Maildir/" for qmail-style delivery (the / is required).
        #
        #home_mailbox = Mailbox
      ! home_mailbox = Maildir/
       
        # The mail_spool_directory parameter specifies the directory where
        # UNIX-style mailboxes are kept. The default setting depends on the
      *************** [#t763a45c]
      *** 662,673 **** [#d2a0d354]
        masquerade_classes = envelope_sender, header_sender, header_recipient
        myhostname = grape.hondou.homedns.org
        program_directory = /usr/lib/postfix
      - inet_interfaces = 127.0.0.1 ::1
        masquerade_domains =
      ! mydestination = $myhostname, localhost.$mydomain
        defer_transports =
        disable_dns_lookups = no
      ! relayhost =
        mailbox_command =
        mailbox_transport =
        strict_8bitmime = no
      --- 660,670 ----
        masquerade_classes = envelope_sender, header_sender, header_recipient
        myhostname = grape.hondou.homedns.org
        program_directory = /usr/lib/postfix
        masquerade_domains =
      ! mydestination = $myhostname, localhost.$mydomain, $mydomain
        defer_transports =
        disable_dns_lookups = no
      ! relayhost = [vwxyz.biglobe.ne.jp]
        mailbox_command =
        mailbox_transport =
        strict_8bitmime = no
      *************** [#ca676f5d]
      *** 684,687 **** [#id6f4b2e]
        smtp_use_tls = no
        alias_maps = hash:/etc/aliases
        mailbox_size_limit = 0
      ! message_size_limit = 10240000
      --- 681,689 ----
        smtp_use_tls = no
        alias_maps = hash:/etc/aliases
        mailbox_size_limit = 0
      ! message_size_limit = 102400000
      ! # add by hondou
      ! disable_vrfy_command = yes
      ! allow_percent_hack = yes
      ! allow_at_myorigin = yes
    2. Postfix¤ÎºÆµ¯Æ°
      > sudo /etc/init.d/postfix restart
  6. ADSL¥ë¡¼¥¿¤ÎÀßÄê¤Ç¡¢SMTP(25)¤ò¤³¤Î¥Þ¥·¥ó¤ËžÁ÷¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹

ÉÔÀµÃæ·Ñ¤Î¥Æ¥¹¥È

  1. Í­¸Â²ñ¼ÒĹºê¥Í¥Ã¥È¥ï¡¼¥¯¥µ¡¼¥Ó¥¹
  2. Network Abuse Clearinghouse

dovecot¤ÎÀßÄê

  1. [Yast]-[¥½¥Õ¥È¥¦¥§¥¢]-[¥½¥Õ¥È¥¦¥§¥¢¤Î¥¤¥ó¥¹¥È¡¼¥ë/ºï½ü]¤òÁªÂò¤·¤Þ¤¹¡£
    dovecot1.png
    dovecot¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹
    dovecot2.png
  2. [Yast]-[¥·¥¹¥Æ¥à]-[¥é¥ó¥ì¥Ù¥ë¡¦¥¨¥Ç¥£¥¿¡¼]¤òÁªÂò¤·¤Þ¤¹¡£
    dovecot3.png
    dovecot¤¬¼«Æ°µ¯Æ°¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
    dovecot4.png
  3. [Yast]-[¥»¥­¥å¥ê¥Æ¥£¤È¥æ¡¼¥¶]¤òÁªÂò¤·¤Þ¤¹¡£(squirrel mail¤Î¤ß¤ò»È¤¦¤Î¤Ç¤¢¤ì¤ÐɬÍפ¢¤ê¤Þ¤»¤ó¡£¥¦¥Á¤Ç¤Ï¤É¤¦¤·¤Æ¤âOutlook¤ò»È¤¤¤¿¤¤¤È¤¤¤¦¿Í¤¬¤¤¤ë¤Î¤Ç¡¦¡¦¡¦)
    dovecot5.png
    POP3¤òÄ̤¹¤è¤¦¤Ë¤·¤Þ¤¹¡£
    dovecot6.png
  4. /etc/dovecot.conf ¤òÊÔ½¸¤·¤Þ¤¹¡£
    > sudo vi /etc/dovecot/dovecot.conf
    
       196 #   default_mail_env = maildir:/var/mail/%1u/%u/Maildir
       197 #   default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u
       198 #   default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n
       199 #
       200 default_mail_env = maildir:~/Maildir
    
    :wq
    > sudo /etc/init.d/dovecot restart
    Stopping dovecot                                                      done
    Starting dovecot                                                      done
  5. ADSL¥ë¡¼¥¿¤ÎÀßÄê¤Ç¤Ï¡¢POP3(110)¤ò³«¤±¤Þ¤»¤ó

Maildir¤ÎÀßÄê

  1. ¥æ¡¼¥¶³Æ¿Í¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤ËMaildir¤òºî¤ê¤Þ¤¹
    > mkdir Maildir
    > chmod 700 Maildir
  2. ¤³¤ì¤«¤éºî¤é¤ì¤¿¥æ¡¼¥¶¤Ë¡¢Maildir¤¬½ÐÍè¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£(/etc/skel °Ê²¼¤¬¿·¤·¤¤¥æ¡¼¥¶¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ò¤Ê·Á¤Ë¤Ê¤ê¤Þ¤¹)
    > sudo mkdir /etc/skel/Maildir
  3. ´û¸¤Î¥æ¡¼¥¶Á´¤Æ¤Ë¡¢Maildir¤òºî¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ê¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤·¤Þ¤¹
    #!/bin/sh 
    
    for user in `ls /home/`
    do
      if [ -d /home/${user}/Maildir ]
      then
        echo /home/${user}/Mailder is already exist
      else
        mkdir /home/${user}/Maildir
        chmod 700 /home/${user}/Maildir
        chown ${user}:users /home/${user}/Maildir
        echo make /home/${user}/Mailder
      fi
    done

SPAM¥Õ¥£¥ë¥¿

  1. ¥·¥¹¥Æ¥à³µÍ×
    bsfilter.png
     
    1. SMTP(postfix)¤Ï¡¢³°Éô¤«¤é¥á¡¼¥ë¤ò¼õ¤±¼è¤ë¤È³Æ¸Ä¿Í¤ÎMail Dir¤Ë³ÊǼ¤·¤Þ¤¹
    2. Äê»þ¥Ð¥Ã¥Á¤Ë¤è¤ê¡¢³ÊǼ¤µ¤ì¤¿¥á¡¼¥ë¤Ï¸¡ºº¤µ¤ì¡¢SPAM¤ÈȽÃǤµ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢¥Ø¥Ã¥À¤Ë X-SPAM: true ¤Èµ­ºÜ¤µ¤ì¤Þ¤¹¡£
    3. squirrel mail¤¬¥á¡¼¥ë¤ò¼è¤ê¹þ¤ß¤Þ¤¹¡£¤³¤ÎºÝ¡¢¥á¡¼¥é¡¼Â¦¤Ç¥Ø¥Ã¥À¤Ë X-SPAM: true ¤Î̵ͭ¤ò¸«¤Æ¥á¡¼¥ë¤Î¿¶¤êʬ¤±¤ò¹Ô¤¤¤Þ¤¹¡£
    4. ¿Í´Ö¤¬È½ÃǤ·¤Æ¡¢SPAM¥á¡¼¥ë¤ÏTRASH.SPAM¡¢CLEAM¥á¡¼¥ë¤ÏTRASH¤Ë´ûÆÉ¥á¥Ã¥»¡¼¥¸¤È¤·¤Æ³ÊǼ¤·¤Þ¤¹¡£
    5. Äê»þ¥Ð¥Ã¥Á¤Ï¡¢³Æ¸Ä¿Í¤ÎMail Dir¤ÎTRASH.SPAM¡¢TRASH¤Î´ûÆÉ¥á¥Ã¥»¡¼¥¸¤ò¤ß¤Æ¥Ù¥¤¥º¼­½ñ¤ò¹¹¿·¤·¤Þ¤¹¡£(Ʊ»þ¤Ë³Ø½¬¤·¤¿¥á¡¼¥ë¤òºï½ü¤·¤Þ¤¹)
  2. ¥¤¥ó¥¹¥È¡¼¥ë
    • http://bsfilter.org/ ¤è¤ê¡¢bsfilter-1.0.13.tgz ¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹¡£
    • ¥Ñ¥¹¤ÎÄ̤äƤ¤¤ë¤È¤³¤í¤ËŸ³«¤·¤Þ¤¹
      > tar -xvzf bsfilter-1.0.13.tgz
      > sudo cp bsfilter-1.0.13/bsfilter/bsfilter /usr/local/bin/
  3. IMAPÍѤÎÀßÄê¥Õ¥¡¥¤¥ë¤ò¸Ä¿ÍËè¤ËÍÑ°Õ¤·¤Þ¤¹
    > vi ~/.bsfilter/bsfilter.conf
         1 imap-server 127.0.0.1
         2 imap-auth auto
         3 imap-user kagyuu
         4 imap-password ****************
  4. °ì»þ´ÖËè¤ËÆ°¤¯¥·¥§¥ë¥×¥í¥°¥é¥à¤òºîÀ®¤·¤Þ¤¹
    > sudo vi /etc/cron.hourly/spamfilter
    
    #!/bin/sh
    export PATH="/bin:/usr/bin:/usr/local/bin"
    
    for user in `ls /home/`
    do
      home=/home/${user}
      conf=${home}/.bsfilter/bsfilter.conf
    
      clean=${home}/Maildir/.INBOX.Trash/cur
      spam=${home}/Maildir/.INBOX.SPAM/cur
      inbox=${home}/Maildir/cur
    
      if [ -e ${conf} ]; then
        export BSFILTERHOME="${home}/.bsfilter"
    
        bsfilter --add-clean ${clean}/*S
        rm ${clean}/*S
    
        bsfilter --add-spam ${spam}/*S
        rm ${spam}/*S
    
        bsfilter --update
    
        bsfilter --imap --insert-flag INBOX.SPAM INBOX
    
        for oldMail in `ls ${inbox}`
        do
          newMail=`echo $oldMail | awk '{ sub(/S/,""); print }'`
          mv ${inbox}/${oldMail} ${inbox}/${newMail}
        done
      fi
    done
    
    > sudo chmod +x /etc/cron.hourly/spamfilter
    1. bsfilter¤¬IMAP¤òÄ̤¸¤Æ¥á¡¼¥ë¤òÆɤ߹þ¤à¤Î¤Ç¡¢¤É¤¦¤·¤Æ¤â´ûÆɤˤʤäƤ·¤Þ¤¦¡£¤½¤³¤Ç¡¢¥Õ¥¡¥¤¥ë̾¤ÎËöÈø¤ÎS(´ûÆÉ¥Þ¡¼¥¯)¤ò̵ÍýÌðÍý¾Ã¤¹¤³¤È¤Ë¤·¤¿¡£
    2. (1)¤È¤Î¤«¤é¤ß¤ÇSPAM¥Õ¥¡¥¤¥ë¤âINBOX¤ËÌ᤹»ö¤Ë¤·¤¿¡£¥á¡¼¥é¡¼(Squirrel Mail¦)¤Ç "X-SPAM : Yes" ¤¬Í­¤Ã¤¿¤é¡¢INBOX.SPAM ¤Ë¿¶¤êʬ¤±¤ë¤è¤¦¤Ë¤·¤Æ²¼¤µ¤¤

25È֥ݡ¼¥È¥Ö¥í¥Ã¥¯Âкö(biglobe)

  1. biglobe ¤Ç¤Ï¡¢WAN¦¤Î25È֥ݡ¼¥È(SMTP)¤òÊĤ¸¤Æ¤¤¤ë¤¿¤á¡¢¥á¡¼¥ë¤ÎÁ÷¿®¤¬¤Ç¤­¤Þ¤»¤ó¡£
             (Biglobe WAN)        (the Internet)
    [HOME]¡½¡½¡½¡½¡½¡½¡½¢ª[Router]¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦[MailServer]
    ­¡MailServer             ¢¬
    ¤Î25È֥ݡ¼¥È     ­¢25È֥ݡ¼¥È¥Ö¥í¥Ã¥¯
    ¤ËÁ÷¿®
  2. ¤·¤«¤·¡¢¿½ÀÁ¤ò¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢¥á¡¼¥ëÃæ·Ñ¥µ¡¼¥Ð¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹
             (Biglobe WAN)        (the Internet)
    [HOME]¡½¡½¡½¡½¡½¡½¡½¢ª[Ãæ·ÑSV]¡½¡½¡½¡½¡½¡½¡½¢ª[MailServer]
    ­¡Ãæ·ÑSV            ­¢HOME¤ÎÂå¤ï¤ê¤Ë         ­£Ãæ·ÑSV¤«¤é¥á¡¼¥ë
    ¤Î25È֥ݡ¼¥È        MailServer¤Ë             ¤¬ÆϤ¯
    ¤ËÃæ·Ñ¤ò°ÍÍê        Á÷¿®
  3. »ØÄꤵ¤ì¤¿Ãæ·Ñ¥µ¡¼¥Ð¤ò /etc/postfix/main.cf ¤ËÅÐÏ¿¤·¤Þ¤¹
       670 #relayhost =
       671 mailbox_command =
       672 mailbox_transport =
       673 strict_8bitmime = no
       674 disable_mime_output_conversion = no
       675 smtpd_sender_restrictions = hash:/etc/postfix/access
       676 smtpd_client_restrictions =
       677 smtpd_helo_required = no
       678 smtpd_helo_restrictions =
       679 strict_rfc821_envelopes = no
       680 smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
       681 smtp_sasl_auth_enable = no
       682 smtpd_sasl_auth_enable = no
       683 smtpd_use_tls = no
       684 smtp_use_tls = no
       685 alias_maps = hash:/etc/aliases
       686 mailbox_size_limit = 0
       687 message_size_limit = 102400000
       688 # add by hondou
       689 disable_vrfy_command = yes
       690 allow_percent_hack = yes
       691 allow_at_myorigin = yes
    ¡ú 692 relayhost = [??????.biglobe.ne.jp]
  4. ¥Ï¥Þ¥Ã¥¿
    • Suse 10 ¤Î¥Æ¥ó¥×¥ì¡¼¥È¤Ç¤Ï¡¢670¹ÔÌÜ¤Ë relayhost= ¤È½ñ¤¤¤Æ¤¢¤ë
    • ¤³¤ì¤Ëµ¤¤Å¤«¤º¤Ë 315¹ÔÌܶ᤯¤ËÄêµÁ¤·¤Æ¥Ï¥Þ¥Ã¥¿
         310 #relayhost = $mydomain
         311 #relayhost = [gateway.my.domain]
         312 #relayhost = [mailserver.isp.tld]
         313 #relayhost = uucphost
         314 #relayhost = [an.ip.add.ress]
         315 relayhost = [??????.biglobe.ne.jp]
    • ¤É¤¦¤ä¤é¤¢¤È¤ËÆɤޤ줿 670¹ÔÌܤˤè¤Ã¤ÆÄêµÁ¤¬¾å½ñ¤­¤µ¤ì¤Æ¤·¤Þ¤Ã¤¿¤è¤¦¤À
    • ºÇ½ªÅª¤Ë 670¹ÔÌܤò¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Æ¡¢ºÇ½ª¹Ô(692¹ÔÌÜ)¤Ë relayhost = [??????.biglobe.ne.jp] ¤òÄêµÁ¤·¤Æ¤­¤Á¤ó¤ÈÆ°¤¤¤¿
  5. Ç°¤Î¤¿¤áÂè»°¼ÔžÁ÷¤¬¤Ç¤­¤Ê¤¤¤³¤È¤ò¥Á¥§¥Ã¥¯¤·¤ÆÂн轪¤ï¤ê

25È֥ݡ¼¥È¥Ö¥í¥Ã¥¯Âкö(biglobe) AGAIN

  1. ¥×¥í¥Ð¥¤¥À¤Î SMTP Ãæ·Ñ¥µ¡¼¥Ð¤¬ÊѤï¤ê¡¢SMTP-AUTH ¤¬É¬Íפˤʤä¿
  2. ¤Þ¤º¤Ï¡¢¥×¥í¥Ð¥¤¥À¤Ë ºÆ¿½ÀÁ
  3. SMTP ¥µ¡¼¥Ð¤Îǧ¾ÚÊýË¡Ä´ºº
    > telnet msagw.biglobe.ne.jp 25
    Trying 133.205.103.17...
    Connected to msagw.biglobe.ne.jp.
    Escape character is '^]'.
    220 msagw.biglobe.ne.jp SMTP-Gateway Version 2.05 at Sat, 26 May 2007 22:19:20 +0900 (JST)
    EHLO localhost
    250-msagw.biglobe.ne.jp Hello msagw.biglobe.ne.jp [220.144.158.45], pleased to meet you
    250-AUTH CRAM-MD5 LOGIN PLAIN
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-8BITMIME
    250-SIZE 104857600
    250-DSN
    250-DELIVERBY
    250 HELP
    quit
    221 2.0.0 msagw.biglobe.ne.jp closing connection
    Connection closed by foreign host.
    >
    ǧ¾Ú¤Î¤ä¤êÊý¤Ï¡¢CRAM-MD5 LOGIN PLAIN ¤Î¤è¤¦¤À
  4. /etc/postfix/main.cf ¤ÎÊÔ½¸
    # diff /etc/postfix/main.cf.old /etc/postfix/main.cf
    --- /etc/postfix/main.cf.old       2007-05-26 14:12:53.000000000 +0900
    +++ /etc/postfix/main.cf        2007-05-26 17:45:53.000000000 +0900
    -relayhost = [vwxyz.biglobe.ne.jp]
    +#relayhost = [vwxyz.biglobe.ne.jp]
    +relayhost = [msagw.biglobe.ne.jp]
    +smtp_sasl_type = cyrus
    +smtp_sasl_auth_enable = yes
    +smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    +smtp_sasl_security_options = noanonymous
    +smtp_sasl_mechanism_filter = cram_md5,plain,login
    main.cf¤ÎËöÈø¤Ë¡¢smtp_sasl ¤ÎÀßÄê¤ò½ñ¤­¹þ¤ß¤Þ¤¹¡£
    ºÇ¸å¤Ë¤«¤«¤ì¤¿¤â¤Î¤¬Í­¸ú¤Ë¤Ê¤ë¤Î¤Ç¡¢ËöÈø¤Ë½ñ¤¤¤Æ¤ª¤±¤Ð¡¢ÅÓÃæ¤Ë smtp_sasl_xxxxx ¤¬½ñ¤¤¤Æ¤¢¤Ã¤Æ¤âËöÈø¤Î¤â¤Î¤¬Í­¸ú²½¤µ¤ì¤ë¡£
    • smpt_sasl_xxxxx ¤¬¡¢¤³¤Î¥µ¡¼¥Ð¤¬¹Ô¤¦Ãæ·Ñ¥µ¡¼¥Ð¤ËÂФ¹¤ëǧ¾Ú
    • smtpd_sasl_xxxxx ¤Ï¡¢¤³¤Î¥µ¡¼¥Ð¤ËÂФ¹¤ëǧ¾Ú
  5. ǧ¾Ú¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÎºîÀ®
    # vi /etc/postfix/sasl_passwd
    
    # sasl_passwd
    # Syntax:
    # domain        username:password
    # Example:
    # foo.com       username:password
    # See /usr/share/doc/packages/postfix/README_FILES/SASL_README
    # for more details
    
    msagw.biglobe.ne.jp ${biglobe¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹}:${¥Ñ¥¹¥ï¡¼¥É}
    
    :wq
    
    # postmap /etc/postfix/sasl_passwd
    ¥á¡¼¥ë¥¢¥É¥ì¥¹¤È¥Ñ¥¹¥ï¡¼¥É¤Ï¡¢Âçʸ»ú¡¦¾®Ê¸»ú¤Î¶èÊ̤¬¤¢¤ë
  6. postfix ¤ÎºÆµ¯Æ°
    # /etc/init.d/postfix reload

µÕ°ú¤­¤Ç¤­¤Ê¤¤¥Û¥¹¥È¤«¤é¤Î¥á¡¼¥ë¤òµñÈݤ¹¤ë(2009-4-26 Äɵ­)

»²¹Íʸ¸¥

  1. ·ªÅÄÀµ¼ù, 2002, ¼ÂÁ©Postfix¥á¡¼¥ë¥µ¡¼¥Ð¹½ÃÛ, ¥½¡¼¥Æ¥Ã¥¯
    AMAZON
  2. http://bsfilter.org/
  3. ¤Ó¤ó¤¿»¨µ­¡§¼«Â𥵡¼¥Ð¥¢¡¼¥«¥¤¥Ö, http://hinta.dynalias.net/cat1/
  4. ¤Ï¤Æ¤Ê¡ÚPostfix OP25BÂкö¡Û, http://q.hatena.ne.jp/1169716507
  5. Postfix¤Ë¤è¤ëSMTP¥µ¡¼¥Ð¤Î¹½ÃÛ(SuSE9.0ÊÔ), ¥Ñ¥½¥³¥ó¤ª¤ä¤¸, http://www.aconus.com/~oyaji/suse/smtp-suse.htm
  6. SMTP¡ÊSimple Mail Transfer Protocol¡Ë¡Á¸åÊÔ, @IT, http://www.atmarkit.co.jp/fnetwork/rensai/netpro06/netpro01.html
  7. Postfix ÀßÄê¥Ñ¥é¥á¡¼¥¿,http://www.postfix-jp.info/trans-2.1/jhtml/postconf.5.html

Suse 10 Server


źÉÕ¥Õ¥¡¥¤¥ë: fileqpopper5.png 1262·ï [¾ÜºÙ] fileqpopper6.png 1334·ï [¾ÜºÙ] fileqpopper3.png 1265·ï [¾ÜºÙ] fileqpopper4.png 1154·ï [¾ÜºÙ] fileqpopper2.png 1183·ï [¾ÜºÙ] fileMail4.png 2417·ï [¾ÜºÙ] filebsfilter.png 2285·ï [¾ÜºÙ] filedovecot2.png 2171·ï [¾ÜºÙ] filedovecot3.png 2253·ï [¾ÜºÙ] filedovecot5.png 2469·ï [¾ÜºÙ] filedovecot6.png 2250·ï [¾ÜºÙ] fileMail3.png 2405·ï [¾ÜºÙ] filedovecot1.png 2415·ï [¾ÜºÙ] filedovecot4.png 2220·ï [¾ÜºÙ] fileqpopper1.png 1198·ï [¾ÜºÙ] fileMail2.png 2084·ï [¾ÜºÙ] fileMail5.png 2200·ï [¾ÜºÙ] fileMail1.png 2296·ï [¾ÜºÙ]

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS   sitemap
Last-modified: 2009-04-26 (Æü) 01:57:49 (5470d)
Short-URL: http://hondou.homedns.org/pukiwiki/index.php?cmd=s&k=04b57c9d86
ISBN10
ISBN13
9784061426061