yum install sendmail sendmail-cf apt-get install sendmail sendmail-cf hostname -f >> /etc/mail/local-host-names ping $(hostname -f) AuthInfo:smtp.haskimail.ru "U:APItoken" "P:APItoken" "M:PLAIN" echo "AuthInfo:smtp.haskimail.ru \"U:APItoken\" \"P:APItoken\" \"M:PLAIN\"" >> /etc/mail/access define('SMART_HOST', 'smtp.haskimail.ru')dnl
FEATURE('access_db')dnl
define('RELAY_MAILER_ARGS', 'TCP $h 25')dnl
define('ESMTP_MAILER_ARGS', 'TCP $h 25')dnl cd /etc/mail ; m4 sendmail.mc >sendmail.cf ; makemap hash access <access /etc/init.d/sendmail restart echo "testing" > testing.txt ; mail -s "testing" your@email.com < testing.txt ; rm testing.txt /var/log/maillog