Created
October 21, 2014 22:30
-
-
Save sirwolfgang/c2a649e70c5f2513d4ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/postfix/main.cf | |
myhostname = mail.domain.com | |
mydomain = domain.com | |
myorigin = $mydomain | |
inet_interfaces = all | |
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain | |
mynetworks = 192.168.0.0/24, 127.0.0.0/8 | |
relay_domains = | |
virtual_alias_domains = domain.com | |
virtual_alias_maps = hash:/etc/postfix/virtual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'cgi' | |
`curl -d "message=#{CGI.escape(STDIN.read)}" http://www.domain.com/mail_forwarder` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/postfix/virtual | |
@domain.com rails_mailer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment