2020.06 更新 ,刪除佇列中的信改以postsuper指令
刪除佇列中的信
postsuper -d ALL
只刪除deferred的信件
postsuper -d ALL deferred
移除特定信件
postqueue -p | grep "email@example.com"
123456789AB 999 Sun Jan 12:00:00 email@example.com
使用Queue ID來刪除信件
postsuper -d 123456789AB
查看佇列
postqueue -q(or mailq)
強迫寄出
postqueue -f
刪除佇列中的信
postqueue -d ALL
刪除queue_id 那封信
postqueue -d queue_id
2011年6月27日
postfix+dovecot+sasl建置設定筆記
apt-get install postfix,libsasl2-2,libsasl2-modules,sasl2-bin,dovecot-common,dovecot-imapd,dovecot-pop3d
修改/etc/postfix/main.cf
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
修改/etc/postfix/master.cf
取消chroot
建立/etc/postfix/sasl/smtpd.conf
log_level:3
pwcheck_method:saslautd
mech_list:PLAIN LOGIN
修改/etc/default/saslauthd
START = yes
MECHANISMS = shadow
修改/etc/dovecot/dovecot.conf
protocols = imap pop3
listen = *
disable_plaintext_auth = no
mail_location = maildir:/home/%u/Maildir
修改目錄權限/var/run/saslauthd為755 已無法正常運作
把postfix加入sasl群組來解決這個問題
修改/etc/postfix/main.cf
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
修改/etc/postfix/master.cf
取消chroot
建立/etc/postfix/sasl/smtpd.conf
log_level:3
pwcheck_method:saslautd
mech_list:PLAIN LOGIN
修改/etc/default/saslauthd
START = yes
MECHANISMS = shadow
修改/etc/dovecot/dovecot.conf
protocols = imap pop3
listen = *
disable_plaintext_auth = no
mail_location = maildir:/home/%u/Maildir
修改目錄權限/var/run/saslauthd為755 已無法正常運作
把postfix加入sasl群組來解決這個問題
訂閱:
文章 (Atom)