Skip to content

Instantly share code, notes, and snippets.

Alexander B beliys

Block or report user

Report or block beliys

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@beliys
beliys / sendmail-fix.sh
Created Oct 11, 2017 — forked from dhensby/sendmail-fix.sh
Stop sendmail delivering to localhost when email domain matches hostname, stop sendmail intercepting emails to info@ and others - CentOS, RHEL, Fedora
View sendmail-fix.sh
#!/bin/bash
##
##
## This scipt was inspired by http://serverfault.com/questions/65365/disable-local-delivery-in-sendmail/128450#128450
## It stops webservers sending mail that is addressed to the local hostname to localhost and instead looks remotely for a mail server
##
##
# Install sendmail-cf as this is required to customise the config
You can’t perform that action at this time.