Your cloud server uses Postfix to deliver mail. When PHP sends mail, it actually hands the email off to Postfix, which does the actual delivery of the mail.
To see the status of emails being sent by your PHP apps, such as WordPress, you can look in the global Postfix mail log.
To view the Postfix log file, SSH or SFTP into your server as root and open this file:
If that log file is empty, you might instead find the Postfix log messages in:
Also, note that these log files are regularly rotated, so for older log entries, you may need to look in files such as:
For each email sent, multiple lines will appear in the log file, such as:
Feb 19 03:55:32 ip-10-161-74-52 postfix/pickup: BE78A40083: uid=1001 from= Feb 19 03:55:32 ip-10-161-74-52 postfix/cleanup: BE78A40083: message-id= Feb 19 03:55:32 ip-10-161-74-52 postfix/qmgr: BE78A40083: from=, size=300, nrcpt=1 (queue active) Feb 19 03:55:32 ip-10-161-74-52 postfix/smtp: connect to ASPMX.L.GOOGLE.com[2607:f8b0:400e:c03::1a]:25: Network is unreachable Feb 19 03:55:33 ip-10-161-74-52 postfix/smtp: BE78A40083: to=, relay=ASPMX.L.GOOGLE.com[18.104.22.168]:25, delay=0.7, delays=0.03/0/0.11/0.56, dsn=2.0.0, status=sen t (250 2.0.0 OK 1392782133 gx4si20423908pbc.51 - gsmtp) Feb 19 03:55:33 ip-10-161-74-52 postfix/qmgr: BE78A40083: removed
Your log will look different for each email. In the particular example above, Postfix tried to connect to Gmail’s SMTP servers using IPv6, failed, and then succeeded with IPv4. The email was successfully sent and removed from the local mail queue.
Welcome to the world of DomainRooster, where roosters (and hens) rule the roost! We're a one-stop shop for all your entrepreneurial needs, bringing together domain names and website hosting, and all the tools you need to bring your ideas to life. With our help, you'll soar to new heights and hatch great success. Think of us as your trusty sidekick, always there to lend a wing and help you navigate the sometimes-complex world of domain names and web hosting. Our team of roosters are experts in their fields and are always on hand to answer any questions and provide guidance. So why wait? Sign up today and join the ranks of the world's greatest entrepreneurs. With DomainRooster, the sky's the limit! And remember, as the saying goes, "Successful people do what unsuccessful people are not willing to do." So don't be afraid to take that leap of faith - DomainRooster is here to help you reach for the stars. Caw on!