Hi Daniel,
I assume from config.xml you are using james 2.3 (right?).
What if you are not using multiple remote servers, but simply match All:
do you see also see that behaviour? What also if you get rid of the
'mail.smtp...' tags?
Thx, Eric
On 10/05/2013 09:20, Daniel Putra wrote:
Hi
I have a case where a user sends email via MS Outlook and James as mail
server and then remote delivered via gmail's servers. For some reason
random emails are not sent with the sender's address but with another
user's email address.
This is quite fatal as if the recipient replys to the email a user who is
not intended to see that email is getting it and the sender has no idea
that the recipient actually replyed.
There must be some flaw in my setup that James swaps the sender with the
gatewayusername. Your help is appreciated.
Best Regards
Daniel Putra
I have the setup as below.
config.xml:
<mailet match="[email protected], [email protected],
[email protected]" class="RemoteDelivery">
<outgoing> file://var/mail/outgoing/ </outgoing>
<delayTime> 5 minutes </delayTime>
<delayTime> 10 minutes </delayTime>
<delayTime> 45 minutes </delayTime>
<delayTime> 2 hours </delayTime>
<delayTime> 3 hours </delayTime>
<delayTime> 6 hours </delayTime>
<maxRetries> 20 </maxRetries>
<deliveryThreads> 1 </deliveryThreads>
<sendpartial>false</sendpartial>
<bounceProcessor>bounces</bounceProcessor>
<gateway>smtp.gmail.com</gateway>
<gatewayPort>25</gatewayPort>
<mail.smtp.localaddress>10.0.0.1</mail.smtp.localaddress>
<mail.smtp.localhost>server4.myDomain.local</mail.smtp.localhost>
<mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>
<gatewayusername>[email protected]</gatewayusername>
<gatewayPassword>somepw</gatewayPassword>
</mailet>
<mailet match="[email protected], [email protected]"
class="RemoteDelivery">
<outgoing> file://var/mail/outgoing/ </outgoing>
<delayTime> 5 minutes </delayTime>
<delayTime> 10 minutes </delayTime>
<delayTime> 45 minutes </delayTime>
<delayTime> 2 hours </delayTime>
<delayTime> 3 hours </delayTime>
<delayTime> 6 hours </delayTime>
<maxRetries> 20 </maxRetries>
<deliveryThreads> 1 </deliveryThreads>
<sendpartial>false</sendpartial>
<bounceProcessor>bounces</bounceProcessor>
<gateway>smtp.gmail.com</gateway>
<gatewayPort>25</gatewayPort>
<mail.smtp.localaddress>10.0.0.1</mail.smtp.localaddress>
<mail.smtp.localhost>server4.myDomain.local</mail.smtp.localhost>
<mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>
<gatewayusername>[email protected]</gatewayusername>
<gatewayPassword>somepw</gatewayPassword>
</mailet>
... 7 other ones like above.
This is how the email looks like, the actual sender was Renate but now
there is ldewit as sender instead of Renate.
-------------------------------------------------------
From: Renate <[email protected]>
Date: Thu, 9 May 2013 12:59:16 +0200
To: <[email protected]>; <[email protected]>
Subject: Meeting for an evaluation
Dear Avela...
-------------------------------------------------------
mailet.log:
09/05/13 12:59:16 INFO smtpserver: Connection from renate.myDomain.local
(10.0.0.13)
09/05/13 12:59:16 INFO smtpserver: Successfully spooled mail
Mail1368097156414-66 from [email protected] on 10.0.0.13 for [
[email protected], [email protected]]
smtpserver.log:
09/05/13 12:59:16 INFO smtpserver: Connection from renate.myDomain.local
(10.0.0.13)
09/05/13 12:59:16 INFO smtpserver: Successfully spooled mail
Mail1368097156414-66 from [email protected] on 10.0.0.13 for [
[email protected], [email protected]]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]