mails are not going out of linux server
echo "test"|mailx "test" vaddicloud@gmail.com
verified maillog
vi /var/log/maillog
error: sendmail[1785257]: 2ASIU1Gw1785257: to=root, ctladdr=root (0/0), delay=00:00:0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
mailq ===> showing some mails in queue
whether server is using mailx or postfix commands to send emails
root@xxxx1 ~]# systemctl restart mailx
Failed to restart mailx.service: Unit mailx.service not found.
mailx service is not enabled in the server
Fix: server is using postfix to send emails
systemctl restart postfix
Comments
Post a Comment