New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

Postfix Mail Server commands

Started by Administrator, March 27, 2014, 10:12:09 PM

Previous topic - Next topic

Administrator

Some useful postfix commands
postqueue -p = mailq    //postqueue -p is the same as mailq

service postfix reload    //reload config
service postfix restart   //restart postfix server

postconf  mail_version      //View the postfix version
postconf -d     //Show default postfix values
postconf -n     //Show non default postfix values

mailq     //list mail queue and MAIL_ID's, list mail queue
postqueue -p //list mail queue and MAIL_ID's, list mail queue
postfix  flush   // flush mail queue
postqueue -f    //process the queue now
postcat -q MAIL_ID     //read email from mail queue

postsuper -d MAIL_ID       //To remove MAIL_ID mail from the queue
postsuper -d ALL       //To remove all mail from the queue
postsuper -d ALL deferred        //To remove all mails in the deferred queue

postqueue -p | awk '/^[0-9,A-F]/ {print $7}' | sort | uniq -c | sort -n           //sort and count emails by "from address"

postqueue -p | grep '^[A-Z0-9]'|grep user@adminlogs.info|cut -f1 -d' ' |tr -d \*|postsuper -d -          //removing all emails sent by: user@adminlogs.info

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

To delete all messages from the queue by a certain user:
for i in `postqueue -p | grep user@domain.com | awk '{print $1}' | grep -v host | grep -v \*`; do postsuper -d $i; done

postqueue -p | grep '^[A-Z0-9]'|grep @adminlogs.info|cut -f1 -d' ' |tr -d \*|postsuper -d -      //remove all email sent by domain adminlogs.info


postqueue -p | tail -n 1   //Mail queue stats short
postqueue -p | grep -c "^[A-Z0-9]"    //number of emails in Mail queue

tail -f /var/log/maillog    //watch logs live

indecorp

Where I can see the list email just to sent. I find in my WHM but I can not see. Help meee

groupkom

i'm having problem on Postfix.
When checking my smtp https://mxtoolbox.com/SuperTool.aspx?action=smtp i'm getting error on rDNS is not a valid hostname.
 
   SMTP Valid Hostname   Reverse DNS is not a valid Hostname    More Info
   SMTP Reverse DNS Mismatch   OK - 173.208.200.30 resolves to baloyiinc.com   
   SMTP Banner Check   OK - Reverse DNS matches SMTP Banner   
   SMTP TLS   OK - Supports TLS.   
   SMTP Connection Time   0.246 seconds - Good on Connection time   
   SMTP Open Relay   OK - Not an open relay.   
   SMTP Transaction Time   0.739 seconds - Good on Transaction Time

when checking postfix status i'm getting the following warning:

WARNING!
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2020-09-10 10:34:28 SAST; 3h 7min ago
  Process: 8447 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 8461 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 8459 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 8457 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
Main PID: 8528 (master)
   CGroup: /system.slice/postfix.service
           ├─ 8528 /usr/libexec/postfix/master -w
           ├─ 8530 qmgr -l -t fifo -u
           ├─ 8541 tlsmgr -l -t unix -u
           ├─10687 proxymap -t unix -u
           ├─10688 anvil -l -t unix -u
           ├─10696 trivial-rewrite -n rewrite -t unix -u
           └─28449 pickup -l -t fifo -u -o content_filter= -o receive_override_options=no_header_body_checks

Sep 10 13:39:44 baloyi.baloyiinc.com postfix/qmgr[8530]: 425228C73: removed
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/smtpd[10743]: connect from unknown[127.0.0.1]
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/smtpd[10743]: 48C518C70: client=unknown[127.0.0.1]
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/cleanup[10704]: 48C518C70: message-id=<017b01d68767$02e32470$08a96d50$@co.za>
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/qmgr[8530]: 48C518C70: from=, size=61453, nrcpt=1 (queue active)
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/smtpd[10743]: disconnect from unknown[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/smtp[10914]: E9DF18C67: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=7.4, delays=0.85/0.03/0.01/6.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 48C518C70)
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/qmgr[8530]: E9DF18C67: removed
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/pipe[10745]: 48C518C70: to=, relay=dovecot, delay=0.2, delays=0.08/0.01/0/0.11, dsn=2.0.0, status=sent (delivered via dovecot service)
Sep 10 13:39:47 baloyi.baloyiinc.com postfix/qmgr[8530]: 48C518C70: removed

but my hostname is valid you can even browse it at baloyi.baloyiinc.com.

Can you assist me how to fix this why smtp are saying "Reverse DNS is not a valid Hostname".

Thanks
Gabriel

cinique

#3
Why tag onto an existing thread that is nothing to do with your error?

Why do people find error messages so hard to comprehend? (rhetorical) Especially so, when the error is so clear in its' description.

QuoteSMTP Valid Hostname   Reverse DNS is not a valid Hostname   
   SMTP Reverse DNS Mismatch   OK - 173.208.200.30 resolves to baloyiinc.com   
That error is correct, as also shown here:
http://leafdns.com/index.cgi?testid=27074808



Summer will soon be over, along with the usual bunch of 'hosters'  ::)