[exim] Problems sending email with exim 4.43

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Viorel Dragomir
Date:  
À: exim-users
Sujet: [exim] Problems sending email with exim 4.43
Hi there.

Perl sends mail, Java don't. Same server. [I guess] same options.
Exim sayz that it can not relay for user xxx with java but why it can relay in perl...

Today I'm out of luck, so I appreciate [I don't know how yet] your effort to look at this stuff.

If you say that exim is not well config than is all I want to hear. If it's well and you don't know java then my
boss will regret killing me the rest of his life.

// This is not actually a problem regarding exim [I guess]. //

I don't know exactly what settings are made for Perl [ MIME::Lite 3.01 (F2.71; B2.12; Q2.03) ]
but with it I can send emails.

2004-12-22 19:47:51 1ChBWZ-0008Kp-Mw <= root@??? U=root P=local S=533
2004-12-22 19:47:51 1ChBWZ-0008Kp-Mw => name@??? R=dnslookup T=remote_smtp H=smtp.other.com [194.146.226.164]
2004-12-22 19:47:51 1ChBWZ-0008Kp-Mw Completed

When trying the same stuff with java I get:
2004-12-22 19:55:43 H=domain.com [10.0.1.24] F=<root@???> rejected RCPT <name@???>: relay not permitted

Java generates this email:

Message-ID: <2758093.1103741743148.JavaMail.root@???>
From: root@???
To: name@???
Subject: TestMail
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

[body text]

Some properties set for javax.mail.Session
mail.from=root@???
mail.transport.protocol=smtp
mail.user=root
mail.smtp.host=domain.com
mail.host=domain.com

The java reports the following exception:
Exception thrown: -------
        [StackTrace:javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        class javax.mail.SendFailedException: 550 relay not permitted
] ----------------------


        com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:926)
        com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:389)
.....
------------------------


So, I don't know why it does something like this.
    I run the test with root.
    The java version works on other systems.
    The Transport class connects succesfully to smtp server.


Here is the perl mail received:
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Type: text/plain
MIME-Version: 1.0
X-Mailer: MIME::Lite 3.01 (F2.71; B2.12; Q2.03)
Date: Wed, 22 Dec 2004 18:47:51 UT
From: root@???
To: <name@???>
Subject: sbj
Message-Id: <E1ChBWZ-0008Kp-Mw@???>
X-UIDL: m2k"!W0E"!6N2!!Z%2"!

[body...]



Thx for the time reading this.

Viorel Dragomir

.
..
-------------------------------------------------------------------