Koozali.org: home of the SME Server

Problems sending mail from sem 6.0.3b

evikali

Problems sending mail from sem 6.0.3b
« on: February 27, 2005, 11:20:18 PM »
Hi all

I have some problems with sending mail from my newly installed sme server v. 6.0.3beta.
The only thing I have done is creating a new user after the install and I can easily create a new mail, but I can see from the server manager that the mail is just added to the mail queue, but never send.

I have installed a sme server many times and I have used sme v. 6.0.0 before and did not have the same problem. I have not changed anything on my router.
I have also tried the new 6.0.1 stable, which have the same problem......
Does anyone have some ideas to solve this problem ?

Buddha_Joe

Problems sending mail from sem 6.0.3b
« Reply #1 on: February 28, 2005, 02:02:27 AM »
I think you still need to go into the emil panel and configure the server..

http://mirror.contribs.org/smeserver/contribs/bobk/SME_Manual/chpt-13.7.html

what does the server log say?

evikali

Re:
« Reply #2 on: February 28, 2005, 08:28:16 AM »
Hi there

But I normally dont need to change the default settings, only the webmail part and I did not change that to make sure it wasn't that part of the system, that made it not working.....

evikali

The serve log
« Reply #3 on: February 28, 2005, 08:29:17 AM »
The server log just says:

Sorry, was not able to create an smtp connection

Buddha_Joe

Problems sending mail from sem 6.0.3b
« Reply #4 on: February 28, 2005, 08:45:08 AM »
I'm assuming that is from the mail log? have a look under the messages log in the view log files panel.. it may give you more info..

evikali

Problems sending mail from sem 6.0.3b
« Reply #5 on: February 28, 2005, 08:48:28 AM »
Okay, I will do that tonight.... :-)

evikali

Problems sending mail from sem 6.0.3b
« Reply #6 on: February 28, 2005, 09:40:58 PM »
Should I look for something specific in the messages log ? It is very long...... :-)

evikali

Problems sending mail from sem 6.0.3b
« Reply #7 on: February 28, 2005, 09:59:13 PM »
I forgot to tell that I can easily receive emails, but not send emails.....

Buddha_Joe

Problems sending mail from sem 6.0.3b
« Reply #8 on: February 28, 2005, 10:47:36 PM »
you are looking for entries that refrence qmailr and other entries surround those events.

Just as an aside.. some ISPs block smtp traffic that doesn't come from their servers so you may have to tell your mail server to use the isp's smtp server.. but if the ISPs smtp server requires authentication then you may need to just tell the individual clients which smtp server to use.

Lucid

Problems sending mail from sem 6.0.3b
« Reply #9 on: March 01, 2005, 06:49:33 AM »
I had the same problem I fixed it by

Server manager
E-mail
Address of Internet provider's mail server  [ put your isp mail server here ]

and it works fine now

evikali

Problems sending mail from sem 6.0.3b
« Reply #10 on: March 01, 2005, 08:23:46 AM »
-> Lucid
Dont you get a problem if your domain name is not a part of your isp's domains ?

evikali

Problems sending mail from sem 6.0.3b
« Reply #11 on: March 01, 2005, 06:27:40 PM »
I entered the ISP's mail server and it is working now, thanks very much for the help :-)

faeky

SMTP problems cause and solution
« Reply #12 on: March 01, 2005, 06:36:42 PM »
In the more recent releases of the SME server (6.0+) there is an entry in /etc/rc.d/init.d/masq that looks like this:

    /sbin/iptables --table nat --new-chain SMTPProxy
    /sbin/iptables --table nat --append PREROUTING  -p tcp --dport 25 -j SMTPProxy
    /sbin/iptables --table nat --append SMTPProxy --destination 127.0.0.1 --jump ACCEPT  
    /sbin/iptables --table nat --append SMTPProxy --destination 192.168.1.200 --jump ACCEPT
    /sbin/iptables --table nat --append SMTPProxy --destination $OUTERNET --jump ACCEPT
    /sbin/iptables --table nat --append SMTPProxy -p TCP -j DNAT --to 192.168.1.200:25

...

    /sbin/iptables --table nat --replace SMTPProxy 4 -p TCP -j DNAT --to 192.168.1.200:25

The problem here is that if you want to send mail directly from any local network computers directly to you ISPs SMTP server it won't let you because it's capturing everything on port 25 and trying to send it using the e-smith server proxy.

This setup works if all your local machines use the server to send mail AND your ISP allows you to use port 25 to send mail.  Sympatico blocks use of port 25 forcing you to relay all email through their email server.  In this case you just set that in the email settings.

If you want to send email directly to your ISPs SMTP server from you local machines then comment out the above lines so the server isn't capturing all port 25 activity.

Buddha_Joe

Problems sending mail from sem 6.0.3b
« Reply #13 on: March 01, 2005, 06:56:11 PM »
Thanks for the heads up on that.. I'll have to keep that in mind when I start working with the gateway config of sme.