Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57678 - XMAIL - "Err -40 Invalid server address" and "DNS_FAILED?"
Summary: XMAIL - "Err -40 Invalid server address" and "DNS_FAILED?"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-19 22:00 UTC by marc
Modified: 2005-12-04 02:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marc 2004-07-19 22:00:39 UTC
When start xmail with /etc/init.d/xmail start, when I try to send mail to another domain outside (ex. terra.es, yahoo.com, hotmail.com, ...) I get this error:

[PeekTime] 1090298833 : Tue, 20 Jul 2004 04:47:13 -0000
<<
ErrCode   = -40
ErrString = Invalid server address
ErrInfo   = otherdomain.com
SMAIL SMTP-Send FF = "otherdomain.com" SMTP = "localdomain.com" From = "root@localdomain.com" To = "aaa@otherdomain.com" Failed !
SMTP-Error = "417 Temporary delivery error"
SMTP-Server = "otherdomain.com"
>>

and DNS_FAILED?

in the XMail Queue Manager.

But when I start xmail in prompt directly with:
./XMail -Pl -Pp 110 -Sl -Sp 25 -Ql -Fl -Fp 29079 -Cl -Cp 29617 -Ll

I can send mails without problems.
This problem is because the service is started in chroot mode (I think).
Comment 1 marc 2004-07-19 22:05:48 UTC
The version of xmail is: mail-mta/xmail-1.16

But I test with xmail-1.20 with the same problem.
Comment 2 marc 2004-07-22 03:43:44 UTC
I perform some tests and I reach to this conclusion:

- In chroot mode the xmail need these files:
/chroot/xmail/lib/libresolv*
/chroot/xmail/lib/libnss_dns*
/chroot/xmail/etc/resolv.conf

(xmail restart)

someone can to verify it?

Thanks.
Comment 3 Digital Extremist 2004-07-22 14:14:21 UTC
I believe I had this same issue. The only way I found around it was to offload all my outbound SMTP traffic to another server. It's not a fix, don't get me wrong - but it is the only way around it I've found.
Comment 4 Kevin Williams 2004-09-27 21:24:42 UTC
This is a DNS issue. See the xmail@xmailserver.org mailing list archives (http://www.mail-archive.com/xmail%40xmailserver.org/) or newsgroup (news://news.saltstorm.net/saltstorm.xmail) for details.
Comment 5 Aaron Kulbe (RETIRED) gentoo-dev 2004-12-08 19:22:17 UTC
This issue isn't related to something broken with the package, so we're going to close this.
Comment 6 Volkard Henkel 2005-12-04 02:20:41 UTC
(In reply to comment #2)

i have dozens of times restarted xmail an after each change i sent a mail to a 
foreign account an watched with 
find /chroot/xmail/var/MailRoot/dnscache/ -type f
if the maildomain could became resolved. 

> I perform some tests and I reach to this conclusion:
> - In chroot mode the xmail need these files:
> /chroot/xmail/lib/libresolv*
> /chroot/xmail/lib/libnss_dns*
> /chroot/xmail/etc/resolv.conf
> (xmail restart)
> someone can to verify it?

yes. i have veriefied your solution. exactly the same changes i did.