Loidhne-àithne cumanta Postfix: cuir post-d gus seirbheis cumail suas deasbaid ath-thòiseachadh ath-thòiseachadh

Seo am pannal smachd CWP: staitistig frithealaiche puist postfix agus grafaicheanYouTubeOideachadh Bhidio ▼

Stàlaich Pannal Smachd CWP, is urrainn dhut gu furasta inbhe staitistigeil an fhrithealaiche puist fhaicinn ann an cruth clàr-cearcaill ▼

Loidhne-àithne cumanta Postfix: cuir post-d gus seirbheis cumail suas deasbaid ath-thòiseachadh ath-thòiseachadh

loidhne-àithne cumanta postfix

Seo geàrr-chunntas de chuid de loidhnichean àithne postfix cumanta.

Dèan liosta de ciudha puist agus MAIÒrdugh L_ID ▼

postqueue -p

mailq

postqueue -p |tail

  • postqueue -pmailqTha an àithne mar an ceudna.

òrdugh tòiseachaidh postfix

Tòisich frithealaiche postfix ▼

 postfix:postfix start   

cuir stad air frithealaiche postfix ▼

 postfix:postfix

Ath-luchdaich rèiteachadh postfix ▼

service postfix reload

Ath-thòisich òrdugh seirbheis postfix

Ath-thòiseachadh frithealaiche postfix ▼

service postfix restart

Faic an tionndadh postfix ▼

postconf mail_version

Seall an luach postfix bunaiteach ▼

postconf -d

Seall luachan postfix neo-àbhaisteach ▼

postconf -n

Ùraich ciudha a’ phuist ▼

postfix flush

òrdugh debug postfix

Pròiseas an ciudha sa bhad ▼

postqueue -f

Pròiseas puist-d sam bith a tha steigte sa chiudha ▼

postsuper -r ALL && postqueue -f

Leugh post-d bho ciudha puist ▼

postcat -q MAIL_ID

Thoir air falbh teachdaireachd MAIL_ID on ciudha ▼

postsuper -d MAIL_ID

Thoir air falbh a h-uile brath bhon ciudha ▼

postsuper -d ALL

Thoir air falbh gu sgiobalta a h-uile càil bhon ciudha puist ▼

find /var/spool/postfix/deferred/ -type f | xargs -n1 basename | xargs -n1 postsuper -d

Sguab às a h-uile brath anns a’ chiudha dàil ▼

postsuper -d ALL deferred

òrdughan cumail suas postfix

Deasaich agus cunnt puist-d le "From Address" ▼

postqueue -p | awk '/^[0-9,A-F]/ {print $7}' | sort | uniq -c | sort -n

Sguab às a h-uile post-d a chaidh a chuir: mailto:[email protected]

postqueue -p|grep '^[A-Z0-9]'|grep user@ adminlogs. info|cut -f1 -d' '|tr -d \*|postsuper -d -

Sguab às a h-uile post-d a chaidh a chuir bho [email protected]

postqueue -p|awk '/^[0-9,A-F].*user@ admin.info / {print $1}'|cut -d '!' -f 1|postsuper -d -

Sguab às a h-uile post-d bhon àrainn adminlogs.info▼

postqueue -p | grep '^[A-Z0-9]'|grep @adminlogs. info|cut -f1 -d' ' |tr -d \*|postsuper -d -

Tha staitistig ciudha teachdaireachd goirid ▼

postqueue -p | tail -n 1

An àireamh de phuist-d ann an ciudha a’ phuist ▼

postqueue -p | grep -c "^[A-Z0-9]"

Cunntas luath post-d ann an ciudha a’ phuist ▼

find /var/spool/postfix/deferred -type f | wc -l

Seall loga puist ▼

tail -f /var/log/maillog

Cunnt agus rèitich logaichean soirbheachail pop3/imap ▼

grep "\-login" /var/log/dovecot-info.log |grep "登录:"|awk {'print $7'}|sort|uniq -c|sort -n

Cunnt agus rèitich logaichean postfix soirbheachail SMTP (airson lorg spammers) ▼

grep -i "sasl_username" /var/log/maillog |awk {'print $9'}|sort|uniq -c|sort -n

Cunnt agus rèitich logaichean postfix soirbheachail SMTP air an dearbh cheann-latha "6 Ògmhios" ▼

grep -i "sasl_username" /var/log/maillog |grep "Jun 18"|awk {'print $9'}|sort|uniq -c|sort -n

Dèan mion-sgrùdadh air logaichean postfix ▼

pflogsumm /var/log/maillog | less
  • Mura h-eil pflogsum agad faodaidh tu am pasgan rpm seo a stàladh"postfix-perl-scripts"

Tha oideachadh postfix ann cuideachd gus spam a sheachnadh ▼

An dòchas blog Chen Weiliang ( https://www.chenweiliang.com/ ) co-roinnte “Postfix Common Command Line: Cuir post-d gu Cuir an gnìomh Start, Restart, Debug and Maintenance Service”, a tha cuideachail dhut.

Fàilte gus ceangal an artaigil seo a cho-roinn:https://www.chenweiliang.com/cwl-27769.html

Fàilte don t-sianal Telegram de bhlog Chen Weiliang gus na h-ùrachaidhean as ùire fhaighinn!

🔔 Bi mar a’ chiad fhear a fhuair an “Stiùireadh Cleachdadh Inneal AI Margaidheachd Susbaint ChatGPT” luachmhor ann an eòlaire mullach an t-seanail! 🌟
📚 Tha luach mòr anns an stiùireadh seo, 🌟 Is e cothrom ainneamh a tha seo, na caill e! ⏰⌛💨
Roinn agus toil ma thogras tu!
Is e do roinneadh agus do rudan mar ar brosnachadh leantainneach!

 

发表 评论

Cha tèid do sheòladh puist-d fhoillseachadh. 必填 项 已 用 * Label

sgrolaich gu mullach