Skip to main content

Stop Processing Mail Queue

Comments

2 comments

  • postcd
    >You can block the SMTP port Wouldn't this cause queued emails be removed from queue because of some "internal" failure? When i do: netstat -penta|grep exim I see exim listen at 25,465,587 I read that "SMTP generally uses port 25 for connections, port 587 is actually the preferred port for outbound SMTP traffic" iptables -L INPUT|egrep "smtp|25|465|587" ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp Im also using csf firewall which has seemingly related command: csf -td, --tempdeny ip ttl [-p port] [-d direction] [comment] Add an IP to the temp IP ban list. ttl is how long to blocks for (default:seconds, can use one suffix of h/m/d). Optional port. Optional direction of block can be one of: in, out or inout (default:in) ( csf -td 127.0.0.1 86400 -p 587 -d out ??) Please which command do you suggest me to execute in my bash script to stop mail queue processing or simply prevent sending out e-mails in queue? Thx Example reject command iptables -A OUTPUT -p tcp --dport 25 -j REJECT iptables-save but unsure how to undo it and if its safe in ip table
    0
  • cPanelMichael
    Hello, I believe you may find the following third-party plugin helpful: ConfigServer Mail Queues Also, feel free to vote and add your feedback to the following feature request if you want to see this type of functionality in the product: Email Queue Threshold Notification Thank you.
    0

Please sign in to leave a comment.