Commit ed524520 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

No mail should be accepted for current hostname by default

parent f6ddbfc8
...@@ -50,7 +50,7 @@ all: sendmail-config mail-aliases sendmail-default sm-client-service sendmail-se ...@@ -50,7 +50,7 @@ all: sendmail-config mail-aliases sendmail-default sm-client-service sendmail-se
cd sendmail-8.16.1/doc/op && install -v -m644 op.ps /usr/share/doc/sendmail-8.16.1 cd sendmail-8.16.1/doc/op && install -v -m644 op.ps /usr/share/doc/sendmail-8.16.1
openssl req -new -x509 -nodes -out /etc/ssl/private/server.pem -keyout /etc/ssl/private/server.pem -days 3650 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" openssl req -new -x509 -nodes -out /etc/ssl/private/server.pem -keyout /etc/ssl/private/server.pem -days 3650 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost"
echo $$(hostname) > /etc/mail/local-host-names echo $$(hostname) > /etc/mail/local-host-names
touch /etc/mail/virtusertable echo "@$$(hostname) error:nouser No such user here" > /etc/mail/virtusertable
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable
@echo "$$MAIL_ALIASES" > /etc/mail/aliases @echo "$$MAIL_ALIASES" > /etc/mail/aliases
newaliases newaliases
......
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