From LusoVPS
Jump to: navigation, search

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 "" because of redundancy.


To use a relay server on sendmail

vi /etc/mail/

Find the word "DS"


replace with


To use a relay server on postfix

vi /etc/postfix/

Find the word "relay ="

/relay\ =

replace with

relay = []

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 OUTPUT -p tcp --destination-port 25 -d -j ACCEPT

iptables -A OUTPUT -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, except when using our relay server. All the rest will be droped. This way, your VPS won't be flagged on our system.

SPF Record

To be able to deliver email correctly, please also set your SPF record to allow to deliver email. IN TXT "v=spf1 -all" IN SPF "v=spf1 -all"

Personal tools