#1 2014-11-15 14:41:53

Registered: 2014-11-15
Posts: 1

SMTP ports allowed or blocked?


I'm interested in ordering a VPS. I would host a couple of websites on it, some of which also include contact form. Contact form uses PHPMailer and Gmail SMTP server to send email (Recipient is always the same). I would like to know, if SMTP ports on VPS are blocked or not, so I can continue to use PHPMailer?

Best regards.

Last edited by grenivka123 (2014-11-15 14:42:44)


#2 2014-11-21 15:24:33

Trusted Member
Registered: 2014-07-27
Posts: 55

Re: SMTP ports allowed or blocked?

I can connect to Gmail from Dallas.

# telnet gmail-smtp-in.l.google.com. 25
Trying 2607:f8b0:4003:c05::1a...
Connected to gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP g9si3905824obi.7 - gsmtp


#3 2014-11-25 17:16:47

Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,970

Re: SMTP ports allowed or blocked?

Different locations have different filtering, I always say this is not the right service for mailing so I cant and wont promise anything, IPv6 based mail is fine though.

https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile


#4 2015-01-09 03:35:08

Trusted Member
Registered: 2015-01-06
Posts: 10

Re: SMTP ports allowed or blocked?

I can send mail okay -- presumably it goes out over IPv4 -- but I can't receive mail.

What am I missing?

Here's what I did:

1. I went to CloudFlare (which manages my DNS entries) and added an MX record pointing to the AAAA record.

2. Then I installed and configured Postfix:

sudo apt-get install postfix

sudo vi /etc/postfix/main.cf

# Added lines
inet_protocols = all
home_mailbox = Maildir/

sudo /etc/init.d/postfix reload

3. Install and configure Mutt:

sudo apt-get install mutt

sudo vi /etc/Muttrc

# Added lines
set folder="~/Maildir"
set mask="!^\\.[^.]"
set mbox="~/Maildir"
set record="+.Sent"
set postponed="+.Drafts"
set spoolfile="~/Maildir"

4. Open port 25 in the IPv6 firewall:

sudo ip6tables -A INPUT -p tcp --dport 25 -j ACCEPT
sudo dpkg-reconfigure iptables-persistent


#5 2015-01-09 03:55:26

Trusted Member
Registered: 2015-01-06
Posts: 10

Re: SMTP ports allowed or blocked?

Never mind ...

There was a typo in my MX record.



Board footer

Powered by FluxBB