Skip to content

Instantly share code, notes, and snippets.

@sirwolfgang
Created October 21, 2014 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirwolfgang/c2a649e70c5f2513d4ef to your computer and use it in GitHub Desktop.
Save sirwolfgang/c2a649e70c5f2513d4ef to your computer and use it in GitHub Desktop.
# /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
#!/usr/bin/env ruby
require 'cgi'
`curl -d "message=#{CGI.escape(STDIN.read)}" http://www.domain.com/mail_forwarder`
# /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