S
S
Shane Matte2016-04-05 08:54:26
PHP
Shane Matte, 2016-04-05 08:54:26

How to setup sendmail on vps?

Good morning!! Mail not sent, error. How to setup?
here are the logs

Apr  4 23:20:01 deb1 /USR/SBIN/CRON[13611]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Apr  4 23:39:01 deb1 /USR/SBIN/CRON[13710]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Apr  4 23:40:01 deb1 /USR/SBIN/CRON[13728]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Apr  5 00:00:01 deb1 /USR/SBIN/CRON[13864]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Apr  5 00:09:01 deb1 /USR/SBIN/CRON[13929]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Apr  5 00:17:01 deb1 /USR/SBIN/CRON[14019]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr  5 00:20:01 deb1 /USR/SBIN/CRON[14050]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Apr  5 00:39:01 deb1 /USR/SBIN/CRON[14107]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Apr  5 00:40:01 deb1 /USR/SBIN/CRON[14119]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Apr  5 01:00:01 deb1 /USR/SBIN/CRON[14158]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Apr  5 01:09:01 deb1 /USR/SBIN/CRON[14248]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Apr  5 01:17:01 deb1 /USR/SBIN/CRON[14330]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr  5 01:20:01 deb1 /USR/SBIN/CRON[14362]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Apr  5 01:39:01 deb1 /USR/SBIN/CRON[14474]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Apr  5 01:40:01 deb1 /USR/SBIN/CRON[14489]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton B, 2016-04-05
@bigton

So it's not like errors, but just logs of execution of commands by cron.

A
Alexey Yamschikov, 2016-04-05
@mobilesfinks

do you have mail in /etc/aliases for root?
If you need mail sent for root to come to your mailbox, then you need to add something like
root to aliases: [email protected]
then run the
newaliases command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question