ISP Blocking Port 25

17 posts / 0 new
Last post
#1 Tue, 04/02/2013 - 20:12
PepinYaco

ISP Blocking Port 25

Can anyone please, help me get around this problem? My ISP blocks Port 25, so none of my contact forms, registration forms and sending mail in general works for me, I really dont care so much about receiving mail, all I want is to be able to send mail. And PLEASE go easy on me, Im a nooby lol.

What would be the easier way to accomplish this, or which program should I install that would allow me to send mail. Thx guys

Server OS: Ubuntu 10.4 - Virtualmin 3.99.gpl

You can use this website to test port 25: http://port25.icannotconnect.com/

Tue, 04/02/2013 - 22:31
andreychek

Howdy,

Well, that is a problem... if your ISP blocks port 25, that means you can't directly send or receive email from your server.

However, if all you're concerned about is sending email -- you could always configure your system to send email through your ISP.

To do that, go into Webmin -> Servers -> Postfix -> General Options, and there, you can set "Send outgoing mail via host" to the hostname or IP address of your ISP's mail relay server name.

-Eric

Wed, 04/03/2013 - 20:59
PepinYaco

I use Verizon FiOs and I found this, 'outgoing.verizon.net' would that be it?

Update I tried it and no luck, I did not change any other setting but selected " Deliver directly" and add outgoing.verizon.net then tried to send an email and no luck.

Wed, 04/03/2013 - 21:04
PepinYaco

I did try this a wile back and sending mail worked, but I was getting like a loop kind of email thing, In other words, server keep sending mail none stop.

- sudo apt-get install ssmtp
- Edit the ssmtp config file : gksu gedit /etc/ssmtp/ssmtp.conf

Enter this in the file:
root=username@gmail.com
mailhub=smtp.gmail.com:465
rewriteDomain=gmail.com
AuthUser=username
AuthPass=password
FromLineOverride=YES
UseTLS=YES

- Enter the email address of the person who will receive your email:

ssmtp me@gmail.com

Now enter this:
To: me@gmail.com
From: me.too@gmail.com
Subject: Sent from a terminal!
Here is a email send from the terminal using ssmtp, please let me know if you get it. Thx

To send the email: Ctrl + D

The problem with this is that installing SSMTP, removed some of the Postfix files and then the server just keep sending error mail like in a loop, every minute or so. Here is the email.
Cron /etc/webmin/virtual-server/collectinfo.pl
root
to root
Error: Failed to query Postfix config command to get the current value of parameter queue_directory: sh: /usr/sbin/postconf: not found
and I have no idea what that means.

Ill be as happy as a pigin @#$%^ if I can get this to work lol

Wed, 04/03/2013 - 22:15
andreychek

Howdy,

Well, it appears that the problem is that installing ssmtp actually removes Postfix altogether... and Virtualmin isn't expecting that :-)

Outside of the emails you're getting though, are things working the way you want?

If your system is otherwise working in the way you need, I can help stop those email notices you're getting.

-Eric

Sun, 04/07/2013 - 13:19
PepinYaco

I would have to try that again, that was something I did a while back, and I forgot how I installed Ppstfix server back, but I guest if I got Postfix back that time I should be able to revert in case thing do t work correctly.

I will try installing ssmtp as soon as I can and report back to you so that you can help me get rid if those unwanted emails. Thx Eric.

BTW I'm sure many ppl like me, has this problem with the ISP Blocking Port 25, could it be possible that in the near feature, Virtualmin can include an option like this one (sSMTP as an option) I'm gonna try or something that will allow u to use, for an example, gmail as ur smtp? Just a subjection.

Thx again Eric

Sun, 04/07/2013 - 13:16
PepinYaco

Before I do anything here, can you tell me how to add this records to my existing domain?

mail.bori.com IN CNAME 0 webmail.registrar-servers.com.
bori.com IN MX 10 mail1.registrar-servers.com.
bori.com IN TXT 0 v=spf1 include:registrar-servers.com ~all
bori.com IN MX 10 mail2.registrar-servers.com.

Fri, 04/05/2013 - 22:03
andreychek

Howdy,

You can add DNS records to your domain by going into Server Configuration -> Edit DNS Records.

You should be able to add/modify any of those records from within that screen.

-Eric

Sun, 04/07/2013 - 13:26
PepinYaco

OK Thx I think I got it lol

Update 1: Im getting this erroradding the records do the DNS Records:

Failed to save DNS records : Validation failed : The following errors were found in the DNS records : dns_rdata_fromtext: /var/lib/bind/bori.com.hosts:24: near 'webmail.registrar-servers.com.': extra input text
zone bori.com/IN: loading from master file /var/lib/bind/bori.com.hosts failed: extra input text
zone bori.com/IN: not loaded due to errors.

How to fix this?

Update 2: Installing sSMTP works great for sending mail, but when I run "Re-Check Configuration" I get:
The Postfix server does not appear to be installed on your system, or has not yet been set up properly in Webmin's Postfix Configuration module. If you are running a different mail server, select it on the module configuration page.

.. your system is not ready for use by Virtualmin.

And in my email i got this:

Anacron job 'cron.daily' on ns1.boricuavps.com (sent to root)
/etc/cron.daily/logrotate:
[Sun Apr 07 07:37:50 2013] [warn] NameVirtualHost 92.168.1.2:80 has no VirtualHosts
[Sun Apr 07 07:37:50 2013] [warn] NameVirtualHost 92.168.1.2:443 has no VirtualHosts
[Sun Apr 07 07:38:06 2013] [warn] NameVirtualHost 92.168.1.2:80 has no VirtualHosts
[Sun Apr 07 07:38:06 2013] [warn] NameVirtualHost 92.168.1.2:443 has no VirtualHosts
[Sun Apr 07 07:38:12 2013] [warn] NameVirtualHost 92.168.1.2:80 has no VirtualHosts
[Sun Apr 07 07:38:12 2013] [warn] NameVirtualHost 92.168.1.2:443 has no VirtualHosts

Mon, 04/15/2013 - 07:24
PepinYaco

Hi Eric, I'm still getting this message:

/etc/cron.daily/logrotate:
[Mon Apr 15 07:49:26 2013] [warn] NameVirtualHost 92.168.1.2:80 has no VirtualHosts
[Mon Apr 15 07:49:26 2013] [warn] NameVirtualHost 92.168.1.2:443 has no VirtualHosts

And I can't run the Check Configuration settings without getting the above error. Can you help please?

Mon, 04/15/2013 - 08:07
andreychek

Those warnings mean that you have a line that contains "NameVirtualHost 192.168.1.2" in your Apache config.

That likely means that your IP address changed at some point after that was added.

So you just need to look in the config files in /etc/apache2, and /etc/apache2/sites-enabled, and find any lines containing "NameVirtualHost 192.168.1.2" -- and then comment them out.

-Eric

Mon, 04/15/2013 - 17:58
PepinYaco

Thx Eric, I found it in the /etc/apache2 and notice that the "192.168.1.2" was actually missing the number one (92.168.1.2 [b]instead of[/b] 192.168.1.2) so i fixed that and will wait to see if I get that warning message again, if i dont i guest is safe to leave it as is.

NOW I still two other problems:

1) I added the following records to the DSN Record, so its added to new domains, and it seems ok.

mail.bori.com IN CNAME 0 webmail.registrar-servers.com.
bori.com IN MX 10 mail1.registrar-servers.com.
bori.com IN TXT 0 v=spf1 include:registrar-servers.com ~all
bori.com IN MX 10 mail2.registrar-servers.com.

But trying to add them to an existing domain I get this error message:

Failed to save DNS records : Validation failed : The following errors were found in the DNS records : dns_rdata_fromtext: /var/lib/bind/bori.com.hosts:24: near 'webmail.registrar-servers.com.': extra input text
zone bori.com/IN: loading from master file /var/lib/bind/bori.com.hosts failed: extra input text
zone bori.com/IN: not loaded due to errors.

I would think that since im using sSMTP I dont really need do add those records BUT, I will like to add them the correct way in case I can later use Postfix.

2) Installing sSMTP works great for sending mail, but when I run "Re-Check Configuration" I get:
The Postfix server does not appear to be installed on your system, or has not yet been set up properly in Webmin's Postfix Configuration module. If you are running a different mail server, select it on the module configuration page.
.. your system is not ready for use by Virtualmin.

Do I have to unistall Postfix completely in order to get rid of this problem?

Wed, 04/17/2013 - 09:29
andreychek

Howdy,

If you disable the Mail for Domain feature, I believe that will prevent some of those mail related DNS records from being added.

However, in your case, it sounds like the webmail record is what's causing the problem.

If you're still seeing an issue with that, could you paste in the contents of the file "/var/lib/bind/bori.com.hosts"?

Regarding the Postfix error you're seeing in Re-Check Config -- you may want to disable the Mail for Domain feature, as Virtualmin doesn't know anything about ssmp. You can do that by going into System Settings -> Features and Plugins, and in there you can disable Mail for Domain.

-Eric

Wed, 04/17/2013 - 15:51
PepinYaco

Trying to disable Mail do Domain gave me this error:

Failed to save enabled features: The feature Mail for domain cannot be disabled, as it is used by the following virtual servers : bori.com

Thx Eric for ur help

Wed, 04/17/2013 - 16:00
andreychek

Howdy,

That means you need to go into Edit Virtual Server -> Enabled Features for that domain, and disable the Mail for Domain feature for that specific domain.

Once you do that for domains using email, you'll then be able to disable it in the Features and Plugins section.

-Eric

Wed, 04/17/2013 - 16:17
PepinYaco

Here is whats on my bori.com.host

$ttl 38400
@   IN  SOA my.domain.com. root.my.domain.com. (
            1357179662
            10800
            3600
            604800
            38400 )
@   IN  NS  ns1.domain.com.
@   IN  NS  ns2.domain.com.
@   IN  NS  ns3.domain.com.
boricuavps.com.         IN  A   xxx.xxx.xxx.xxx.
www.my.domain.com.  IN  A   xxx.xxx.xxx.xxx
ftp.my.domain.com.          IN  A   xxx.xxx.xxx.xxx
m.my.domain.com.            IN  A   xxx.xxx.xxx.xxx
ns1.my.domain.com.          IN  A   xxx.xxx.xxx.xxx
ns2.my.domain.com.      IN  A   xxx.xxx.xxx.xxx
ns3.my.domain.com.      IN  A   xxx.xxx.xxx.xxx
localhost.my.domain.com.    IN  A   127.0.0.1
webmail.my.domain.com.  IN  A   xxx.xxx.xxx.xxx
admin.my.domain.com.    IN  A   xxx.xxx.xxx.xxx
mail.my.domain.com. IN  A   xxx.xxx.xxx.xxx
my.domain.com.          IN  MX  5 mail.my.domain.com.
my.domain.com.          IN  TXT "v=spf1 a mx a:my.domain.com ip4:192.168.1.2 ip4:xxx.xxx.xxx.xxx ?all"
autoconfig.my.domain.com.   IN  A   xxx.xxx.xxx.xxx
Wed, 04/17/2013 - 20:36
PepinYaco

OK so I had to disable all this in other to be able to disable "Mail for Domain".

Mail for domain - The mail server will no longer accept email for this domain.
Spam filtering - The SpamAssassin configuration for this virtual server will be deleted.
Virus filtering - The Procmail entry to filter viruses for this virtual server will be removed.
Mailman - Mailman mailing lists will be disabled for the domain

and then went to System Settings -> Features and Plugins, and was able to disable Mail for Domain.

is this right? and did you find anything on that log i posted above?

Topic locked