Relay
m |
|||
Line 57: | Line 57: | ||
''example.com. IN TXT "v=spf1 include:relay.lusovps.com -all"'' | ''example.com. IN TXT "v=spf1 include:relay.lusovps.com -all"'' | ||
+ | |||
+ | ''example.com. IN SPF "v=spf1 include:relay.lusovps.com -all"'' |
Latest revision as of 03:48, 26 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 OUTPUT -p tcp --destination-port 25 -d relay.lusovps.com -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 relay.lusovps.com to deliver email.
example.com. IN TXT "v=spf1 include:relay.lusovps.com -all"
example.com. IN SPF "v=spf1 include:relay.lusovps.com -all"