Koozali.org: home of the SME Server

Problems sending mail

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Problems sending mail
« Reply #30 on: August 07, 2008, 10:34:33 PM »
I wonder if it does not look like CharlieBrady is right.

Isn't a improper configured server together with an extra new rpm the whole problem ?

By the way is this rpm a part of the SME server as it is intended to be used ? (I don't know, but I would not expect that any rpm tha can be downloaded or installed will work well.)

My personal opinion is that the first thing one should do before making any modifcations at all is to chek if the basic unmodified server does work. If it does not than it is time to check network connection and to solve those problems. Then it is time for doing modifications, after your basic setup has been verified and tested. One thing I think is important is to do things step by step, and to verify each step, before the next one.
Well, the whole point of installing the server queue management RPM is because my server could not send emails. Let me tell you guys what happened.

The server is a normal home-server, only used for routing my internet connection via the university network (100 mbit up/down :)) This network only allows us to send emails through the university smtp server (smtp.ru.nl) at port 25. After installing a CLEAN sme server, I could not mail. So I filled in the smtp.ru.nl at the mail options page at the administration pages. Then I still could not send emails and got errors in the email logs. Because of all the "test" emails, the queue was getting bigger and bigger so I thought it would be better to install the queue manager RPM, which enables me to delete all the queued mails. And now we are here....

By the way. I don't use the mail functionality of the server. I only want to make some cron-jobs on the server to send me some kind of statistics or something. (just for fun) All the client computers (the server is also a gateway) make a direct connection to smtp.ru.nl, without problems. Only the server cannot connect to this server. Strange, isn't it?

Now please, someone tell me how to fix this. I really don't think the problem is that big, because all the clients can mail (without using the server's mailer deamon), except the server itself. What to do next?

Offline arne

  • ****
  • 1,116
  • +0/-4
Re: Problems sending mail
« Reply #31 on: August 07, 2008, 10:41:16 PM »
I is something strange with the configuration or something like that. Where does this address lommers.local come from ? What is the configured server name ?

If the server does not work, a modification is the last thing I would be thinking about. The first thing would be to check the configuration and then the network connection.
« Last Edit: August 07, 2008, 10:43:41 PM by arne »
......

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Problems sending mail
« Reply #32 on: August 07, 2008, 10:54:02 PM »
I would try a couple of things.

1> If there are only a couple of users, little or no data and the server is just used for a router. At this point I would reinstall and start from scratch.

2> If you choose not to take option one and the mails in the queue are not important I would rebuild the queue with the instructions from the other link. I would then first try to send a message with webmail to two users on your SME lan to make sure the server is working correctly. Then you can attempt to get the mail forwarding to work.

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Problems sending mail
« Reply #33 on: August 08, 2008, 10:47:53 AM »
I would try a couple of things.

1> If there are only a couple of users, little or no data and the server is just used for a router. At this point I would reinstall and start from scratch.

2> If you choose not to take option one and the mails in the queue are not important I would rebuild the queue with the instructions from the other link. I would then first try to send a message with webmail to two users on your SME lan to make sure the server is working correctly. Then you can attempt to get the mail forwarding to work.

Dear all,

I just cleaned the entire email queue like described in the thread mentioned above. After this I tried to send an email from one local user to another. This email was delivered fine. After this I tried to send to an external email address (in fact, I tried three addresses) and this email was not received fine. The following entries are in the logfile:

Code: [Select]
1218102452.522793500 qp 8266: to=remote.email2@test.nl, uid=453, ddelay=10001.493172, xdelay=0.027207, stat=Deferred (Connected_to_131.174.66.167_but_greeting_failed./Remote_host_said:_421_4.7.0_smtp.ru.nl_Error:_too_many_connections_from_195.169.214.146/)
1218102454.541138500 qp 14138: to=remote.email1@test.nl, uid=0, ddelay=401.397242, xdelay=0.003915, stat=Deferred (Connected_to_131.174.66.167_but_greeting_failed./Remote_host_said:_421_4.7.0_smtp.ru.nl_Error:_too_many_connections_from_195.169.214.146/)
1218102482.523364500 qp 8266: to=remote.email1@test.nl, uid=453, ddelay=10031.493743, xdelay=30.027789, stat=Deferred (131.174.66.167_does_not_like_recipient./Remote_host_said:_450_4.1.8_<admin@lommers.local>:_Sender_address_rejected:_Domain_not_found/Giving_up_on_131.174.66.167./)
1218103156.485937500 qp 29934: to=remote.email1@test.nl, uid=102, ddelay=48431.182394, xdelay=30.007164, stat=Deferred (131.174.66.167_does_not_like_recipient./Remote_host_said:_450_4.1.8_<anonymous@lommers.local>:_Sender_address_rejected:_Domain_not_found/Giving_up_on_131.174.66.167./)
1218103488.483695500 qp 13645: to=remote.email2@test.nl, uid=453, ddelay=1681.494225, xdelay=0.010174, stat=Deferred (Connected_to_131.174.66.167_but_greeting_failed./Remote_host_said:_421_4.7.0_smtp.ru.nl_Error:_too_many_connections_from_195.169.214.146/)
1218103518.484904500 qp 13645: to=remote.email1@test.nl, uid=453, ddelay=1711.495434, xdelay=30.011393, stat=Deferred (131.174.66.167_does_not_like_recipient./Remote_host_said:_450_4.1.8_<admin@lommers.local>:_Sender_address_rejected:_Domain_not_found/Giving_up_on_131.174.66.167./)
1218103578.479744500 qp 9412: to=remote.email1@test.nl, uid=453, ddelay=10060.782638, xdelay=60.044976, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218103714.474681500 qp 14138: to=remote.email1@test.nl, uid=0, ddelay=1661.330785, xdelay=60.002517, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218104163.997736500 qp 9758: to=remote.email2@test.nl, uid=453, ddelay=10361.268291, xdelay=360.515390, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218105528.877251500 qp 13645: to=remote.email1@test.nl, uid=453, ddelay=3721.887781, xdelay=0.010334, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218105654.873447500 qp 14138: to=remote.email1@test.nl, uid=0, ddelay=3601.729551, xdelay=0.008610, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218105888.851647500 qp 13645: to=remote.email2@test.nl, uid=453, ddelay=4081.862177, xdelay=359.984720, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218106732.809077500 qp 7518: to=remote.email1@test.nl, uid=453, ddelay=14885.253761, xdelay=0.008797, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218106852.805466500 qp 8266: to=remote.email1@test.nl, uid=453, ddelay=14401.775845, xdelay=0.008497, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218106852.941741500 qp 8266: to=remote.email2@test.nl, uid=453, ddelay=14401.912120, xdelay=0.144762, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218107919.180736500 qp 9412: to=remote.email1@test.nl, uid=453, ddelay=14401.483630, xdelay=0.342043, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218108203.179467500 qp 9758: to=remote.email2@test.nl, uid=453, ddelay=14400.450022, xdelay=0.026017, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218108368.172284500 qp 13645: to=remote.email1@test.nl, uid=453, ddelay=6561.182814, xdelay=0.008631, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218108368.310051500 qp 13645: to=remote.email2@test.nl, uid=453, ddelay=6561.320581, xdelay=0.146387, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218108514.303875500 qp 14138: to=remote.email1@test.nl, uid=0, ddelay=6461.159979, xdelay=60.002503, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)
1218112008.307259500 qp 13645: to=remote.email1@test.nl, uid=453, ddelay=10201.317789, xdelay=0.338617, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)

Somehow the server is not able to send mails through my providers SMTP server. When I try to send an email by using a telnet session (from the server's console) via exactly the same smtp server (guide), the mail has been sent out perfectly. This means there is nothing wrong with the communication (infrastructure) between the server and the smtp server.

Offline arne

  • ****
  • 1,116
  • +0/-4
Re: Problems sending mail
« Reply #34 on: August 08, 2008, 11:03:36 AM »
From the log:

Remote_host_said:_450_4.1.8_<anonymous@lommers.local>:_Sender_address_rejected:_Domain_not_found/Giving_up_

Why ?
« Last Edit: August 08, 2008, 11:07:33 AM by arne »
......

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Problems sending mail
« Reply #35 on: August 08, 2008, 11:09:41 AM »
From the log:

Remote_host_said:_450_4.1.8_<anonymous@lommers.local>:_Sender_address_rejected:_Domain_not_found/Giving_up_

Why ?

Thank you for you reply, but what do you mean by this? The smtp server is telling that he (or she :)) cannot find the domain lommers.local? That's obvious, because it is my local domain.
« Last Edit: August 08, 2008, 11:35:25 AM by smeerbartje »

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Problems sending mail
« Reply #36 on: August 08, 2008, 11:47:14 AM »
well

it's something (good and) normal that smtp servers refuse mail from unknown domain because of spammers..

so, if your isp smtp server doesn't need auth, you have to change the domain on your server.

IMO your problem is not network related or SME related.. it a bad/wrong configuration..

ciao
Stefano

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Problems sending mail
« Reply #37 on: August 08, 2008, 12:03:58 PM »
well

it's something (good and) normal that smtp servers refuse mail from unknown domain because of spammers..

so, if your isp smtp server doesn't need auth, you have to change the domain on your server.

IMO your problem is not network related or SME related.. it a bad/wrong configuration..

ciao
Stefano
But when I try to send a mail by using my desktop computer it am able to send mails. (via Outlook, static internal IP address, the server provides the connection to the internet)

What do I need to change on the server (domain) to be able to send mails on the server?

Offline arne

  • ****
  • 1,116
  • +0/-4
Re: Problems sending mail
« Reply #38 on: August 08, 2008, 02:52:32 PM »
Logon to console or via remote ssh terminal using username "admin" and passwors as for root, and you will see.
......

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Problems sending mail
« Reply #39 on: August 08, 2008, 02:53:46 PM »
Your delegated mailserver is using a filter that requires a domain name that is resolvable. (in other words a real domain that has internet DNS records set for it.)

From your guide ref above:

Quote
You will then need to delcare where you are sending the email from:
HELO local.domain.name - dont worry too much about your local domain name although you really should use your exact fully qualified domain name as seen by the outside world the mail server has no choice but to take your word for it as of RFC822-RFC1123

You DO need to worry about that domain. If you were attempting to send this to an SME server with the local domain it would also be rejected as we reject non-resolveable domains by default.

Do the test above but put in a real resolveable domain name and see if it will go through.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Problems sending mail
« Reply #40 on: August 08, 2008, 03:44:27 PM »
disregard my post above. I did not see this part:

Quote
When I try to send an email by using a telnet session (from the server's console) via exactly the same smtp server (guide), the mail has been sent out perfectly.