Friday, April 8, 2016

OMD ssmtp - extremely simple MTA to get mail off the system to a mail hub

ssmtp - extremely simple MTA to get mail off the system to a mail hub

527 apt-cache search ssmtp
528 apt-get install ssmtp
529 apt-get autoclean
530 ls -alt
531 ifconfig
532 cd ssmtp/
533 ls
534 ls -alt
535 ls -alt
536 dpkg -l|grep exim
537 apt-get autoclean
538 apt-get autoremove
539 apt-get clean all
540 dpkg -l|grep exim
541 apt-get purge exim4*
542 ls -alt
543 dpkg -l|grep exim
544 ls -alt
545 cp ssmtp.conf ssmtp.conf.orig
546 vi ssmtp.conf
547 ls -alt
548 cat revaliases
549 hostname -a
550 hostname -A
551 hostname
552 vi ssmtp.conf
553 ls /usr/sbin/sendmail
554 ls -alt /usr/sbin/sendmail
555 vi ssmtp.conf
556 apt-get search mailx
557 apt-cache search mailx
558 apt-get install bsd-mailx
559 mail -s "OMD test email 7" -S from=support@bitparktech.com lambert@bitparktech.com
560 mail -s "OMD test email 7" lambert@bitparktech.com
561 ls -alt
562 cat ssmtp.conf
563 history
root@monitor:/etc/ssmtp# cat ssmtp.conf
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
UseTLS=YES
UseSTARTTLS=Yes
mailhub=smtp.gmail.com:587
AuthUser=support@bitparktech.com
AuthPass=ipseAJQ25BzU9byDb4c6
AuthMethod=LOGIN

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=monitor.bitparktech.com

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

Reference:
https://wiki.debian.org/sSMTP
http://www.debiantutorials.com/installing-ssmtp-mta-mail-transfer-agent/

No comments:

Post a Comment