G
G
Gleb Zhukov2016-11-09 10:55:06
linux
Gleb Zhukov, 2016-11-09 10:55:06

Why is sendmail not working?

In general, I already despaired, I have been fighting for a week, reading all sorts of manuals. Unable to configure sendmail. Then I installed it
apt-get install sendmail
in /etc/hosts and added my domain (gotlib.info) and executed
sendmailconfig
in php.ini I
sendmail_path /usr/sbin/sendmail -t -i
tried to configure the relay (as it is written here ), also unsuccessfully, I don’t know what to do next
Please help. Also, tell me a way to check the sending of mail, from the console, not through php.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Valle, 2016-11-09
@v1pby

Check
# echo "Message body" | mail -s "Subject" [email protected]
See what's in the logs (/var/log/....)

A
Arman, 2016-11-09
@Arik

What do the logs say? Why sendmail? can postfix be easier to deliver?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question