Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

smtp

Got problems with your B2 or B3? Share and get helped!
Post Reply
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

smtp

Post by pcrene »

Hello Experts,

Stupid but true... we have bought some cell-phones with web-access. But the provider does not have an SMTP-server online !!!!! (or they wont let us use it). How can i get acces to the SMTP-server of bubb-2 from out-side the lokal envirionment. Can i enable a password on the SMTP?

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: smtp

Post by RandomUsername »

Not sure about the password but can you not just put in your Bubba's DNS address or public IP address as the smptp server?
The problem I had with this is that my ISP and mobile phone company block port 25 traffic except to their own SMTP server. I hope you don't have that problem though given your provider claims not to have one.
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: smtp

Post by pcrene »

Hello


Does not work, when i am not on the internal network the smtp connection is refused...

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: smtp

Post by RandomUsername »

Have you opened all the right ports in the web interface?
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: smtp

Post by pcrene »

Hello

Yes all ports are set ok in the router i have..

If the smtp server of the B2 was open every hacker could send its emails through me.to the hole world.

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: smtp

Post by RandomUsername »

Yes, but if the ports are closed then no one will be able to - including you. I meant are the ports open on the Bubba's interface, not your router.
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: smtp

Post by pcrene »

Hello

I have only one network connector active so B2 is a standard server in the network.
So no portforwarding should be needed in B2 if i am right..

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: smtp

Post by RandomUsername »

Oh, I see. That puts a different spin on things.
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: smtp

Post by pcrene »

Hello,

Sorry i was'not that clear to you....
So thats why i like a loging on the smtp server of the B2

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: smtp

Post by RandomUsername »

Strange, I just received a reply notification to this thread but no one's posted since 29th June.

While I'm here, did you ever get this sorted?
Binkem
Posts: 388
Joined: 10 Jul 2008, 02:26

Re: smtp

Post by Binkem »

There was a reply, but I removed it cause it was spam
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: smtp

Post by Cheeseboy »

Hi,

I don't know know if this applies to your situation, but it is very common and what I faced when trying to set up my own email server and trying to reach it from outside.

Your ISP will most likely not allow incoming OR outgoing traffic on port 25.
To be able to send email I had to add a line in /etc/postfix/main.cf pointing to my ISPs SMTP server:

Code: Select all

relayhost = smtp.isp.com
This works just fine as long as I'm sending emails from clients on my home network pointing to my bubba as SMTP server. It also works fine when using bubba's webmail interface and command prompt.

Problem 1. Sending emails through my SMTP server from outside:
OK, port 25 is blocked. So the solution would be to make your mail server listen to another port.
Unfortunately not all email clients allow for this to be done easily.
Another problem I came across was non-standard ports being blocked in outgoing traffic at work.
The solution to this was to tunnel port 25 via SSH.
So far so good, but inconvenient.
Then I wanted to use my phone as an email client. The phone I had at the time did not have the ability to tunnel through SSH, so I needed another solution.

Problem 2. Receiving email through my own server:
I was not happy with just using fetchmail to grab email from whatever email address the ISP gave me. I wanted to be able to receive email sent to my own domain.
Setting up my domain's MX record to point to my bubba's IP obviously did not work either. Port 25 is blocked...
Changing the port number was not going to work as I cannot tell all the other SMTP servers out there to use a non-default port...

Solution:
I bought a service on dyndns.com that allows me to point my MX record to one of their servers, which will then forward all incoming traffic on port 25 to my server on port 25255 (or something like that).
I also bought a service for outbound email from dyndns. I simply point the email clients used outside my home network (work, laptop, phone) to their SMTP server instead...
I'm not very happy with this solution, but at least they have SSL/TLS encryption (unlike the ISP) so I don't have to send the credentials in clear text.

/Cheeseboy
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: smtp

Post by RandomUsername »

@Cheesboy. Your experience seems a bit odd in that, IME an ISP will only block port 25 if they provide their own SMTP server on port 25. If they block port 25 traffic and also don't provide an SMTP server for their customers to use what are you supposed to do? Same goes for mobile providers in relation to smartphones.

All my email clients just point directly to my ISPs SMTP server, I don't bother using the bubba as a relay (don't see the point). I am in the easier position of my mobile provider being the same company as my ISP so my iPhone points to the same SMTP server as my desktop clients.
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: smtp

Post by pcrene »

Hallo Random,

I do the same as you, point to my regular isp.

But..............

My phone and laptop travel allot..... so my own isp is seldom present.

I would like to have bubba2 als smpt server but with login.

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Post Reply