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
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.
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.
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
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 root@ns1 /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
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.
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
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.
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 instead of 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:
I added the following records to the DSN Record, so its added to new domains, and it seems ok.
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.
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?
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.
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.
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?