| notes_001.txt - gopherhole - My gopherhole source code. | |
| git clone git://jay.scot/gopherhole | |
| Log | |
| Files | |
| Refs | |
| --- | |
| notes_001.txt (442B) | |
| --- | |
| 1 [jay.scot] | |
| 2 [openbsd] | |
| 3 | |
| 4 | |
| 5 cat > /etc/mail/smtpd.conf << EOF | |
| 6 table aliases file:/etc/mail/aliases | |
| 7 table secrets file:/etc/mail/secrets | |
| 8 listen on lo0 | |
| 9 | |
| 10 action "local" mbox alias <aliases> | |
| 11 action "relay" relay host smtp+tls://mailrelay@server:port auth <secrets> | |
| 12 | |
| 13 match for local action "local" | |
| 14 match for any action "relay" | |
| 15 EOF | |
| 16 | |
| 17 chmod 640 /etc/mail/secrets | |
| 18 chown root:_smtpd /etc/mail/secrets | |
| 19 echo "mailrelay username:password" > /etc/mail/secrets | |
| 20 |