Koozali.org: home of the SME Server

Problem send e-mail

Offline mgb

  • *****
  • 558
  • +0/-0
Problem send e-mail
« on: July 15, 2010, 07:57:10 AM »
Problem send e-mail
Internal server 1 server 2 additional internal
I use the Internet company's SMTP
Internal server is also a main server
Send e-mail from the outside get outside


erro
Hi. This is the qmail-send program at mail.mydomain.com
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<admin@192.168.183.17>:
127.0.0.1 does not like recipient.
Remote host said: 550 5.1.2 unknown host or domain: admin@192.168.183.17
Giving up on 127.0.0.1.

Below this line is a copy of the message.
Return-Path: <admin@mail.mydomain.com>
Received: (qmail 19288 invoked by uid 453); 14 Jul 2010 17:34:40 -0000
« Last Edit: July 15, 2010, 08:33:39 AM by mgb »
Thanks all for helping
Skype yosii2009

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Problem send e-mail
« Reply #1 on: July 15, 2010, 01:29:25 PM »
The only valid email address that uses the server's IP address is "postmaster@w.x.y.z", so email to "admin@..." will be rejected.

This is controlled by /var/service/qpsmtpd/config/goodrcptto, and the specific template fragment that creates "postmaster@w.x.y.z' as a valid recipient is /etc/e-smith/templates/var/service/qpsmtpd/config/goodrcptto/12PostmasterAtBracketLiteralIP.

You can learn more about exactly what qpsmtpd is doing (for example, why a particular email is being rejected) by examining /var/log/qpsmtpd/current.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #2 on: July 15, 2010, 02:02:35 PM »
I thank
The rapid response
I check

Thanks all for helping
Skype yosii2009

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #3 on: July 15, 2010, 02:44:29 PM »
I am sorry
I did not explain the problem
Exactly
Explanation
I have a mail server works fine organization SME 
Internal and external address  10.0.0.1  216.10.0.1 MYSERVERMAIL.COM
Using Haneternat provider's SMTP

I have a new server in addition to  Microsoft Exchange Organization
I want some users will post a Microsoft Exchange mail
That not only internal IP address  10.0.0.2  myexchange.local
Microsoft Exchange will use

The server that will filter SME for user
« Last Edit: July 15, 2010, 02:57:58 PM by mgb »
Thanks all for helping
Skype yosii2009

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problem send e-mail
« Reply #4 on: July 15, 2010, 03:11:56 PM »
<admin@192.168.183.17>:
127.0.0.1 does not like recipient.
Remote host said: 550 5.1.2 unknown host or domain: admin@192.168.183.17
Giving up on 127.0.0.1.

You need to discover what software is trying to send to admin@192.168.183.17 and get it to send to a valid email address instead.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #5 on: July 15, 2010, 03:22:51 PM »
the IP 192.168.183.17 is illegal is an internal address on my network
I would like a mail server will not test for internal addresses
Of course not to use the ISP's SMTP

Come can be set
SMTP server
Perform testing before using
On the ISP's SMTP
And if the address is internal
It uses internal SMTP
Able to detect the internal address
I think the problem starts here
help to fix e-mail send in my network mail relay
« Last Edit: July 16, 2010, 06:12:39 AM by mgb »
Thanks all for helping
Skype yosii2009

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #6 on: July 16, 2010, 07:37:18 AM »
I try using

create the necessary virtual domains my.Exchange.local

db domains setprop my.MailServer.com MailServer 192.168.183.17
signal-event email-update

is not work
Exchange=192.168.183.17=my.Exchange.local
Thanks all for helping
Skype yosii2009

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problem send e-mail
« Reply #7 on: July 16, 2010, 02:52:12 PM »
Did you not read my earlier message?

You need to discover what software is trying to send to admin@192.168.183.17 and get it to send to a valid email address instead.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #8 on: July 16, 2010, 07:32:00 PM »
Thank you for the answer
I'm stuck with the problem
Can
not  find a solution ???

But I do not have a valid address
Will not be a valid address
 Exist on the server
admin@192.168.183.17
 
There is another server  sme 7.51 
With a valid address
Thanks all for helping
Skype yosii2009

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #9 on: July 17, 2010, 05:56:50 AM »
Explanation
Send mail from gmail
to  domain  usera@my.mail.sme.com   =ip 217.194.1.1 External
 -192.168.183.5 in

config my sme   server-manager
1 Create, modify, or remove user accounts
                Create usera
2 e-mail delivery = both deliver locally and forward
               Forwarding address = user17@192.168.183.19        is server my.Exchange.local


3 go to Configuration
E-mail settings
Address of Internet provider's mail server  217.100.1.8


4 e-mail from gmail is in sme is not in my.Exchange.local

« Last Edit: July 17, 2010, 05:59:14 AM by mgb »
Thanks all for helping
Skype yosii2009

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problem send e-mail
« Reply #10 on: July 17, 2010, 06:47:50 AM »
mgb

Quote
Create usera
Forwarding address = user17@192.168.183.19

AFAIK that email address format is invalid.
Should be in format of
user17@my.Exchange.local
but I would also guess that the exchange server domain is probably not resolving on your network. You would have to reconfigure and sort that out.

Maybe an easier way is to forward email for one or all domains to your exchange server, using the server manager setting or commands listed in the FAQ
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Internal_Mail_Servers

Maybe even create another valid domain on your sme that is delegated to the exchange server, just for those users who need to use exchange ie
user17@yourdomain2.com
« Last Edit: July 17, 2010, 07:41:29 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #11 on: July 17, 2010, 07:39:40 AM »
I try using

create the necessary virtual domains my.Exchange.local

db domains setprop my.mail.sme.com MailServer 192.168.183.17
signal-event email-update

is not work
Exchange=192.168.183.17=my.Exchange.local

I try using
user17@my.Exchange.local

« Last Edit: July 17, 2010, 07:41:25 AM by mgb »
Thanks all for helping
Skype yosii2009

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problem send e-mail
« Reply #12 on: July 17, 2010, 07:44:18 AM »
mgb

Quote
db domains setprop my.mail.sme.com MailServer 192.168.183.17
signal-event email-update

When you do that, ALL mail for my.mail.sme.com is delegated to the exchange server.

Quote
user17@my.Exchange.local

Instead try
user17@my.mail.sme.com


I edited my earlier post, you may have missed seeing this additional suggestion:

Maybe even create another VALID domain on your sme that is delegated to the exchange server, just for those users who need to use exchange ie
user17@yourdomain2.com
and do
db domains setprop yourdomain2.com MailServer 192.168.183.17
signal-event email-update

You would also need to create valid external DNS records for yourdomain2.com
« Last Edit: July 17, 2010, 07:47:45 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #13 on: July 17, 2010, 08:10:29 AM »
Yes
True
But there is no DOMAI2
The question of what solution
Given situation

Thanks all for helping
Skype yosii2009

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problem send e-mail
« Reply #14 on: July 17, 2010, 08:22:35 AM »
mgb

Quote
But there is no DOMAI2

Then create DOMAIN2.
You can get a free domain from dyndns to test and prove the theory.
Add the DOMAIN2 to the Domains panel in server manager so DOMAIN2 will resolve to your sme server.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #15 on: July 17, 2010, 01:38:09 PM »
ok
l get 1 ip only for domain
the sme an exchange server is in Same place my network 

I believe
That can be set
LOCAL external SMTP SMTP-local
Q SMTP mail sent internally LOCAL
External SMTP sends to the outside world
But the question
Thanks all for helping
Skype yosii2009

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problem send e-mail
« Reply #16 on: July 17, 2010, 02:53:54 PM »
mgb

Quote
I get 1 ip only for domain

sme server can host many domains on 1 external IP.
Additional domains are called virtual domains, add them in the server manager Domains panel.
External DNS records will point many domain names at the same external sme IP.
SME server can correctly resolve many domains if you add them to the Domains panel.

I do not understand the rest of what you said in your last post.
You need to do better English translation.

From your earlier posts, my understanding of what you want to do, is to have email addressed to certain users, to be processed by the exchange server.
There are probably a few ways this could be achieved, I believe I have suggested two ways.

One way is to send mail to those users at a different domain, and sme is configured to delegate that whole domain (domain2), to the exchange server. This should work.

The other way is to configure your exchange server to have a valid and resolvable domain name (eg domain2), you can then forward email to a valid email address for the exchange server eg sme user17 forwards to exchange user17@domain2
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #17 on: July 17, 2010, 06:02:17 PM »
I thought it was just
But it does not work

http://forums.contribs.org/index.php/topic,46297.msg226885.html#msg226885

You propose to add a virtual addition to enroll
To me there is real
Also my firewall has no access to
Can you write down an example of setting
Thanks all for helping
Skype yosii2009

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problem send e-mail
« Reply #18 on: July 17, 2010, 06:27:16 PM »
2 e-mail delivery = both deliver locally and forward
               Forwarding address = user17@192.168.183.19

Do not use user17@192.168.183.19 - use a valid email address, i.e. one which can be used on the Internet.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #19 on: July 17, 2010, 08:12:25 PM »
ok
1 domain is my.sme.k12.il    217.100.1.1  192.168.183.1    local sme
2 domain   exchange.sme.k12.il   217.100.1.1    virtual domains
ping my.sme.k12.il    192.168.183.1     out  217.100.1.1
ping  exchange.sme.k12.il               out  217.100.1.1
create the necessary virtual domains  exchange.sme.k12.il
Two Option
a-  Option 
1  Create user17@my.sme.k12.il   
2 e-mail delivery = both deliver locally and forward
               Forwarding address = user17@exchange.sme.k12.il


  b-  Option
db domains setprop exchange.sme.k12.il MailServer 192.168.183.19
signal-event email-update
« Last Edit: July 17, 2010, 08:15:45 PM by mgb »
Thanks all for helping
Skype yosii2009

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problem send e-mail
« Reply #20 on: July 18, 2010, 02:59:15 AM »
mgb

Yes, but it is really a case of doing option1  OR  option2.

With delegation of exchange.sme.k12.il to 192.168.183.19, you should be able to send mail externally or internally to   
any-sme-user@exchange.sme.k12.il
and those messages will be processed by the exchange server (due to the delegation of all email for that domain).
This is the easiest answer to implement.


As I see the issue, forwarding mail from
user17@my.sme.k12.il to user17@exchange.sme.k12.il
is more complicated as you need to configure your network for exchange.sme.k12.il to resolve locally to the exchange server.
This is more difficult to achieve. Assuming your sme server is in server gateway mode,  then there will be two active mail servers, and you will have to forward ports from sme server to the exchange server. As you already have the sme server using port 25 for mail you will have to forward mail for the exchange server on a different unused port, and also configure exchange to receive mail on that port.
It's a lot of complicated reconfiguration to do.
« Last Edit: July 18, 2010, 03:02:52 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #21 on: July 20, 2010, 03:49:29 PM »
 appreciate the effort

I prefer to use
db domains setprop mail.sme.com MailServer 10.100.100.1

But I have a problem with the
exchange.sme.local server's
  I can not change name  exchange.sme.local   
has Command come to serve SME
Compare the SME server names   exchange.sme.local =  mail.sme.com

exchange Rejected the e-mail from sme   user17@mail.sme.com
Thanks all for helping
Skype yosii2009

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problem send e-mail
« Reply #22 on: July 20, 2010, 09:15:25 PM »
mgb

You have to configure exchange with details of where it will validly receive email from.

Perhaps you should read ALL previous forum posts about using exchange.
See this thread as a starting point
http://forums.contribs.org/index.php/topic,35532.msg155693.html#msg155693

I also suggest you do an advanced search on all forum posts containing the word exchange (ie click on the magnifying glass symbol at top of forums and search on the word exchange).
There are many interesting and informative tips.
Please read them all, you may find the answer re how to configure your system correctly.

It is difficult to understand your english.
Also you keep changing the domain names and IP numbers in your different posts, this only confuses our understanding of your situation. It would be better if you quoted real domain names and real IP numbers.

This post may have some relevance re naming your domains
http://forums.contribs.org/index.php/topic,45658.msg226982.html#msg226982
« Last Edit: July 20, 2010, 09:48:05 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mgb

  • *****
  • 558
  • +0/-0
Re: Problem send e-mail
« Reply #23 on: July 21, 2010, 07:05:01 AM »
Thanks for the answer
Sorry about the English

I hope you think you understand the problem
 
 I did not understand, but references to help me
My problem is different
I have an idea
I do not know it would work

Thanks all for helping
Skype yosii2009