Skip to content

Instantly share code, notes, and snippets.

@aweiteka
Created March 21, 2013 20:16
Show Gist options
  • Save aweiteka/5216312 to your computer and use it in GitHub Desktop.
Save aweiteka/5216312 to your computer and use it in GitHub Desktop.
basic mail server (MTA) to receive email from test infrastructure
#!/usr/bin/env bash
# setup inbound mail server for mail processing
# will forward mail for delivery
subscription-manager register --username=******@redhat.com --password=************** --autosubscribe
yum update -y
yum install -y postfix mutt
postconf -e "inet_interfaces = all"
postconf -e "mynetworks_style = class"
postconf -e "mynetworks = 10.0.0.0/8"
# if sendmail running, kill it
service postfix start && chkconfig postfix on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment