Relay
Line 35: | Line 35: | ||
relay = relay.lusovps.com | relay = relay.lusovps.com | ||
+ | |||
+ | |||
+ | '''I'm using the service as a VPN. These rules cannot apply because I can't control my users''' | ||
+ | |||
+ | True. But you can control your data flow. | ||
+ | |||
+ | Add this to your firewall: | ||
+ | |||
+ | iptables -A OUTPU -p tcp -m state --state NEW -m recent --set | ||
+ | iptables -A OUTPUT -p tcp -m state --state NEW --destination-port 25 -m recent --update --seconds 60 --hitcount 3 -j DROP | ||
+ | |||
+ | This means that all the connections made from your VPS to the internet will be throttled to 3/minute. All the rest will be droped. This way, your VPS won't be flagged on our system. |
Revision as of 14:04, 25 February 2012
Due to abuse on our network to send spam, since 25-02-2012 we do not allow the direct email sending through our servers. This means that to be able to send emails, you'll need to setup a relay server.
To use the relay server, you don't have to place a username or password. The server is protected by IP address.
Always use "relay.lusovps.com" because of redundancy.
Sendmail
To use a relay server on sendmail
vi /etc/mail/sendmail.cf
Find the word "DS"
/DS
replace with
DSrelay.lusovps.com
PostFix
To use a relay server on postfix
vi /etc/postfix/main.cf
Find the word "relay ="
/relay\ =
replace with
relay = relay.lusovps.com
I'm using the service as a VPN. These rules cannot apply because I can't control my users
True. But you can control your data flow.
Add this to your firewall:
iptables -A OUTPU -p tcp -m state --state NEW -m recent --set iptables -A OUTPUT -p tcp -m state --state NEW --destination-port 25 -m recent --update --seconds 60 --hitcount 3 -j DROP
This means that all the connections made from your VPS to the internet will be throttled to 3/minute. All the rest will be droped. This way, your VPS won't be flagged on our system.