Commit fc47a129 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Configured SMTP AUTH

parent fe1b4312
...@@ -51,6 +51,8 @@ all: sendmail-config mail-aliases sendmail-default sm-client-service sendmail-se ...@@ -51,6 +51,8 @@ all: sendmail-config mail-aliases sendmail-default sm-client-service sendmail-se
echo $$(hostname) > /etc/mail/local-host-names echo $$(hostname) > /etc/mail/local-host-names
@echo "$$MAIL_ALIASES" > /etc/mail/aliases @echo "$$MAIL_ALIASES" > /etc/mail/aliases
newaliases newaliases
install -v -Dm644 sendmail.mc /etc/mail
cd /etc/mail && m4 m4/cf.m4 sendmail.mc > sendmail.cf
@echo "$$SENDMAIL_DEFAULT" > /etc/default/sendmail @echo "$$SENDMAIL_DEFAULT" > /etc/default/sendmail
@echo "$$SM_CLIENT_SERVICE" > /lib/systemd/system/sm-client.service @echo "$$SM_CLIENT_SERVICE" > /lib/systemd/system/sm-client.service
systemctl enable sm-client.service systemctl enable sm-client.service
......
VERSIONID(`Cyrus IMAP, SASL and STARTTLS for Certo appliance')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
dnl ----------------------------------------------------------------------------
dnl Ensure that local users' addresses have a domain.
dnl ----------------------------------------------------------------------------
define(`always_add_domain')dnl
dnl ----------------------------------------------------------------------------
dnl Authentication (SMTP AUTH).
dnl A is a workaround for broken MTAs that do not implement RFC 2554.
dnl The p option tells sendmail: "don't permit mechanisms susceptible to simple
dnl passive attack (e.g., LOGIN, PLAIN), unless a security layer (think TLS
dnl tunnel) is active."
dnl The y option prohibits anonymous logins.
dnl ----------------------------------------------------------------------------
define(`confAUTH_OPTIONS', `A p y')dnl
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 PLAIN')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 PLAIN')dnl
dnl ----------------------------------------------------------------------------
dnl Privacy.
dnl ----------------------------------------------------------------------------
define(`confPRIVACY_FLAGS', `goaway')dnl
MAILER(local)dnl
MAILER(smtp)dnl
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment