Mozekoze

Mozekoze

Wow, a blog..How original

Mozekoze RSS Feed
 
 
 
 

Posts tagged smtp

Telnet SMTP syntax

I thought this was pretty handy, originally from here
This is gonna be like a small info bulletin on how attachments are sent.

This work is copyright � 2000 Philip S Tellis
This work is licensed under a Creative Commons License:

http://creativecommons.org/licenses/by-nc-sa/2.0/

When you send mail using the SMTP protocol, you basically have only the
following commands:

HELO [...]

Rate-limit SMTP in iptables

Saw this in the Postfix mailing-list, I like it:
iptables -I OUTPUT -d \! “192.168.1.0/24” -p tcp –dport 25 -j DROP
iptables -I OUTPUT -d \! “192.168.1.0/24” -p tcp –dport 25 -m limit –limit 240/sec -j ACCEPT
iptables -I OUTPUT -d     “127.0.0.1/24” -p tcp –dport 25 -j ACCEPT
Explanation:
“(Rules are “in reverse order” since they are inserted.)
This [...]

Postfix on port 587 (submission)

How to make PostFix listen on port 587:
http://rackerhacker.com/2007/07/04/enable-submission-port-587-in-postfix/
Only allow some users to use port 587 for SMTP:
add -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject to the smtpd 587 command line in master.cf