# yum groupremove "Mail Server"
# yum install postfix cyrus-imapd cyrus-sasl
大まかな編集箇所
postfix/smtp[30152]: certificate verification failed for smtp.gmail.com: num=21:unable to verify the first certificate relay=smtp.gmail.com[----]:587, delay=2.8, delays=0.24/0.49/1.8/0.19, dsn=5.5.1, status=bounced (host smtp.gmail.com[----] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 16sm2023148gxk.11 (in reply to MAIL FROM command))
relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_tls_security_options = noanonymous smtp_sasl_mechanism_filter = plain smtp_sasl_security_options = smtp_tls_CApath = /etc/pki/tls/certs/ca-bundle.crt
[smtp.gmail.com]:587 --------@gmail.com:password gmailアカウントとパスワードを生で記述します ((仕組み詳細を後で調べる))
# postmap /etc/postfix/sasl_passwd
relayhost = [smtp.example.com]:25 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp.example.com ユーザー:パスワード プロバイダメールアカウントユーザとパスワードを生で記述します
# /etc/init.d/postfix reload
# useradd mailuser
# passwd cyrus cyrusユーザのパスワードを設定 # cyradm --user cyrus localhost IMAP Password: 上で設定したcyrusユーザのパスワードを入力 tora> cm user.mailuser mailuserのメールボックスを作成
SQUAT failed to open index file SQUAT failed
EVENTS {の中に下記を追加記述します
squatter cmd="squatter -r" at=0200
http://www.criterion.sc/sub_notes/Postfix_Security.html
Tweet