This file contains hidden or 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
| # Don't reveal the OS in the banner. | |
| smtpd_banner = $myhostname ESMTP $mail_name | |
| biff = no | |
| # appending .domain is the MUA's job. | |
| append_dot_mydomain = no | |
| # Send "delivery delayed" emails after 4 hours. | |
| delay_warning_time = 4h |
This file contains hidden or 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
| newaliases | |
| echo 'postmaster postmaster@xeriom.net' >> /etc/postfix/virtual | |
| echo 'abuse abuse@xeriom.net' >> /etc/postfix/virtual | |
| echo 'root root@xeriom.net' >> /etc/postfix/virtual | |
| postmap /etc/postfix/virtual |
This file contains hidden or 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
| sudo /etc/init.d/postfix restart |
This file contains hidden or 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
| sudo iptables -I INPUT 4 -p tcp --dport smtp -j ACCEPT | |
| sudo sh -c "iptables-save -c > /etc/iptables.rules" |
This file contains hidden or 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
| dig MX emailmyfeeds.com +short | |
| 0 emailmyfeeds.com. | |
| 10 mx1.xeriom.net. | |
| 10 mx2.xeriom.net. | |
| dig emailmyfeeds.com +short | |
| 193.219.108.60 |
This file contains hidden or 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
| telnet mx1.xeriom.net smtp | |
| Trying 193.219.108.242... | |
| Connected to 193.219.108.242. | |
| Escape character is '^]'. | |
| 220 mx1.xeriom.net ESMTP Postfix | |
| EHLO my-computer | |
| 250-mx1.xeriom.net | |
| 250-PIPELINING | |
| 250-SIZE 10240000 | |
| 250-VRFY |
This file contains hidden or 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
| sudo iptables -I INPUT 3 -p tcp --dport http -j ACCEPT | |
| sudo sh -c "iptables-save -c > /etc/iptables.rules" |
This file contains hidden or 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
| sudo apt-get install apache2 --yes |
This file contains hidden or 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
| sudo iptables -L | |
| Chain INPUT (policy ACCEPT) | |
| target prot opt source destination | |
| ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED | |
| ACCEPT tcp -- anywhere anywhere tcp dpt:ssh | |
| ACCEPT tcp -- anywhere anywhere tcp dpt:www | |
| DROP all -- anywhere anywhere | |
| Chain FORWARD (policy ACCEPT) | |
| target prot opt source destination |
This file contains hidden or 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
| sudo apt-get install heartbeat |