Community discussions

MikroTik App
 
Tahoe
just joined
Topic Author
Posts: 16
Joined: Fri Mar 07, 2014 1:15 am
Location: Saint Johns, FL
Contact:

Please help in setting up an SMTP server

Sun Apr 13, 2014 6:38 am

Hi, will someone please tell me how to configure an SMTP server. I have a small home network that consists of 2 computers 1 printer and 2 iPhones. I do not have a server or a domain name.
My network consists of a Motorola SB6141 cable modem directly cabled into a RB915G-2Hnd. I use all static addresses for each device. RB951G is 192.168.88.1, wife's computer is 192.168.88.13,
my computer is 192.168.88.14 etc...
As exampled in the manual page below, what address do I place in ( set server=xx.xx.xx.xx ), port will be 25, and what will be the ( from="router@mydomain.com" ), since I have no server or domain name.
I have tried many many combinations of everything I know, and in trying to send an e-mail, it is always rejected.
Any help will be greatly appreciated. Thanks in advance.

--------------------
Configure SMTP server
[admin@MikroTik] /tool e-mail> set server=10.1.1.1 port=25 from="router@mydomain.com"
-------------------------------------------------------------------------------
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 8:58 am

Use smtp server of your internet provider. Domain is not necessary, sender address can be whatever if your used smtp server accepts it.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 2:53 pm

Most email servers check the sender's domain. If it doesn't resolve, it won't take the email.

To check why it is being rejected, enable debug logging for email and try a send, then check the log.
/system logging
add topics=e-mail,debug action=memory
 
Tahoe
just joined
Topic Author
Posts: 16
Joined: Fri Mar 07, 2014 1:15 am
Location: Saint Johns, FL
Contact:

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 3:33 pm

SurferTim Thanks very much for the reply. I entered what you listed, but still get the reply in logging "error sending e-mail, error connecting to server". I think I know the problem but not how to resolve it. In the tools --> email my specs are:

Server: 192.168.88.1
Port: 25
From: ( My gmail addr )
User: ( My gmail u/n )
Password: ( My gmail p/w )

What address should be in the server box.

Thanks again for the reply.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 3:45 pm

Use the SMTP server ip for Gmail. That is smtp.gmail.com. I use nslookup (or :resolve in Mikrotik script) to get the ip. Currently it resolves to these here in Florida:
173.194.64.108
173.194.64.109

To insure the email is accepted, use your Gmail address as the sender. You can also use it as the to address if you are sending it to yourself.

edit: Insure you use port 465 and set "start-tls=yes" in your e-mail settings.
 
Tahoe
just joined
Topic Author
Posts: 16
Joined: Fri Mar 07, 2014 1:15 am
Location: Saint Johns, FL
Contact:

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 4:01 pm

SurferTim Entering the address, tried both, log states ( error sending mail, abnormal termination ( timeout ). I really do appreciate your help very much. Thanks Guy

Log just listed ( email debug, send RSET )
( email debug, send QUIT )
( error sending e-mail, server not ready )
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 4:11 pm

Your isp can block outgoing smtp traffic. What smtp server do you use in your email client? Use the same.
 
Tahoe
just joined
Topic Author
Posts: 16
Joined: Fri Mar 07, 2014 1:15 am
Location: Saint Johns, FL
Contact:

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 4:18 pm

jarda If I knew the answer to that, I would not be asking my question here.
 
Tahoe
just joined
Topic Author
Posts: 16
Joined: Fri Mar 07, 2014 1:15 am
Location: Saint Johns, FL
Contact:

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 4:35 pm

SurferTim Thank you very much for all of your help. I needed the address you gave me, and also I had port 25. Getting closer with the address, I re-read the documentation, and saw that port 587 was used. When I changed port to 587 with the listed address, I have successfully received my test emails. Again, thanks very much. Guy
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Please help in setting up an SMTP server

Sun Apr 13, 2014 5:23 pm

Sorry about that. It is port 587 now, not 465.

Who is online

Users browsing this forum: Amazon [Bot], voljka and 27 guests