Problem with external mailserver

RoRoo

Verified User
Joined
Dec 16, 2004
Messages
112
Hi,

I hope this title fits my problem :)

Situation:
I've got 1 domain running on a DA server

DNS is being handled by another server
MX record points to another server.

Site runs on DA server. (OsCommerce)

If I want to send an e-mail to the [email protected] account from the DA server the msg get's bounced with error:

Code:
2005-01-27 12:22:04 H=myhostname (wsxproroo) [IP] F=<e-mail> rejected RCPT <info@domain>: 
2005-01-27 12:22:04 H=myhostname (wsxproroo) [83.160.1.227] incomplete transaction (QUIT) from <email>

If I use another mailserver the mail is received nicely but this isn't the way to communicate.

Problem is: I'm not to well known with exim

Is there ne1 that could point me in the right direction?

TIA
 
The error message is saying that the mailserver issues a "quit" command before it does anything.

Is the log snippet from your DA server or the other server?

Is domain.com the domain you're writing about, or another domain?

Does it happen for all domains, or just for domain.com, or just for some domains?

Note that I probably won't be able to continue helping you without real domain information for all the domains at issue.

It just isn't worth the time it takes me to figure out all possible hypothetical test results when with a real domain name I could do a real test and figure it out much more quickly.

Jeff
 
Problem is solved.

I had to enable mx record editing for the domain. then remove the setting that the server was handling mail for that domain.
 
Mail delivery fails to external mailserver

I have the same problem - hosting sites where the DNS and MX are on other servers. For the domains involved, I've taken away pop and mail references in the DNS setup, added correct NS and MX. The DNS admin on my server for the domain hoeghpartners.no looks like this:
Code:
ftp	A	83.143.83.82	
hoeghpartners.no.	A	83.143.83.82	
localhost	A	127.0.0.1	
www	A	83.143.83.82	
hoeghpartners.no.	NS	ns1.hyp.net.	
hoeghpartners.no.	NS	ns2.hyp.net.	
hoeghpartners.no.	NS	ns3.hyp.net.	
mx05.domeneshop.no.	MX	10	
hoeghpartners.no.	TXT	"v=spf1 a mx ip4:83.143.83.82 ?all"
For the record: my own dns are ns1.hoegh.dedicated.servetheworld.net and ns2.hoegh.dedicated.servetheworld.net.

To begin with, the Rejectlog only recorded this:
Code:
2008-03-21 04:49:49 H=100.80-202-161.nextgentel.com ([127.0.0.1]) [80.202.161.100] F=<postmaster_AT_xxx.no> rejected RCPT <xxxx_AT_hoeghpartners.no>:
I also tried to comment out this part in exim.conf (I have SpamBlocker 2.0):
Code:
# accept if address is in a local domain as long as recipient can be verified
  accept  domains = +local_domains
          endpass
	  message = "Unknown User"
          verify = recipient
- which didn't help but give me no rejectlogs and a longer errorlog in the mainlog (quoted below), so I changed it back again.

Exim mainlog says:
Code:
2008-03-21 07:36:27 1Jcarb-0007Dc-AM <= postmaster_AT_xxx.no H=100.80-202-161.nextgentel.com ([10.0.0.9]) [80.202.161.100] P=esmtpsa X=TLSv1:AES256-SHA:256 A=plain:postmaster_AT_xxx.no S=664 [email protected] T="testmail igjen" from <postmaster_AT_xxx.no> for xxx_AT_hoeghpartners.no
2008-03-21 07:36:27 1Jcarb-0007Dc-AM ** xxx_AT_hoeghpartners.no F=<postmaster_AT_xxx.no> R=virtual_aliases: 
2008-03-21 07:36:27 1Jcarb-0007Df-Bc <= <> R=1Jcarb-0007Dc-AM U=mail P=local S=1531 T="Mail delivery failed: returning message to sender" from <> for postmaster_AT_xxx.no
2008-03-21 07:36:27 1Jcarb-0007Dc-AM Completed
2008-03-21 07:36:27 1Jcarb-0007Df-Bc => postmaster <postmaster_AT_xxx.no> F=<> R=virtual_user T=virtual_localdelivery S=1634
2008-03-21 07:36:27 1Jcarb-0007Df-Bc Completed
I also tried exim -d -bt xxx_AT_hoeghpartners which gave me this:
Code:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering xxxx_AT_hoeghpartners.no
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing xxxx_AT_hoeghpartners.no
--------> lookuphost router <--------
local_part=xxxx domain=hoeghpartners.no
checking domains
search_open: lsearch "/etc/virtual/domains"
search_find: file="/etc/virtual/domains"
  key="hoeghpartners.no" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/virtual/domains
  End
internal_search_find: file="/etc/virtual/domains"
  type=lsearch key="hoeghpartners.no"
file lookup required for hoeghpartners.no
  in /etc/virtual/domains
lookup yielded:
hoeghpartners.no in "lsearch;/etc/virtual/domains"? yes (matched "lsearch;/etc/virtual/domains")
data from lookup saved for cache for +local_domains:
hoeghpartners.no in "! +local_domains"? no (matched "! +local_domains")
lookuphost router skipped: domains mismatch
--------> spamcheck_director router <--------
local_part=xxxx domain=hoeghpartners.no
checking "condition"
search_open: lsearch "/etc/virtual/domainowners"
search_find: file="/etc/virtual/domainowners"
  key="hoeghpartners.no" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/virtual/domainowners
  :/etc/virtual/domains
  End
internal_search_find: file="/etc/virtual/domainowners"
  type=lsearch key="hoeghpartners.no"
file lookup required for hoeghpartners.no
  in /etc/virtual/domainowners
lookup yielded: admin
spamcheck_director router skipped: condition failure
--------> majordomo_aliases router <--------
local_part=xxxx domain=hoeghpartners.no
checking domains
search_open: lsearch "/etc/virtual/domainowners"
  cached open
search_find: file="/etc/virtual/domainowners"
  key="hoeghpartners.no" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/virtual/domainowners
  :/etc/virtual/domains
  End
internal_search_find: file="/etc/virtual/domainowners"
  type=lsearch key="hoeghpartners.no"
cached data used for lookup of hoeghpartners.no
  in /etc/virtual/domainowners
lookup yielded: admin
hoeghpartners.no in "lsearch;/etc/virtual/domainowners"? yes (matched "lsearch;/etc/virtual/domainowners")
calling majordomo_aliases router
rda_interpret (string): ${if exists{/etc/virtual/${domain}/majordomo/list.aliases}{${lookup{$local_part}lsearch{/etc/virtual/${domain}/majordomo/list.aliases}}}}
expanded:
file is not a filter file
parse_forward_list:
majordomo_aliases router declined for xxxx_AT_hoeghpartners.no
--------> majordomo_private router <--------
local_part=xxxx domain=hoeghpartners.no
checking domains
search_open: lsearch "/etc/virtual/domainowners"
  cached open
search_find: file="/etc/virtual/domainowners"
  key="hoeghpartners.no" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/virtual/domainowners
  :/etc/virtual/domains
  End
internal_search_find: file="/etc/virtual/domainowners"
  type=lsearch key="hoeghpartners.no"
cached data used for lookup of hoeghpartners.no
  in /etc/virtual/domainowners
lookup yielded: admin
hoeghpartners.no in "lsearch;/etc/virtual/domainowners"? yes (matched "lsearch;/etc/virtual/domainowners")
checking "condition"
majordomo_private router skipped: condition failure
--------> domain_filter router <--------
local_part=xxxx domain=hoeghpartners.no
checking "condition"
calling domain_filter router
rda_interpret (file): /etc/virtual/${domain}/filter
expanded: /etc/virtual/hoeghpartners.no/filter
search_tidyup called
changed uid/gid: domain_filter router (recipient is xxxx_AT_hoeghpartners.no)
  uid=8 gid=12 pid=2848
  auxiliary group list: <none>
0 bytes read from /etc/virtual/hoeghpartners.no/filter
file is not a filter file
parse_forward_list:
search_tidyup called
rda_interpret: subprocess yield=1 error=NULL
domain_filter router declined for xxxx_AT_hoeghpartners.no
--------> uservacation router <--------
local_part=xxxx domain=hoeghpartners.no
checking require_files
file check: /etc/virtual/${domain}/reply/${local_part}.msg
expanded file: /etc/virtual/hoeghpartners.no/reply/xxxx.msg
stat() yielded -1
errno = 2
uservacation router skipped: file check
--------> userautoreply router <--------
local_part=xxxx domain=hoeghpartners.no
checking require_files
file check: /etc/virtual/${domain}/reply/${local_part}.msg
expanded file: /etc/virtual/hoeghpartners.no/reply/xxxx.msg
stat() yielded -1
errno = 2
userautoreply router skipped: file check
--------> virtual_aliases_nostar router <--------
local_part=xxxx domain=hoeghpartners.no
calling virtual_aliases_nostar router
rda_interpret (string): ${if exists{/etc/virtual/${domain}/aliases}{${lookup{$local_part}lsearch{/etc/virtual/${domain}/aliases}}}}
search_open: lsearch "/etc/virtual/hoeghpartners.no/aliases"
search_find: file="/etc/virtual/hoeghpartners.no/aliases"
  key="xxxx" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/virtual/hoeghpartners.no/aliases
  End
internal_search_find: file="/etc/virtual/hoeghpartners.no/aliases"
  type=lsearch key="xxxx"
file lookup required for xxxx
  in /etc/virtual/hoeghpartners.no/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
virtual_aliases_nostar router declined for xxxx_AT_hoeghpartners.no
--------> virtual_user router <--------
local_part=xxxx domain=hoeghpartners.no
checking domains
search_open: lsearch "/etc/virtual/domainowners"
search_find: file="/etc/virtual/domainowners"
  key="hoeghpartners.no" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/virtual/domainowners
  :/etc/virtual/hoeghpartners.no/aliases
  End
internal_search_find: file="/etc/virtual/domainowners"
  type=lsearch key="hoeghpartners.no"
file lookup required for hoeghpartners.no
  in /etc/virtual/domainowners
lookup yielded: admin
hoeghpartners.no in "lsearch;/etc/virtual/domainowners"? yes (matched "lsearch;/etc/virtual/domainowners")
checking "condition"
Starting Perl interpreter
virtual_user router skipped: condition failure
--------> virtual_aliases router <--------
local_part=xxxx domain=hoeghpartners.no
checking "condition"
search_open: lsearch "/etc/virtual/hoeghpartners.no/aliases"
  cached open
search_find: file="/etc/virtual/hoeghpartners.no/aliases"
  key="xxxx" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/virtual/hoeghpartners.no/aliases
  :/etc/virtual/domainowners
  End
internal_search_find: file="/etc/virtual/hoeghpartners.no/aliases"
  type=lsearch key="xxxx"
cached data used for lookup of xxxx
  in /etc/virtual/hoeghpartners.no/aliases
lookup failed
calling virtual_aliases router
rda_interpret (string): ${if exists{/etc/virtual/$domain/aliases}{${lookup{$local_part}lsearch*{/etc/virtual/$domain/aliases}}}}
search_open: lsearch "/etc/virtual/hoeghpartners.no/aliases"
  cached open
search_find: file="/etc/virtual/hoeghpartners.no/aliases"
  key="xxxx" partial=-1 affix=NULL starflags=1
LRU list:
  :/etc/virtual/hoeghpartners.no/aliases
  :/etc/virtual/domainowners
  End
internal_search_find: file="/etc/virtual/hoeghpartners.no/aliases"
  type=lsearch key="xxxx"
cached data used for lookup of xxxx
  in /etc/virtual/hoeghpartners.no/aliases
lookup failed
trying to match *
internal_search_find: file="/etc/virtual/hoeghpartners.no/aliases"
  type=lsearch key="*"
file lookup required for *
  in /etc/virtual/hoeghpartners.no/aliases
lookup yielded: :fail:
expanded: :fail:
file is not a filter file
parse_forward_list: :fail:
extract item: :fail:
virtual_aliases router forced address failure
xxxx_AT_hoeghpartners.no is undeliverable:
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=2847 terminating with rc=2 >>>>>>>>>>>>>>>>
The email message returned to me from my server says:
Code:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  xxxx_AT_hoeghpartners.no
    

------ This is a copy of the message, including all the headers. ------

Return-path: <postmaster_AT_xxx.no>
Received: from 100.80-202-161.nextgentel.com ([80.202.161.100] helo=[10.0.0.9])
	by hoegh.dedicated.servetheworld.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.67)
	(envelope-from <postmaster_AT_xxx.no>)
	id 1JcbKa-0001LO-U8
	for xxxx_AT_hoeghpartners.no; Fri, 21 Mar 2008 08:06:24 +0100
Message-ID: <47E35F0F.1060200_AT_xxx.no>
Date: Fri, 21 Mar 2008 08:09:03 +0100
From: postmaster <postmaster_AT_xxx.no>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
To: Niels Hoegh <xxxx_AT_hoeghpartners.no>
Subject: testmail
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

BUT, the strange thing is that an other domain's email, with DNS and MX hosted elsewhere, gives me completely different errors. The returned mail says:
Code:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  xxxx_AT_zobb.com
    

------ This is a copy of the message, including all the headers. ------

Return-path: <postmaster_AT_xxx.no>
Received: from mail by hoegh.dedicated.servetheworld.net with spam-scanned (Exim 4.67)
	(envelope-from <postmaster_AT_xxx.no>)
	id 1JcbJT-0001C6-LK
	for xxxx_AT_zobb.com; Fri, 21 Mar 2008 08:05:15 +0100
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on
	hoegh.dedicated.servetheworld.net
X-Spam-Level: 
X-Spam-Status: No, score=0.7 required=7.5 tests=ALL_TRUSTED,AWL,TVD_RCVD_IP
	autolearn=no version=3.2.4
Received: from 100.80-202-161.nextgentel.com ([80.202.161.100] helo=[10.0.0.9])
	by hoegh.dedicated.servetheworld.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.67)
	(envelope-from <postmaster_AT_xxx.no>)
	id 1JcbJT-0001C3-KA
	for xxxx_AT_zobb.com; Fri, 21 Mar 2008 08:05:15 +0100
Message-ID: <47E35ECA.8020506_AT_xxx.no>
Date: Fri, 21 Mar 2008 08:07:54 +0100
From: postmaster <postmaster_AT_xxx.no>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
To: "XXXX" <xxxx_AT_zobb.com>
Subject: test
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

And exim -d -bt xxxx_AT_zobb.com gives me also a completely different output. But I think these are the major lines:
Code:
file lookup required for zobb.com
  in /etc/virtual/domains
lookup yielded:
zobb.com in "lsearch;/etc/virtual/domains"? yes (matched "lsearch;/etc/virtual/domains")
data from lookup saved for cache for +local_domains:
zobb.com in "! +local_domains"? no (matched "! +local_domains")
lookuphost router skipped: domains mismatch

I think I'm on the track, but can't seem to pinpoint the solution... :o
Oh, I also believe that these emailaccounts went thru my server smoothly before I changed from using Customapache to Custombuild last weekend...
Anyone? :)
 
Fixed!

It was quite easy, actually. I never realised there was a checkbox for Local Mail Server under "DNS Management -> Modify MX records". Just uncheck the box, add the other mailserver's address as the new MX record (like "smtp.otherdomain.com.") and then your laughing! :D

BUT, it took me the most of the easter to figure out, so yes, I am a dork and a newbie. Found the solution here: http://help.directadmin.com/item.php?id=8

Hope this helps if you find yourself in the same situation. :)
 
Hi forum...
I recently use DA, is very nice and manageable :) .

I have a problem when a mail account from DA send a message to other MailServer that is not DA for example a postfix :( .

The mails are rejected when a send to DA > OtherMailServer, :mad: but from DA to DA, i have not problems :) .

My DNSservers are OK, without problems.

A friend suggested me add a DNS Cache to the DA and increase the TimeOut of the MailServer from the DA.

But How can I do it.
This can fix my problem? :confused:

Thnks to all
 
Back
Top