Skip to main content

How to deleted postfix large queue,If happen spam attack

find the spaming domain and delete

postqueue -p -c /etc/postfix |grep -i | cut -d ' ' -f 1 > /tmp/cleanoutqueue.sh

cat /tmp/cleanoutqueue.sh |awk '{print "sudo postsuper -c /etc/postfix/ -d " $1}'> /tmp/cleanoutgo1.sh

chmod +x /tmp/cleanoutgo1.sh

sh /tmp/cleanoutgo1.sh

Comments

Popular posts from this blog

fatal: scan_dir_push: open directory defer: Permission denied

problem:- Nov 7 18:24:18 linuxxf postfix-archive/postsuper[20555]: fatal: scan_dir_push: open directory defer: Permission denied Nov 7 18:24:19 linuxxf postfix-archive/postfix-script: fatal: Postfix integrity check failed! Nov 7 18:28:26 linuxxf postfix-archive/postsuper[21162]: fatal: scan_dir_push: open directory defer: Permission denied Nov 7 18:29:57 linuxxf postfix-archive/postsuper[21334]: fatal: scan_dir_push: open directory defer: Permission denied soloution:- To correct queues that were created outside of Postfix: postfix -c /etc/postfix-archive set-permissions
Greetings! We are excited to share with you our latest newsletter on building a resilient SAAS infrastructure with confidence. At Groots, we understand the importance of having a robust SAAS infrastructure that delivers to your expectations and requirements. To achieve this, we have identified key capabilities that your SAAS infrastructure should possess. First and foremost, your infrastructure should have the ability to prevent emergencies such as breakdowns, security breaches, cost overruns, and even attrition. This ensures that your systems are available and secure at all times, delivering business value at the lowest price point. Additionally, your SAAS infrastructure should improve efficiencies by being dependable and productive. Operational excellence, performance efficiency, reliability, and billability are all crucial in ensuring that your infrastructure runs workloads effectively, maintains computing resources efficiently, and tracks and bills application usage. Moreover, your...

DKIM Secure mail flow

#yum install *dkim -y #yum install libopendkim-devel #grep opendkim /etc/passwd /etc/shadow /etc/group Output:- /etc/passwd:opendkim:x:498:498:OpenDKIM Milter:/var/run/opendkim:/sbin/nologin /etc/shadow:opendkim:!!:17410:::::: /etc/group:mail:x:12:mail,postfix,opendkim /etc/group:opendkim:x:498: #ls -l /etc/opendkim /var/run/opendkim/ Output:- drwxr-x--- 2 opendkim opendkim 4096 Dec 21  2016 keys -rw-r----- 1 opendkim opendkim  339 Dec 21  2016 KeyTable -rw-r----- 1 opendkim opendkim 1221 Dec 21  2016 SigningTable -rw-r----- 1 opendkim opendkim  378 Dec 21  2016 TrustedHosts ##generate Key for Singning # mkdir /etc/opendkim/keys/test.org #cd /etc/opendkim/keys/test.org #opendkim-genkey -d test.org -s groots #chmod 640 groots.private ##Create Key Table file vi /etc/opendkim/KeyTable groots._domainkey.test.org test.org:groots:/etc/opendkim/keys/test.org/groots.private ##Create Singning Table file cat /etc/opendkim/SigningTable ...